Forum Discussion
Altera_Forum
Honored Contributor
21 years agoAutomatically create SREC file after build
I want to automatically create a SREC file from the elf file after the build. I know the command to use is as follows: nios2-elf-objcopy -O srec MyProg.elf MyProg.srec The thing that I do...
Altera_Forum
Honored Contributor
21 years agoSee the thread: "touch file (http://www.niosforum.com/forum/index.php?act=st&f=17&t=1425)" for a discussion on how to add additional make targets to the IDE build process.
In your case you will need to use a rule of the form: MyProg.srec: MyProg.elf nios2-elf-objcopy -O srec $< $@