Nios® V Embedded Processor Design Handbook

ID 726952
Date 5/13/2024
Document Table of Contents Generating HEX Files

You must generate a .hex file from the user application .elf files, to memory-initialize the OCRAM in the Nios V processor system.

  1. Launch the Nios V Command Shell.
  2. For Nios® V processor application boot from OCRAM, use the following command line to convert the ELF to HEX for your application.
    elf2hex software/app/build/app.elf -o app.hex \
        -b <base address of OCRAM> -w <data width of OCRAM> \
        -e <end address of OCRAM>
  3. Recompile the Nios® V processor hardware system to memory-initialize the on-chip memory.