Specifications
To debug a software project, right-click the application project name, point to Debug As, and click Nios
II Hardware. This command carries out the following actions:
• Creates a Nios II run configuration.
• Builds the project executable. If all target files are up to date, nothing is built.
• If debugging on hardware, establishes communications with the target, and verifies that the FPGA is
configured with the correct hardware design.
• Downloads the .elf to the target memory.
• Sets a breakpoint at the top of main().
• Starts execution at the .elf entry point.
The Eclipse debugger with the Nios II plugins provides a Nios II perspective, allowing you to perform
many common debugging tasks. Debugging a Nios II program with the Nios II plugins is generally the
same as debugging any other C/C++ program with Eclipse and the CDT plugins.
For information about debugging with Eclipse and the CDT plugins, refer to the Eclipse help system.
Related Information
Run Configurations in the SBT for Eclipse on page 2-21
For more information about about run configurations.
List of Debugging Tasks with the Nios II SBT for Eclipse
The debugging tasks you can perform with the Nios II SBT for Eclipse include the following tasks:
• Controlling program execution with commands such as:
• Suspend (pause)
• Resume
• Terminate
• Step Into
• Step Over
• Step Return
• Setting breakpoints and watchpoints
• Viewing disassembly
• Instruction stepping mode
• Displaying and changing the values of local and global variables in the following formats:
• Binary
• Decimal
• Hexadecimal
• Displaying watch expressions
• Viewing and editing registers in the following formats:
• Binary
• Decimal
• Hexadecimal
• Viewing and editing memory in the following formats:
• Hexadecimal
• ASCII
• Signed integer
• Unsigned integer
• Viewing stack frames in the Debug view
2-6
List of Debugging Tasks with the Nios II SBT for Eclipse
NII5V2
2015.05.14
Altera Corporation
Getting Started with the Graphical User Interface
Send Feedback