Forum Discussion
Altera_Forum
Honored Contributor
15 years agoHow do I create .hex or .flash files in IDE?
Hi, I am trying to get the IDE to automatically create a .hex or .flash file each time I build my project in the IDE. I have searched the altera docs and think that what I need is the "...
Altera_Forum
Honored Contributor
15 years agohi,
use the nios II command shell and sof2flash/elf2flash/nios2-elf-objcopy programs. options depend on your needs. # 1) Convert SOF to Flash sof2flash --input=filename.sof --output=hwimage.flash --epcs --verbose# 2) Convert ELF to Flash elf2flash --input=../filename.elf --output=swimage.flash --epcs --after=hwimage.flash --verbose# 3) Concatenate cp hwimage.flash hw_sw.flash cat swimage.flash >> hw_sw.flash # 4) Create HexFile nios2-elf-objcopy -I srec -O ihex hw_sw.flash hw_sw.hex i use it in a tcl script and run it with nios II shell.