MMCSD FILE IO
Introduction
This example demonstrates file I/O operations using the FreeRTOS+FAT file system to the SD Card inserted. The MMCSD instance and the media connected to it are selectable via Sysconfig. In the Sysconfig of the example, user just needs to add the FreeRTOS+FAT module. The MMCSD module instance will be added automatically.
The example initially checks for a FAT partition in the media. If it doesn’t find one, a 128 MB partition is created (FAT16). Then a file is created and some known data is written to that. Then the file is closed and re-opened for read back. The file is then read back and compared with the known data.
When the comparison match, test result is passed otherwise failed.
Supported Combinations
Steps to Run the Example
When using CCS projects to build, import the CCS project for the required combination and build it using the CCS project menu (see Using SDK with CCS Projects).
When using makefiles to build, note the required combination and build using make command (see Using SDK with Makefiles)
Launch a CCS debug session and run the executable, see CCS Launch, Load and Run
See Also
Sample Output
[MMCSD FILE IO] Starting...
All tests have passed!!