Specifications

Console View
Just as when running a program, Eclipse displays program output in the Console view of Eclipse. The
Console view maintains a terminal I/O connection with a communication device connected to the Nios II
processor in the hardware system, such as a JTAG UART. When the Nios II program writes to stdout or
stderr, the Console view displays the text. The Console view can also accept character input from the host
keyboard, which is sent to the processor and read as stdin.
Disconnecting the Terminal from the Target
To disconnect the terminal from the target, click the Terminate icon in the Console view. Terminating
only disconnects the host from the target. The target processor continues executing the program.
Note: If your project was created with version 10.1 or earlier of the Nios II SBT, you must re-import it to
create the Nios II launch configuration correctly.
Using the Altera Bytestream Console
The Altera bytestream console enables you to see output from the processor's stdout and stderr devices,
and send input to its stdin device. The function of the Altera bytestream console is similar to the nios2-
terminal command-line utility.
Open the Altera bytestream console in the Eclipse Console view the same way as any other Eclipse
console, by clicking the Open Console button.
When you open the Altera bytestream console, the Bytestream Console Selection dialog box shows you a
list of available bytestreams. This is the same set of bytestreams recognized by System Console. Select the
bytestream connected to the processor you are debugging.
You can send characters to the processor's stdin device by typing in the bytestream console. Be aware
that console input in buffered on a line-by-line basis. Therefore, the processor does not receive any
characters until you press the Enter key.
Note:
A bytestream device can support only one connection at a time. You must close the Altera
bytestream console before attempting to connect to the processor with the nios2-terminal utility,
and vice versa.
Related Information
Analyzing and Debugging Designs with the System Console
For more information about how System Console recognizes bytestreams.
Run Time Stack Checking And Exception Debugging
Before you begin
To enable extra exception information, navigate to Nios II MegaWizard >
Advanced Features Exception Checking > Extra Information Register; and recompile the HW project
and regenerate the BSP in the Nios II SBT for Eclipse.
NII5V2
2015.05.14
Console View
2-7
Getting Started with the Graphical User Interface
Altera Corporation
Send Feedback