KennyJoosen
New Contributor
1 year agoNios V starts in debugging mode, but not in stand-alone mode
I have migrated a working Nios II/f instance to a Nios V/g one.
When launching a debugging session with RiscFree IDE and JTAG to this Nios V instance, everything operates as expected. However, when running the image with this Nios V instance, the application does not start (at the start log messages should appear, but those are not visible with the JTAG UART terminal).
I have followed the migration guide, but I am probably missing something. Do you have any pointers for me to look at?
I found the cause of the issue: the conversion of the ELF file to HEX file went wrong. I was using elf2flash and riscv32-unknown-elf-objcopy commands, while I should have been using the elf2hex command.
Conversion command used now:
elf2hex ${PROJECT_ELF} -o ${PROJECT_HEX} -b 0x00000000 -e 0x0007ffff -w 32 -r 4