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
First of all, thanks for maintaining this library! It's very useful for me.
I've run into an issue where the filesystem created by f_mkfs() can't be read by Arduino's SdFat library. The reason for that is that f_mkfs() always creates a single copy of the FAT ,whereas SdFat expects to have 2 copies.
FatFS R0.14 added support for specifying the number of FAT copies in the options for f_mkfs() (the n_fat property of the opt parameter). This new parameter makes it possible to create FAT file systems that are compatible with the SdFat library.
If you need any additional input or some help with realizing the update (i.e. pull request), please let me know.
+1 for having a bump to at least 0.14 since n_fats == 2 is probably pretty critical to error recovery on embedded systems (FAT builds vanishing all my files seems to be a running theme at the moment). I appreciate the breaking API changes wont make it much fun.
Activity
fix: two fat copies + 4k sector size
Gadgetoid commentedon Jul 1, 2025
Thanks for this, I borrowed your patching-n_fats trick for ffsmake: https://github.com/gadgetoid/ffsmake
+1 for having a bump to at least 0.14 since
n_fats == 2is probably pretty critical to error recovery on embedded systems (FAT builds vanishing all my files seems to be a running theme at the moment). I appreciate the breaking API changes wont make it much fun.