Forum Discussion
Altera_Forum
Honored Contributor
19 years agoStore array of struct in NIOS
What is the best way to store variables (nonvolatile) on NIOS hardware? Can somebody give some examples to store a array of stuct's? On my hardware is a EEPROM (SPI) and flash.
Altera_Forum
Honored Contributor
19 years agoOpen the flash for reading/writing... just store them sequentially... if you aren't using the flash for anything else of course.
You can use fseek and fread/fwrite to do your bidding. Don't forget to use fopen with the read/write binary flags.