Nios® V Processor Software Developer Handbook

ID 743810
Date 4/01/2024
Public
Document Table of Contents

3.4.3.2.1. stdin, stdout and stderr

The HAL can support the stdio functions provided in the GNU newlib library. Using the stdio library allows you to communicate with your application using functions such as printf() and scanf().

Currently, Intel supplies two system components that can support the stdio library, the UART and JTAG UART components. These devices can function as standard I/O devices.

To enable this functionality, use the --cmd=”set_setting hal.stdin <value>” arguments during Nios® V processor BSP configuration. The stdin character input file variable and the stdout and stderr character output file variables can also be individually configured with the HAL BSP settings hal.stdin, hal.stdout, and hal.stderr.

Make sure that you assign values individually for each of the stdin, stdout, and stderr file variables that you use.