Forum Discussion
Altera_Forum
Honored Contributor
12 years ago --- Quote Start --- Isn't that the .hexout option under the convert programming files GUI? --- Quote End --- That generates an Intel hex format file - not quite the same thing. I feel like I'm almost there now, though. 1) Create an Intel HEX file from the compressed SOF. 2) Convert that to an SREC with nios2-elf-objcopy. 3) Use elf2flash --after <srec file from step 2> to create an srec file of the software with the correct offset. 4) Convert software srec to hex with nios2-elf-objcopy 5) Stick it all together into a JIC file with Quartus, beign careful to turn on the "Disable AS mode CONF_DONE error check" box which is not persistent and doesn't get saved in the COF file. The first two steps are just to get the software to the correct offset. I use the original SOF in the JIC. It now configures and the software seems to start. It looks like there's some problem with the software, though, in that it doesn't send anything out the JTAG UART. The software is meant to write to a bunch of LCD screens but instead of writing the expected data writes garbage. If the same elf file from step 3 is downloaded with nios2-download then it operates correctly. Mark.