Forum Discussion
Altera_Forum
Honored Contributor
12 years agoYou shouldn't generate an .hex file from your application. This is only used when the CPU can directly access the program memory, so for example when using a parallel flash or an on-chip memory. When using the EPCS you need a "pre-digested" version of the .elf file, written on the EPCS just after the .sof image. The elf2flash commang line tool can convert a .elf to an .srec ready to be written to the EPCS using nios2-flash-programmer. IIRC the graphical version of the Nios II flash programmer can also do both steps directly from Eclipse.