File System Component  Version 6.3
MDK-Professional Middleware for Devices with Flash File System
 All Data Structures Files Functions Variables Enumerations Enumerator Macros Groups Pages
Using Memory Card Devices

A project using a SD/SDxC/MMC/eMMC memory card as storage device is set up as explained in Create an Application Using the File System. To make use of a memory card drive please set File System:Drive:Memory Card to at least '1'. From the Drivers Component, please select MCI (API) or SPI (API), depending on the actual connection of the card drive to the microcontroller. When you are finished with the configuration, click OK to apply the new RTE settings to your target. The Project window should look like the following:

memory_card_drive_proj_window.png
Project Window

For a proper memory card drive operation, you need to set the drive characteristics in the FS_Config_MC_n.h file. The following table shows the most important settings in that file:

Name Definition
MCn_SPI Select the SPI interface mode
MCn_FAT_JOURNAL Enable the Journaling to protect the drive from data loss
Note
General System Resource Configuration requirements apply.