Forum Discussion
Altera_Forum
Honored Contributor
19 years agoOr you can use the HAL and some FAT C code like this:
http://www.zws.com/products/dosfs/index.html (http://www.zws.com/products/dosfs/index.html) or this: http://elm-chan.org/fsw/ff/00index_e.html (http://elm-chan.org/fsw/ff/00index_e.html) Both of which is C code that you provide with the read sector and write sector functions. Then you can use the code to open files, create directories, read/write data, etc. I have gotten the DOSFS to work although it was too slow for my application. I am having trouble with reading the boot sector though so there is something wonky with my CF interface or code. The credit for this should go to some other guy that posted on this forum though. I can't find the post. I did find ELM Chan's FAT stuff.