Nios® V Embedded Processor Design Handbook

ID 726952
Date 9/01/2023
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

4.2.1.1. Default BSP Linking

During BSP configuration, the tools perform the following steps automatically:
  1. Assign memory region names: Assign a name to each system memory device and add each name to the linker file as a memory region.
  2. Find largest memory: Identify the largest read-and-write memory region in the linker file.
  3. Assign linker sections: Place the default linker sections (.text, .rodata, .rwdata, .bss, .heap, and .stack) in the memory region identified in the previous step.
  4. Write files: Write the linker.x and linker.h files.

Typically, the linker section allocation scheme works during the software development process because the application is guaranteed to function if the memory is large enough.

The rules for the default linking behaviour are contained in the Intel-generated Tcl scripts bsp-set-defaults.tcl and bsp-linker-utils.tcl found in the <Intel Quartus Prime installation directory>/niosv/scripts/bsp-defaults directory. The niosv-bsp command invokes these scripts. Do not modify these scripts directly.