Nios® V Processor Software Developer Handbook

ID 743810
Date 7/08/2024
Public
Document Table of Contents

4.3.2.2. Intel HAL Configuration Tips

If you use the HAL environment, be aware of the following properties of this environment:

  • HAL BSP settings: The Settings tab in the BSP Editor shows a comprehensive list of options.
  • HAL setting modification: Modifying the HAL options modifies the system.h file, which is used to compile the BSP library file.
  • HAL initialization: The HAL is initialized during the execution of the C run-time initialization (crt0) code block. After the crt0 code block runs, the HAL resources are available for your application to use.

You can configure the HAL in the BSP Editor. The figure and Tcl script below shows how you specify a jtag_uart to be used as the stdio device.

Figure 2. Configuring HAL stdio Device in BSP Editor

Configuring HAL stdio Device using Tcl Script

#set up stdio file handles to point to the jtag_uart component
set default_stdio jtag_uart
set_setting hal.stdin $default_stdio
set_setting hal.stdout $default_stdio
set_setting hal.stderr $default_stdio