Reducing VFS/FATFS Memory Usage

akolodner25
Posts: 27
Joined: Tue Nov 22, 2022 5:15 am

Reducing VFS/FATFS Memory Usage

Postby akolodner25 » Sun Oct 22, 2023 7:32 pm

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.

RathiSonika
Posts: 11
Joined: Thu Jun 22, 2023 2:58 pm

Re: Reducing VFS/FATFS Memory Usage

Postby RathiSonika » Fri Oct 27, 2023 11:56 am

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.

Who is online

Users browsing this forum: Google [Bot], noweare and 166 guests