Nios® V Embedded Processor Design Handbook

ID 726952
Date 9/01/2023
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

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