1.4. Nios II Processor Boot Copier
- Locates the software application in memory software application in memory
- Unpacks and copies software application image to Read Access Memory (RAM)
- Automatically switches to application code in RAM after copy completes
The boot copier is placed at the reset address if the runtime location of the .text section is outside of the boot memory.
However, if the runtime location of the .text section is in the boot memory, the system does not need a separate loader. Instead the _reset entry point in the HAL executable program is called directly. The function _reset initializes the instruction cache and then calls _start. This initialization sequence lets you develop applications that boot and execute directly from flash memory.
|hal.linker.enable_alt_load||Enable 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.|
For more information about the Nios II default sections and the alt_load() function, please refer to the "Nios II Software Build Tools" chapter in the Nios II Classic Software Developer’s Handbook.
- Memcpy-based boot copier
- EPCS Controller- based boot copier
Did you find the information on this page useful?