1. Overview
This article describes how to connect (attach) the debugger to a running Nios® V processor (hereafter as Nios® V) without downloading the program.
This article assumes that Nios® V is running standalone; please refer to the following article for the steps from creating a Nios® V project to Booting it.
Reference: Nios® V Project Development Procedure Using Ashling* RiscFree* IDE
Reference: Nios® V Boot Option ~ Generic Serial Flash Interface
2. Configuration method
The configuration method for attaching debug is different from that of the Nios® II SBT.
In RiscFree* IDE, the "Load image" option in the "Startup" tab of the "Run / Debug configuration" allows you to configure whether or not the ELF file is downloaded.
Figure 1. Debug Attachment Configuration
Attaching debugging is useful in the following cases.
- When you want to check the status of the processor and software by attaching a debugger when a bug occurs
- When you want to run an application in an area of non-volatile memory such as XIP
Please refer to the following article for an overview of XIP, although it is written for Nios® II.
Reference: Nios® II Boot Configuration and Settings for Each Boot Option
Conclusion
For more information on Nios® V processors, please refer to the manufacturer's page below.