Embedded Design Handbook

ID 683689
Date 8/28/2023
Public
Document Table of Contents

4.1.3.1. nios2-terminal

This command establishes contact with stdin, stdout, and stderr in a Nios II processor subsystem. stdin, stdout, and stderr are routed through a UART (standard UART or JTAG UART) module within this system.

The nios2-terminal command allows you to monitor stdout, stderr, or both, and to provide input to a Nios® II processor subsystem through stdin. This command behaves the same as the nios2-configure-sof command described in nios2-configure-sof with respect to JTAG cables and devices. However, because multiple JTAG UART modules may exist in your system, the nios2-terminal command requires explicit direction to apply to the correct JTAG UART module instance. Specify the instance using the -instance command-line option. The first instance in your design is 0 (-instance "0"). Additional instances are numbered incrementally, starting at 1 (-instance "1").