Forum Discussion
Altera_Forum
Honored Contributor
13 years agoSince you want to store the math results into another file on the SDCARD (to be opened on your PC right?) using file system on SDCARD makes things much much simpler.
You can use FATFS [http://elm-chan.org/fsw/ff/00index_e.html] which is free & can work with FAT,FAT32 mounts. Porting this to NIOS needs some work, but very do-able. As for the hardware, a NIOS II processor, SPI core, 1us timer & memory should be enough. All these are available in the Qsys peripheral library for free. Like jderrick said, Altera HAL has some built in support for FAT file systems. This link would be helpful: ftp://ftp.altera.com/up/pub/altera_material/11.0/university_program_ip_cores/memory/sd_card_interface_for_sopc_builder.pdf