Page 1 of 1

Reducing VFS/FATFS Memory Usage

Posted: Sun Oct 22, 2023 7:32 pm
by akolodner25
I'm using Arduino for ESP32, and the SD library. I cannot get the memory usage below 10KB (with max 1 file open). I found that this memory is allocated by

Code: Select all

esp_vfs_fat_register
. Is there any way to reduce the amount of memory it uses? 10KB seems excessive for a single file. Unfortunately changing file systems is not feasible for me, as the SD card needs to be readable by another computer.

Re: Reducing VFS/FATFS Memory Usage

Posted: Fri Oct 27, 2023 11:56 am
by RathiSonika
Hello @akolodner25, the memory allocated by the function 'esp_vfs_fat_register' is utilized to store the FAT context, which serves as essential metadata required for the file system. This is the minimum memory requirement for any scenario.