Nios II Classic Software Developer’s Handbook

ID 683282
Date 5/14/2015
Public
Document Table of Contents

4.8.4. 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 section.

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