Forum Discussion
Altera_Forum
Honored Contributor
21 years agoalt_load() is only used when there is no bootloader in your system, for example when you run from flash. This happens when you set the .text section to be in the same memory as the reset vector.
Otherwise a seperate loader is used to load the code from flash. The source for this can be found in the directory: components\altera_nios2\sdk\src\boot_loader_sources in the Nios II kit. When called, alt_load() will copy out the: .rwdata, .rodata, and .exception sections from the boot device to external memory devices, as required.