Here's the PropGCC filetest demo program. It is set up to use the C3 board. The filetest programs implements simple versions of Linux commands such as cat, ls and echo. The source code contains examples of reading and writing files plus several other file functions.
Is there anyone who knows of an example of reading and writing text files to the SD card on the C3 board in C. Or a good tutorial on the SPI bus in C.
You should just be able to use the SD card on the C3 with normal C fopen/fread/fwrite/etc calls as long as you select the "C3" board type. The support for the C3 is built into PropGCC. This will require that you add the file driver to your driver list though.
Comments