Nios® V Embedded Processor Design Handbook

ID 726952
Date 8/12/2022
Public

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

Document Table of Contents

5.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 16.  Summary of Nios V Processor Vector Configurations and BSP Settings
Boot Option Reset Agent Exception Agent BSP Editor Setting: Settings BSP Editor Setting: Linker Script
Nios® V processor application executes in-place from configuration QSPI flash Configuration QSPI Flash
Choose between:
  • OCRAM/ External RAM
  • QSPI Flash
If the exception agent 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 agent 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 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 OCRAM/ External RAM 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 Exception RAM
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) 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 OCRAM Enable allow_code_at_reset in Advanced.hal.linker and uncheck other settings. Make sure all Linker Sections are set to OCRAM.