Nios® V Processor Software Developer Handbook

ID 743810
Date 5/26/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.2.4.3. Controlling the stdio Device

The build tools offer several ways to control the details of your stdio device configuration, such as the following:

To override the stderr device and replace it with uart2:
  • When creating a new BSP:
    niosv-bsp --create --qsys=<Platform Designer system> --type=hal 
    --cmd=”set_setting hal.stderr {uart2}” settings.bsp
  • When updating an existing BSP:
    niosv-bsp --update --cmd=”set_setting hal.stderr {uart2}” settings.bsp

If you update your BSP, you must provide the original command line options again to prevent the default Tcl script from choosing its own default stdio devices.