File System Component  Version 5.0
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/SDHC/MMC 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) and also 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 mode that is to be used
MCn_FAT_JOURNAL Enable the Journaling to protect the drive from data loss
MCn_DEFAULT_DRIVEIf no other drive letter is specified, M0: is used as the default drive
Note
General System Resource Configuration requirements apply.