Nios II Classic Software Developer’s Handbook

ID 683282
Date 5/14/2015
Public

Visible to Intel only — GUID: hes1487891263249

Ixiasoft

Document Table of Contents

4.11.3.4.5. nios2-terminal

Description

Performs terminal I/O with a JTAG UART in a Nios II system.

Usage

nios2-terminal [TERMINAL OPTIONS] [CONNECTION OPTIONS] [TARGET OPTIONS]

Options

Terminal Options

-V, --version display version number -h, --help show this message and exit -v, --verbose show extra information during run (default) -q, --quiet show minimal information --write-pid write process ID to filename specified -w, --wait wait for a signal before starting --flush empty buffers before displaying output --signal-pid send signal to process ID when ready -o, --quit-after=SECS quit after SECS second(s) (default is never) --no-quit-on-ctrl-d don't quit if Ctrl-D received from target -u, --dump=OPTS dump extra debug information for OPTS --gmon write gmon.out file if seen from target --no-gmon do not write gmon.out

Connection Options

-H, --hardware connect to a hardware target (default) -I, --iss launch and connect to iss target -M, --modelsim connect to a modelsim target -U, --uart connect to hardware using a UART --persistent try to reconnect after an I/O error --no-persistent opposite of persistent

Connect to Hardware Options

-c, --cable=CABLE use CABLE JTAG cable (default auto-detect) -d, --device=DEVICE connect to DEVICE device (default auto-detect) -i, --instance=INSTANCE connect to INSTANCE instance (default auto-detect)

Launch and Connect to ISS Options

-f, --elf=FILE launch ISS with FILE in simulation memory -p, --ptf=FILE launch ISS with FILE as system description -g, --debug launch ISS in debug mode waiting for gdb connection at reset or entry point -r, --no-debug launch ISS in run mode -a, --iss-arg=ARG pass additional argument ARG to nios2-iss, may be specified repeatedly

Connect to ModelSim Options

-n, --instance_name=NAME connect to jtag_uart instance name

Connect to Hardware using UART Options

--port=PORT full name of port to connect to (e.g. /dev/com1) --baud-rate=RATE baud rate to connect to UART
Note: If a development board has more than one JTAG port, the nios2-terminal command will not work unless the correct JTAG cable is identified. In order to identify the correct JTAG cable, you must first run the jtagconfig command. For example, if the output states that USB-Blaster is port 2, then you can run the command using the correct JTAG port nios2-terminal -c 2.