Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
SD/MMC/SDIO Card with FatFs Example

Purpose

This example shows how to implement the SD/MMC stack with the FatFS. It will mount the file system and write a file in the card.

The example outputs the information through the standard output (stdio). To know the output used on the board, look in the conf_example.h file and connect a terminal to the correct port.

While using Xplained Pro evaluation kits, please attach I/O1 Xplained Pro extension board to EXT1.

Usage

  1. Build the program and download it into the board.
  2. On the computer, open and configure a terminal application. Refert to conf_example.h file.
  3. Start the application.
  4. In the terminal window, the following text should appear:
    -- SD/MMC/SDIO Card Example on FatFs --
    -- Compiled: xxx xx xxxx xx:xx:xx --
    Please plug an SD, MMC or SDIO card in slot.