Forum Discussion
Altera_Forum
Honored Contributor
16 years agoProblem generating Hex files for on chip memories.
I have two on chip memories for my Nios system. ("instruction_rom" and "data_ram", both are actually RAM's) I am having problems with .hex files generated for these internal memories. The I...
Altera_Forum
Honored Contributor
16 years agoUse objcopy to copy extract the data from each segment.
Something like: nios2-elf-objcopy.exe -O hex -j .text prog.elf prog_text.hex You probably need to use 'objdump -h' to sort out which elf sections exist in the input file, and may need to get the linker to generate a map file in order to find out what ends up where (and why).