AN 985: Nios® V Processor Tutorial

ID 784468
Date 8/18/2023
Public
Document Table of Contents
Give Feedback

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/Debug/hello.elf \
-b 0x0 -w 32 -e 0x3ffff \
<Working directory>/software/app/build/Debug/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.