AN 985: Nios® V Processor Tutorial

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

1.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 Intel® 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 82. Run Configuration
  5. In the Main tab, make the following settings:
    1. Project: app
    2. C/C++ Application: <Working directory>/software/app/build/Debug/hello.elf
    Figure 83. Main Tab
  6. In the Debugger tab, make the following settings:
    1. Debug Probe Configuration:
      1. Debug probe: Agilex™ development kit
      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 84. Debugger Tab
  7. Click Apply and Run. Ashling* RiscFree* IDE for Intel® FPGAs prints the following message in its Console.
    Figure 85. 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/app/debug/hello.elf -g -r