RL-ARM: RL-FlashFS: Limits of FAT16 file system
Information in this knowledgebase article applies to:
In my microcontroller application I store multiple files into the root folder of a SD memory card which is formatted as FAT16. I know that the FAT16 file system limits the number of files in the root folder to 512 but I cannot create more than 255 files. Are there reasons why?
It is correct that the maximum number of file in the root folder of a FAT16 file system is 512. This applies to files with 8.3 filenames. As soon as you use longer filenames, the maximum number decreases to at least 255 or even less depending on the length of the filenames. This is a restriction of the FAT16 file system, not a restriction of FlashFS.
In order to use the maximum number of files possible or to bypass this limit, you can do the following things:
The following Discussion Forum threads may provide information related to this topic.
Last Reviewed: Monday, November 12, 2012
of your data.