heinbali01 wrote on Monday, July 25, 2016:
FF_Format() routine does not (yet) support FAT12, only FAT16 and FAT32.
Two parameters indicate your preference:
xPreferFAT16: try to use FAT16, if not possible, try FAT32
xSmallClusters: try small clusters first, if not possibly, try larger clusters.
Larger clusters are more efficient in terms of speed, small clusters have less waste of space.
Microsoft states that:
if( CountofClusters < 4085 )
/* Volume is FAT12 */
else if( CountofClusters < 65525 )
/* Volume is FAT16 */
/* Volume is FAT32 */
+FAT is following Microsoft’s guidelines to get a maximum compatibility. However, you are not going to exchange your RAM disk with another system.
You could try the following in
#define MIN_CLUSTERS_FAT16 ffconfigMIN_CLUSTERS_FAT16
#define MIN_CLUSTERS_FAT16 ( 4085 + 1 )
ffconfigMIN_CLUSTERS_FAT16 in your
FreeRTOSFATConfig.h with a smaller value of e.g. :
#define ffconfigMIN_CLUSTERS_FAT16 1800