Specifications

finds no slave descriptors fitting either description, it chooses the last character device slave descriptor
connected to the Nios II processor. If bsp-stdio-utils.tcl does not find any character devices, there is no
stdio device.
Related Information
Nios II Software Build Tools Reference on page 15-1
Specifying the Default System Timer
The bsp-timer-utils.tcl script provides procedures to choose a default system timer slave descriptor and to
set the hal.sys_clk_timer BSP setting to that value.
For more information about this setting, refer to the Nios II Software Build Tools Reference chapter of the
Nios II Software Developer’s Handbook.
The script searches the .sopcinfo file for a timer component to use as the default system timer. To be an
appropriate system timer, the component must have the following characteristics:
It must be a timer, that is, is_timer_device must return true.
It must have a slave port connected to the Nios II processor.
When the script finds an appropriate system timer component, it sets hal.sys_clk_timer to the timer
slave port descriptor. The script prefers a slave port whose descriptor contains the string sys_clk, if one
exists. If no appropriate system timer component is found, the script sets hal.sys_clk_timer to none.
Related Information
Nios II Software Build Tools Reference on page 15-1
Specifying the Default Memory Map
The bsp-linker-utils.tcl script provides procedures to add the default linker script memory regions and map
the default linker script sections to a default region. The bsp-linker-utils.tcl script uses the
add_memory_region and add_section_mapping BSP Tcl commands.
For more information about these commands, refer to the Nios II Software Build Tools Reference chapter
of the Nios II Software Developer’s Handbook.
The script chooses the largest volatile memory region as the default memory region. If there is no volatile
memory region, bsp-linker-utils.tcl chooses the largest non-volatile memory region. The script assigns
the .text, .rodata, .rwdata, .bss, .heap, and .stack section mappings to this default memory region. The
script also sets the hal.linker.exception_stack_memory_region BSP setting to the default memory
region. The setting is available in case the separate exception stack option is enabled (this setting is
disabled by default).
For more information about this setting, refer to the Nios II Software Build Tools Reference chapter of the
Nios II Software Developer’s Handbook.
Related Information
Nios II Software Build Tools Reference on page 15-1
Specifying Default Bootloader Parameters
The bsp-bootloader-utils.tcl script provides procedures to specify the following BSP boolean settings:
NII5V2
2015.05.14
Specifying the Default System Timer
4-37
Nios II Software Build Tools
Altera Corporation
Send Feedback