I would like to read and write files onto an SDCard connected to my CORE32, for being able to read configuration files and to write log files. What’s the simplest way to do this? What libraries do I need? Could somebody give an example?
I would like to read and write files onto an SDCard connected to my CORE32, for being able to read configuration files and to write log files. What’s the simplest way to do this? What libraries do I need? Could somebody give an example?
Thanks all!
Baptistou
Hi.
Everything you need should be in the README.txt file in the /trunk/modules/dosfs directory of the MIOS32 svn tree.
It doesn’t have “actual” code but it does have step by step instructions for opening/reading/writing files.
If you need actual code, then any of the examples that include file access should get you on the way, probably /trunk/apps/tutorials/019_midi_player/ is a good one to start with.