Nios® V Processor Software Developer Handbook

ID 743810
Date 10/12/2024
Public
Document Table of Contents

5.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.