Forum Discussion
Altera_Forum
Honored Contributor
17 years agoHow to convert NIOS2 SW file to HEX
I need to program a CFI Flash (NOT EPCS) device that is attached to my Cyclone2 with both the HW and SW images. It appears one method that fits my needs is to follow appnote an478 and create a flash...
Altera_Forum
Honored Contributor
15 years ago --- Quote Start --- i've tried elf2flash, which does let me attach the bootloader, but then when I try the following command I get an error: nios2-elf-objcopy --input-target srec --output-target ihex sw.flash sw.hex error ":Interleave must be positive" --- Quote End --- You've put the options here with two dashes before, but I bet you've only got one on your command line. That is, your command has the option -input-target rather than the option --input-target, so the nios2-elf-objcopy command thinks it's the interleave option. There's the same error in the official Altera knowledge base article. Mark.