Altera_Forum
Honored Contributor
20 years agothe sequence of boot in NIos II based HAL
I had read the boot modes of NIos II ,I want to know the boot sequence of Nios II based HAL,In the doucount of Altera,It said that if boot without boot_loader ,the crt0.s deal with boot ,see crt0.s code ,the sequence is
1.flush instruction cache; 2.initial BSS region. 3.call _start function to flush data cache; 4.call alt_load() to copy .rwdata and .rodata to RAM; 5.call alt_main(); if boot from falsh,Altera said that will call boot_loader before _start call.the boot_loader also flush instruction cache.I wonder the flush Icache is same with crt0.S?and when to call boot_loader?I couldn't get the boot code with boot_loader. In addition .what is the BSS region