Forum Discussion
Altera_Forum
Honored Contributor
11 years agoFlash issues
Hi. Is there a proper guide that explains how to flash the configuration memory with both hardware and software? Nios II Flash Programmer User Guide 2.2 seems to be outdated. I hope s...
Altera_Forum
Honored Contributor
11 years agoYour question is not very clear...
The de0-nano user guide (https://www.altera.com/content/dam/altera-www/global/en_us/pdfs/literature/ug/de0_nano_user_manual_v1.9.pdf) explains how to configure the configuration EPCS (FLASH) by use of a '.jic' file. See page 11. However, I suspect you wish to access the FLASH from software running on a Nios. In which case I suggest you look at the 'DE0_Nano_QSYS_DEMO' that comes with the board. This example shows how to instantiate the EPCS (FLASH) interface in QSYS. It also includes sample C code to run on the hardware and includes some, albeit basic, functions to report the size of the FLASH. The EPCS is mapped into the Nios' address space. So, you can access it using the standard IOWR & IORD built in Nios commands. Cheers, Alex