Visible to Intel only — GUID: opl1741839093587
Ixiasoft
1. About this Document
2. Ashling RiscFree* IDE for Altera® FPGAs
3. Ashling Visual Studio Code Extension for Altera FPGAs
4. Ashling RiscFree* Integrated Development Environment (IDE) for Altera® FPGAs User Guide Archives
5. Document Revision History for the Ashling RiscFree* Integrated Development Environment (IDE) for Altera® FPGAs User Guide
A. Appendix
2.1. About the RiscFree* IDE for Altera® FPGAs IDE
2.2. Getting Started with the Ashling* RiscFree* IDE for Altera® FPGAs
2.3. Using Ashling* RiscFree* IDE for Altera® FPGAs with Nios® V Processor System
2.4. Using Ashling* RiscFree* IDE for Altera® FPGAs with Arm* Hard Processor System
2.5. Debugging Features with RiscFree* IDE for Altera® FPGAs
2.2.1. Installing RiscFree* IDE for Altera FPGAs
2.2.2. Getting Started with RiscFree* IDE for Altera® FPGAs
2.2.3. Creating the Project
2.2.4. Building the Application
2.2.5. Run and Debug Configurations in the RiscFree* IDE for Altera® FPGAs
2.2.6. Debug Information in the RiscFree* IDE for Altera® FPGAs
2.5.1. Debug Features in RiscFree* IDE
2.5.2. Processor System Debug
2.5.3. Heterogeneous Multicore Debug
2.5.4. Debugging µC/OS-II Application
2.5.5. Debugging FreeRTOS Application
2.5.6. Debugging Zephyr Application
2.5.7. Arm* HPS On-Chip Trace
2.5.8. Debugging the Arm* Linux Kernel
2.5.9. Debugging Target Software in an Intel® Simics Simulator Session
3.1. About the Ashling Visual Studio Code Extension
3.2. Getting Started with Ashling* Visual Studio Code Extension
3.3. Using Ashling* Visual Studio Code Extension with Nios® V Processor System
3.4. Using Ashling* Visual Studio Code Extension with Arm Hard Processor System
3.5. Debugging Features in Ashling* Visual Studio Code Extension
3.3.1. Creating Nios® V Processor BSP using Nios® V Processor BSP Generator
3.3.2. Creating Nios® V Processor Application Project using Nios® V App Generator
3.3.3. Importing Nios® V Processor Project
3.3.4. Building Nios® V Processor Project
3.3.5. Debugging a Nios® V Processor Project
3.3.6. Debugging Tools
Visible to Intel only — GUID: opl1741839093587
Ixiasoft
3.3.5.1. Downloading and Debugging Nios® V Processor Application
You can download and debug a Nios® V processor software project on the targeted Altera FPGA using the Visual Studio Code.
Follow these steps to download and debug the project,:
- 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 122. Debug ConfigurationsFigure 123. Create Nios V Hardware Debugging
- 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 the Browse feature.
Figure 124. Debug Configurations for Nios® V Processor — Main Tab
- Click Debugger tab, click the drop-down icon to select appropriate debug probe for the debug session.
- 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.
- 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.
Figure 125. Debug Configurations for Nios V Processor — Debugger Tab
- Leave all other settings as they are, including those in the Startup tab, as the sensible defaults have been set.
Note: If you turn off the Resume feature, you can start debugging from the processor initialization stage.Figure 126. Debug Configurations for Nios® V Processor — Turn off ResumeIf you turn on the Resume feature, you can debug from the user application.Figure 127. Debug Configurations for Nios® V Processor — Turn on ResumeThis example shows that the program counter is at 0x37c, which is paused at the main function and is shown in the disassembly. The processor then jumps to 0x37c, which is paused at looper().
- Click Debug in the top right corner of the launch configuration dialog.
Figure 128. Debug Configurations for Nios® V Processor — Startup Tab