Nios® V Embedded Processor Design Handbook

ID 726952
Date 7/08/2024
Public
Document Table of Contents

6.6.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