basic-fatfs-project
Default mainpagebasic-fatfs-project
Description Graph
basic-fatfs-project
 
Purpose
The Basic-fatfs-project will help you to get familiar with filesystem on AT91SAM microcontrollers. It supplies sample code of common operations of a filesystem through a SDRAM 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
FATFs Website FAT File System Module

You can find following information depends on your needs:
Requirements
This package can be used with all Atmel evaluation kits that have EBI interface and SDRAM device

Description
Open HyperTerminal before running this program, use SAM-BA to download this program to SRAM or SDRAM, make the program run, the HyperTerminal will give out the test results.

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 SDRAM Project xxx --
    -- AT91SAMxxx
    -- Compiled: xxx --
    -I- MEDSdram init
    -I- SDRAM already initialized
    -I- Mount disk 0
    -I- Format disk 0
    -I- Please wait a moment during formating...
    -I- Format disk finished !
    -I- Create a file : "0:Basic.bin"
    -I- Write file
    -I- ByteWritten=512
    -I- f_write ok: ByteWritten=512
    -I- Close file
    -I- Open file : 0:Basic.bin
    -I- Read file
    -I- Close file
    -I- File data Ok !
    -I- Test passed !
    
 
Source
The documentation for this Directory was generated from the following files:
  • main.c