Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
FatFS unit tests for SAME70 Documentation

Introduction

This is the unit test application for the FatFS service. It consists of test cases for the following functionality:

  • Mount the FatFS
  • Make the file system
  • Create a new file
  • Write data to the file
  • Read the data from the file and compare

Main Files

D/R Xplained Pro extra connection

boards

Device Info

All SAM devices can be used. This example has been tested with the following setup:

  • sam3x8h_sam3x_ek
  • sam4s16c_sam4s_ek
  • sam4s16c_sam4s_xplained
  • XMEGA-A1 Xplained
  • sam4e16e_sam4e_ek
  • sam4n16c_sam4n_xplained_pro
  • samr21g18a_samr21_xplained_pro
  • 4cmp16c-sam4cmp-db
  • 4cms16c-sam4cms-db
  • samv71q21_samv71_xplained_ultra
  • same70q21_same70_xplained

Connection

Xplained Pro extra connection

Because for SAM4N Xplained Pro the file system is created in the external AT45DBX, extra connection is required.

  • SAM4N Xplained Pro – AT45DBX component
  • 3V3 – VCC
  • PC4(EXT2/PIN15) – NCS
  • PA14(EXT2/PIN18) – CLK
  • PA12(EXT2/PIN17) – MISO
  • PA13(EXT2/PIN16) – MOSI
  • GND – GND

D/R Xplained Pro extra connection

Because for SAM D/R Xplained Pro the file system is created in the external Micro SD/MMC, IO1 Extension board must be connected to EXT1.

Compilation info

This software was written for the GNU GCC and IAR for ARM. Other compilers may or may not work.

Contact Information

/* !