There is a demo program in demos/c3files. PropGCC uses it's own file routines. Look at filetest.c in the src directory for an example of how to do file I/O in GCC.
Does anybody know how this SD card read speed compares with FSRW in Spin?
I've never done any speed testing with it. Dave Hein developed most of the SD card library and test code.
I believe the actual hardware interface is done in PASM, so the library should at least match or beat FSRW speed.
I haven't done any speed testing either. I suspect it may be slower than FSRW because the LMM version uses a buffer that is smaller than 512 bytes for each open file. This causes the same block to be re-read a few times as small chunks are read from the file. The FSRW and PropGCC speeds might be comparable when reading large chunks at a time. It would be good to run some tests to compare performance.
Comments
BTW: How does the file read speed compare with FSRW under Spin?
Actually, I can't find "demos/c3files" anywhere... Is it installed with SimpleIDE?
It's part of the propgcc/demos package. Attached is a version I use with SimpleIDE on C3. The board type should choose the Sd Card configuration.
Does anybody know how this SD card read speed compares with FSRW in Spin?
I've never done any speed testing with it. Dave Hein developed most of the SD card library and test code.
I believe the actual hardware interface is done in PASM, so the library should at least match or beat FSRW speed.
I'll be away from home the rest of the day today.