Altera_Forum
Honored Contributor
8 years agoDownload of Nios II elf in Eclipse to UFM failing
Hi.
I have a Nios II project that was previously storing and executing the application in the OCRAM, and now am switching it to store the application in UFM and load it to the OCRAM at start up using the Altera memcpy based Boot Copier. I have followed AN-730 and am implementing Option 2 with Dual Compressed Images. I have made the changes in Qsys (see the attached image). UFM and OCRAM are both connected to the Nios instruction and data avalon-mm bus so that it can execute the Boot Copier on reset and then execute the program from OCRAM. The UFM sectors in the on-chip flash are both set to 'Read and write' in Qsys. https://alteraforum.com/forum/attachment.php?attachmentid=13814&stc=1 I've also updated the bsp settings. I have a Nios II application that I can confirm runs (uart interface working etc) when I follow these steps (from AN-730): - Build in Eclipse - make target mem_init_generate - Use the Quartus "Convert Programming File" prompt to combine the memory initialization output with my hw config .sof to make a .pof. - Program via the quartus_pgm. What I cannot do however is program the elf to the Nios from eclipse. The Nios target is identified with the correct system ID and timestamp but I get an error during the elf verification:
Using cable "USB-Blaster ", device 1, instance 0x00
Processor is already paused
Initializing CPU cache (if present)
OK
Downloaded 57KB in 0.9s (63.3KB/s)
Verifying 00C00000 (99%)
Verify failed between address 0xC00000 and 0xC0001F
Leaving target processor paused
Has anyone else had an issue getting this configuration to work with Eclipse? Regards