Nios® V Processor Software Developer Handbook

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

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

The script performs the following functions:
  • 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.
  • Assigns the .text, .rodata, .rwdata, .bss, .heap, and .stack section mappings to this default memory region.

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