56.2. SDXC FATFS示例

56.2.1. 概览

本示例提供如下功能:

  • 用FAT32格式来格式化SD卡

  • 创建hello.txt

  • 从hello.txt读出一行文本

  • 创建并删除文件夹

  • 大文件测试

56.2.2. 板级设置

无特殊要求

56.2.3. 运行示例

当示例成功运行后,会显示如下菜单:

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