Nios® V Embedded Processor Design Handbook

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

4.8. Summary of Nios® V Processor Vector Configuration and BSP Settings

The following table shows a summary of Nios® V processor reset and exception agent configurations, and BSP settings.
Table 31.  Summary of Nios® V Processor Vector Configurations and BSP Settings
Boot Option Reset Agent BSP Editor Setting: Settings BSP Editor Setting: Linker Script
Nios® V processor application executes in-place from configuration QSPI flash Configuration QSPI Flash
If the .exceptionn Linker Section is set to OCRAM/ External RAM, enable the following settings in Advanced.hal.linker
  • allow_code_at_reset
  • enable_alt_load
  • enable_alt_load_copy_rodata
  • enable_alt_load_copy_rwdata
  • enable_alt_load_copy_exceptions
If the .exception Linker Section is set to QSPI Flash, enable the following settings in Advanced.hal.linker:
  • allow_code_at_reset
  • enable_alt_load
  • enable_alt_load_copy_rodata
  • enable_alt_load_copy_rwdata
  • Set .text Linker Section to QSPI flash
  • Set .exception Linker Section to OCRAM/External RAM or QSPI flash.
  • Set other Linker Sections (.heap, .rwdata, rodata,.bss, .stack) to OCRAM / External RAM
Nios® V processor application copied from configuration QSPI flash to RAM using bootloader via GSFI Configuration QSPI Flash Uncheck all settings in Advanced.hal.linker . Make sure all Linker Sections are set to OCRAM / External RAM.
Nios® V processor application copied from configuration QSPI flash to RAM using bootloader via SDM Bootloader ROM
For bootloader via SDM, enable the following settings in Advanced.hal.linker:
  • allow_code_at_reset
  • enable_alt_load
  • enable_alt_load_copy_rodata
  • enable_alt_load_copy_rwdata
  • enable_alt_load_copy_exceptions
For bootloader via SDM:
  • Set .text Linker Section to Bootloader ROM.
  • Set other Linker Sections (.heap, .rwdata, .rodata, .bss, .stack, .exception) to Bootloader RAM.

For user application, enable the following settings in Advanced.hal.linker:
  • enable_alt_load
  • enable_alt_load_copy_exceptions

For user application, make sure all Linker Sections are set to User Application RAM.

Nios® V processor application execute in-place from On-chip Memory (OCRAM) OCRAM Enable allow_code_at_reset in Advanced.hal.linker and uncheck other settings. Make sure all Linker Sections are set to OCRAM.
Nios® V processor application execute in-place from Tightly Coupled Memory (TCM) TCM Enable allow_code_at_reset in Advanced.hal.linker and uncheck other settings.
  • Set .text and .exception Linker Section to Instruction TCM.
  • Set other Linker Section (.heap, .rwdata, .rodata, .bss, .stack to Data TCM.