AN 985: Nios® V Processor Tutorial

ID 784468
Date 7/24/2024
Public
Document Table of Contents

1.3.2. Preparing Software Design for Simulation

Note: Before continuing the simulation, you must successfully build the software ELF file.
To generate software memory initialization file, perform the following command:
elf2hex <Working directory>/software/app/build/Default/hello.elf \
-b 0x0 -w 32 -e 0x3ffff \
<Working directory>/software/app/build/Default/hello.hex

The command coverts the software ELF into a HEX memory initialization file for the On-Chip RAM. The RAM have a data width of 32 bits, which starts from base address of 0x0 and ends at 0x3FFFF.