Nios® V Embedded Processor Design Handbook

ID 726952
Date 12/04/2023
Public
Document Table of Contents
Give Feedback

6.5.4. Generating Memory Initialization File

To generate application image .hex file using the elf2hex command:
elf2hex <elf input file> -b <On-chip memory start address> -w <On-chip memory data width in bits> -e < On-chip memory end address> -r 4 <hex output file>
e.g. elf2hex software/app/build/hello.elf -b 0x0 -w 32 -e 0x4FFFF -r 4 -o
ram.hex