You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the f_getfree function from the FatFs library, sometimes the wrong value for the amount of available clusters is returned. FatFs offers the option to request a full scan of the FAT when calling f_getfree for the first time via the FF_FS_NOFSINFO macro defined in ffconf.h, but currently in ESP-IDF this is a hardcoded value and can't be set per-project. This is a little bit annoying when working in a team for example because everyone has to manually change the value in their ESP-IDF installation.
Describe the solution you'd like.
Just as FF_FS_LOCK or FF_FS_TIMEOUT, it would be very nice to have the option to set the value for FF_FS_NOFSINFO in menuconfig.
Describe alternatives you've considered.
Changing the vale manually whenever I catch the f_getfree function returning bogus values.
Additional context.
No response
The text was updated successfully, but these errors were encountered:
github-actionsbot
changed the title
Allow FF_FS_NOFSINFO to be configured via menuconfig
Allow FF_FS_NOFSINFO to be configured via menuconfig (IDFGH-14467)
Jan 20, 2025
Do you have any recommendations to which level do you use and which could be the default? We have encountered problems with free space reporting before so maybe it would make sense to change the default to make it more usable.
I think setting it to 0 as the default is ok since that's what FatFs uses as the default, so I personally would try to mimic FatFs and their documentation. Whenever I want a full scan I just set it to 3, that way FatFs doesn't "trust" any previous values. I haven't really tried the other options.
Is your feature request related to a problem?
When using the
f_getfree
function from the FatFs library, sometimes the wrong value for the amount of available clusters is returned. FatFs offers the option to request a full scan of the FAT when callingf_getfree
for the first time via theFF_FS_NOFSINFO
macro defined inffconf.h
, but currently in ESP-IDF this is a hardcoded value and can't be set per-project. This is a little bit annoying when working in a team for example because everyone has to manually change the value in their ESP-IDF installation.Describe the solution you'd like.
Just as
FF_FS_LOCK
orFF_FS_TIMEOUT
, it would be very nice to have the option to set the value forFF_FS_NOFSINFO
inmenuconfig
.Describe alternatives you've considered.
Changing the vale manually whenever I catch the
f_getfree
function returning bogus values.Additional context.
No response
The text was updated successfully, but these errors were encountered: