Ashling* RiscFree* Integrated Development Environment (IDE) for Altera® FPGAs User Guide

ID 730783
Date 4/11/2025
Public
Document Table of Contents

3.3.5.2. Connecting to a Running Nios® V Processor Application

You can connect to a running Nios® V processor software project on the targeted Altera FPGA using the Visual Studio Code, and continue with the debugging session.

Follow these steps to connect to a running application and debug:
  1. Go to ASHLING PROJECT VIEW > app > Debug Configurations. Click the + icon beside Debug Configurations to list down the supported launch configurations. Click Nios V Hardware Debugging and specify a name for the launch.
    Figure 129. Debug Configurations
    Figure 130. Create Nios V Hardware Debugging
  2. Specify a name for the new launch configuration.
    Figure 131. New Launch Configuration
  3. A debug configuration window appears. An .elf file is auto selected from the project in the Main tab. You can select a different .elf by using Browse.. feature.
    Figure 132. Debug Configurations for Nios® V Processor — Main Tab
  4. Click Debugger tab, click the drop-down icon to select appropriate debug probe for the debug session.
  5. Under the Debugger tab, set these settings:
    • Debug probe: Agilex SI/SoC Dev Kit (Name of the FPGA board/development kit)
    • Transport type: JTAG.
    • JTAG frequency: 16 MHz.
  6. Click Auto-detect Scan Chain to automatically detect JTAG scan chain information of the target device. Make your selection for Tap selection and Core selection.
  7. Turn off Reset mstatus CSR register.
    Figure 133. Debug Configurations for Nios® V Processor — Debugger Tab
  8. Turn off Load Image, turn off Set Breakpoint and turn off Resume.
  9. Click Debug in the top right corner of the launch configuration dialog.
    Figure 134. Debug Configurations for Nios® V Processor — Startup Tab (Part 1)
Figure 135. Debug Configurations for Nios® V Processor — Startup Tab (Part 2)