User guide

Running and Debugging Projects
To terminate all processes simultaneously, select the multiprocessor collection
process in the Debug view, and click
Terminate.
Note: A debug process for a multiprocessor collection remains active as long
as any of the associated Nios II hardware target configuration processes are
active. If one of the debug processes fails to start correctly or terminates early,
the other processes will continue running. You must terminate all processes
before attempting to start debugging the multiprocessor collection again.
Other debug commands, such as Suspend and Step, are not available for multiprocessor
collection process. You can control individual processors by selecting the appropriate
process in the Debug view and then using the normal debug commands, such as Resume,
Suspend, and Terminate.
Note: The buttons in the Debug view are context sensitive, depending on the process
selected. Be sure you have the correct process selected when using debug commands.
Clicking Debug does not work to restart multiprocessor collections. The button only
restarts the most recently launched Nios II hardware target configuration, not the whole
multiprocessor collection.
To navigate source code in the debugger:
The Debug view provides a convenient mechanism to jump directly to the line of code
where a processor suspends. When you suspend a process, the editor automatically
displays the source file in which the processor stopped.
Note that selecting a different process in the Debug view does not automatically change
the file displayed in the editor. You can double-click on the top-most function in the stack
trace to open the source file in the editor and display the suspended line of code.
To switch the Console view between active target connections:
Depending on the target connection settings for each of the Nios II hardware target
configurations, each processor can communicate character I/O with the Console view. An
independent terminal connection exists for each target processor, but the Console view
displays only one connection at a time. To switch between the active target connections:
1. Click
Unpin Console from the Console view's toolbar.
2. Click
Display Selected Console and select a Nios II Terminal Window item
corresponding to the desired processor.
Related Nios II IDE Help Topics
About Running and Debugging Projects
Multiprocessor Nios II Systems
Run/Debug Configuration
Related Topics on the Web
Nios II Processor Reference Handbook at
www.altera.com/literature/hb/nios2/n2cpu_nii5v1.pdf—Contains details on the JTAG
debug module on the Nios II processor.
67