AN 985: Nios® V Processor Tutorial

ID 784468
Date 8/28/2025
Public
Document Table of Contents

3.4.2. Downloading the Software ELF File

  1. Ensure that the development kit is successfully configured with the processor system.
  2. Launch the Ashling* RiscFree* IDE for Altera® FPGAs.
  3. Navigate to Run > Run Configurations.
  4. In Run Configuration window, double click Ashling RISC-V Hardware Debugging and name it as ELF_download.
    Figure 137. Run Configuration
  5. In the Main tab, make the following settings:
    1. Project: hal_app
    2. C/C++ Application: <Working directory>/software/hal_app/build/helloworld.elf
    Figure 138. Main Tab
  6. In the Debugger tab, make the following settings:
    1. Debug Probe Configuration:
      1. Debug probe: USB-Blaster II
      2. Transport type: JTAG
      3. JTAG frequency: 16 MHz
    2. Target Configuration: Click Auto-detect Scan Chain to list all possible cores. Select the appropriate Device/TAP and Nios V Processor Core.
    Figure 139. Debugger Tab
  7. Click Apply and Run. Ashling* RiscFree* IDE for Altera® FPGAs prints the following message in its Console.
    Figure 140. ELF_download Message (Console tab)
Alternatively, you can download the software ELF file using CLI.
  1. Launch the Nios V Command Shell.
    $ niosv-shell
  2. Execute the command below to download the ELF file.
    $ niosv-download <Working directory>/software/hal_app/debug/helloworld.elf -g -r