60.3. SDCard FATFS demo
60.3.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
This demo can work under polling or interrupt mode, and the default mode is polling mode. Please refer to the comments in CMakeLists.txt for switching to interrupt mode.
60.3.2. Board Setting
No special settings are required
60.3.3. Running the example
When the example runs successfully, the board shows the following menu:
SD FATFS demo
-----------------------------------
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