4 ms·
This is pretty cool! It looks like a good option for Flash memory. If anyone is looking for a FAT file system (ie for an SD card or for making a USB mass stora
by roland35 5y ago
This is pretty cool! It looks like a good option for Flash memory.
If anyone is looking for a FAT file system (ie for an SD card or for making a USB mass storage device) fatfs is still a great option.
- matt_trentini 5y agoJust 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.