Visible to Intel only — GUID: ubg1638455505213
Ixiasoft
1. About this Document
2. Introduction
3. Nios® V Processor Hardware System Design with Intel® Quartus® Prime Pro Edition and Platform Designer
4. Nios® V Processor Software System Design
5. Nios® V Processor Configuration and Booting Solutions
6. Nios® V Processor - Using the MicroC/TCP-IP Stack
7. Nios® V Processor Debugging, Verifying, and Simulating
8. Document Revision History for the Nios® V Embedded Processor Design Handbook
5.1. Introduction
5.2. Linking Applications
5.3. Nios® V Processor Booting Methods
5.4. Introduction to Nios® V Processor Booting Methods
5.5. Nios® V Processor Booting from Configuration QSPI Flash
5.6. Nios V Processor Booting from On-Chip Memory (OCRAM)
5.7. Summary of Nios V Processor Vector Configuration and BSP Settings
7.4.1. Prerequisites
7.4.2. Setting Up and Generating Your Simulation Environment in Platform Designer
7.4.3. Creating Nios V Processor Software
7.4.4. Generating Memory Initialization File
7.4.5. Generating System Simulation Files
7.4.6. Running Simulation in the QuestaSim Simulator Using Command Line
Visible to Intel only — GUID: ubg1638455505213
Ixiasoft
5.4.1.1. alt_load()
You can enable the alt_load() function in the HAL code using the BSP Editor.
The alt_load() function performs the following tasks:
- Operates as a mini boot copier that copies only the writable memory sections to RAM based on the BSP settings.
- Optionally copies sections from the boot memory to RAM.
- Copies data sections (.rodata, .rwdata, .exceptions) to RAM but not the code sections (.text).The code section (.text) section is a read-only section and remains in the booting flash memory region. This partitioning helps to minimize the RAM usage but may limit the code execution performance because accesses to flash memory are slower than accesses to the on-chip RAM.
The following table lists the BSP Editor settings and functions:
BSP Editor Setting | Function |
---|---|
hal.linker.enable_alt_load | Enables alt_load() function. |
hal.linker.enable_alt_load_copy_rodata | alt_load() copies .rodata section to RAM. |
hal.linker.enable_alt_load_copy_rwdata | alt_load() copies .rwdata section to RAM. |
hal.linker.enable_alt_load_copy_exceptions | alt_load() copies .exceptions section to RAM. |