4 ms·
Just beware that FATFS is very easy to corrupt in the event of power outages - unless it's read-only. Personally I would be reluctant to use FATFS as a writabl
by matt_trentini 5y ago
Just beware that FATFS is very easy to corrupt in the event of power outages - unless it's read-only.
Personally I would be reluctant to use FATFS as a writable filesystem on a commercial embedded device.
- pantalaimon 5y agoUnfortunately LittleFS is very slow on large (multi-GB) storage like SD cards. Also SD cards are managed flash, so you don't need to do wear leveling in the FS.
- Inviz 5y agoYeah, littlefs wear leveling can be turned off for this case. Protection against corruption, and posix like api at small size is still useful.
- pantalaimon 5y agoUh I didn’t know that - have you run it on an SD card successfully? What options did you use?
- kevin_thibedeau 5y agoYou set block_cycles to -1 to disable wear leveling and have the erase callback be a NOP that just returns success. Other geometry parameters can be whatever suits you.