basic-fatfs-sdcard-project
Default mainpagebasic-fatfs-sdcard-project
Description Graph
basic-fatfs-sdcard-project
 
Purpose
The Basic-fatfs-sdcard-project is the concatenation of 2 basic projects, basic-fatfs-project and basic-sdcard-project. It will help you to get familiar with filesystem and sdmmc_mci interface on AT91 microcontrollers. It supplies sample code of common operations of a filesystem through a SD Card based filesystem. It can also help you to configure the filesystem according to your own needs, which can be used for fast implementation of your own filesystem and other applications related. FatFs is a generic file system module to implement the FAT file system to small embedded systems.

See

You can find following information depends on your needs:
Requirements
This package can be used with all Atmel evaluation kits that have MCI interface, the package runs at SRAM or external RAM, so EBI interface and external RAM device is needed if you want to run this package in external RAM

Description
When launched, this program asks user to plug a SD card in the MCI connector. Once the SD card is plugged, there are 2 cases.
Finally a Basic.bin file is created and filled with a special pattern. Then the file is closed, reopened and its data are verified.

For the FATFS TINY project version, copy previously the Basic.bin file on the SD Card in the root directory. This file can be found in the project. The FAT system is compiled with only the reading functions (see _FS_READONLY option in fatfs_config.h). This option can be modified.

Note
The project basic-sdcard-project can be used to "unformat" the SD card. By writing dummy values in the first blocks, the FAT file system data are erased.

Usage
  1. Build the program and download it inside the evaluation board. Please refer to the SAM-BA User Guide, the GNU-Based Software Development application note or to the IAR EWARM User Guide, depending on your chosen solution.
  2. On the computer, open and configure a terminal application (e.g. HyperTerminal on Microsoft Windows) with these settings:
    • 115200 bauds
    • 8 bits of data
    • No parity
    • 1 stop bit
    • No flow control
  3. Start the application
  4. In HyperTerminal, it will show something like
    -- Basic FatFS Full Version with SDCard Project xxx --
    -- AT91xxxxxx-xx
    -- Compiled: xxx xx xxxx xx:xx:xx --
    -I- Init media Sdcard
    -I- MEDSdcard init
    -I- Please connect a SD card ...
    
 
Source
The documentation for this Directory was generated from the following files:
  • main.c