This is the documentation for the latest (main) development branch of HPM SDK. If you are looking for the documentation of previous releases, use the drop-down menu on the left and select the desired version.

6.31. SDCard FATFS demo

6.31.1. Overview

The demo provides the following features:

  • Format an SD card with FAT32 filesystem

  • Create hello.txt

  • Read 1st line from hello.txt

  • Directy creation/deletion

  • Large file write test

6.31.2. Board Setting

No special settings are required

6.31.3. Running the example

When the example runs successfully, the board shows the following menu:

1 - Format the SD card with FATFS
2 - Create hello.txt
3 - Read 1st line from hello.txt
4 - Directory related test
s - Large file write test
Others - Show menu