Forum Discussion
Altera_Forum
Honored Contributor
19 years agoPlease let us know what you find out and how you decided to do it. I am also interested in doing this with a cyclone2 and an EPCS64.
My method is that after I build the .elf file, I go into a NIOS SDK Shell and go to the debug or release directory and run: nios2-elf-objcopy -O srec MyProg.elf MyProg.srec This creates my srec file which I can open in any text editor. I used the site: http://www.amelek.gda.pl/avr/uisp/srecord.htm (http://www.amelek.gda.pl/avr/uisp/srecord.htm) to explain the record format. Since our cyclone based device is a PC peripheral connected via usb, we wrote an app on the pc to download the srec. Everything is fine to here. Right now I am working on writing it all to flash... I have seen this question asked before, I may have even asked it before myself. I KNOW someone at Altera has done this, and done this several times. It would sure be nice for someone at Altera to post some sample code on this forum for the benefit of the developer community.