![]() |
File System Component
Version 6.0
MDK-Professional Middleware for Devices with Flash File System
|
The steps to create a microcontroller application that uses the File System are:
Only a few steps are necessary to complete the RTE Component selection:
As the file system is not bound to a special type of hardware, you need to configure the necessary drivers according to the requirements of your target device. This configuration is done in the RTE_Device.h configuration file. Some devices require to have the DMA controller configured, while others need to have the SDIO driver selected. Please consult the device's user manual or hardware reference. Alternatively you may copy the setup of a File System example that is provided for various evaluation boards.
The File System Core configuration file FS_Config.c is listed in the Project Window under the Component File System and contains settings for the amount of files that can be open at the same time, the cache size for FAT names and for the cache buffer. Usually, the default settings will serve most of the applications. Changing the settings will affect the amount of memory that is used for the project.
The Drive configuration file FS_Config_Drive_0.h is also listed under the File System Component. It contains mostly drive specific settings, such as page and block sizes for Flash memories, general disk sizes for a RAM drive, and the hardware driver number for connecting the drive to the appropriate driver. Also, a file system cache can be enabled for non-Flash drives, FAT journaling can be selected and the default drive may be set.
For proper operation, the File System Component requires some system configuration settings. The requirements are:
Heap_Size
).User code template files provide access to all functions that are required to use the File System Component. The available functions are explained in the Reference section of the File System Component. These routines can be adapted to the needs of the microcontroller application, in case more functionality is needed.