AN 985: Nios® V Processor Tutorial

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

2.5.1.2. Starting the Debugger

  1. In the Run menu tab, select Debug Configurations.
  2. Under Ashling RISC-V Hardware Debugging, find ELF_download (Created in Downloading Software ELF File.
  3. Select ELF_download to start the Debugger using the same settings.
    Figure 89. Debug Configuration
  4. In the Main tab, check the following settings
    1. Project: app
    2. C/C++ Application: <Working directory>/software/app/build/Debug/hello.elf
  5. In the Debugger tab, check the following settings:
    1. For 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 90. Main Tab
    Figure 91. Debugger Tab
  6. Click Apply and Debug.
  7. The Ashling* RiscFree* IDE for Altera® FPGAs switches to the Debug Perspective.
  8. The program begins execution, and suspends at the initial breakpoint, main().
    Figure 92. Suspended at Initial Breakpoint