Nios® V Embedded Processor Design Handbook

ID 726952
Date 10/31/2022
Public

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

Document Table of Contents

4.7. 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 19.  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 GSFI bootloader 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 SDM bootloader Bootloader ROM
For SDM bootloader, 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 SDM bootloader,
  • 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.