Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

Store array of struct in NIOS

Altera_Forum
Honored Contributor II
1,284 Views

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.

0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
540 Views

Open 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.
0 Kudos
Reply