Mynewt provides an implementation of the FAT filesystem which is currently supported on MMC/SD cards.
File Allocation Table (FAT) is a computer file system architecture and a family of industry-standard file systems utilizing it. The FAT file system is a legacy file system which is simple and robust. It offers good performance even in lightweight implementations, but cannot deliver the same performance, reliability and scalability as some modern file systems.
fatfs
configuration can be tweaked by editing fs/fatfs/include/fatfs/ffconf.h
. The current configuraton was chosen to minimize memory use and some options address limitations existing in the OS:
hal_rtc
interface.To include fatfs
on a project just include it as a dependency in your project:
pkg.deps: - fs/fatfs
It can now be used through the standard file system abstraction functions as described in FS API.
An example of using fatfs
on a MMC card is provided on the MMC documentation.