Nios® V Processor Software Developer Handbook

ID 743810
Date 10/02/2023
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

4.6.1.1. Specifying the Default stdio Device

The bsp-stdio-utils.tcl script provides procedures to choose a default stdio slave descriptor and to set the hal.stdin, hal.stdout, and hal.stderr BSP settings to that value.

The script searches the processor subsystem file for a slave descriptor with the string stdio in its name.

  • If bsp-stdio-utils.tcl finds any such slave descriptors, the script chooses the first as the default stdio device.
  • If the script finds no such slave descriptor, the script looks for a slave descriptor with the string jtag_uart in the component class name.
  • If the script finds any such slave descriptors, the script chooses the first as the default stdio device.
  • If the script finds no slave descriptors fitting either description, the script chooses the last character device slave descriptor connected to the Nios V processor.
  • If bsp-stdio-utils.tcl does not find any character devices, there is no stdio device.