Forum Discussion
Altera_Forum
Honored Contributor
21 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...
Altera_Forum
Honored Contributor
21 years agoHi smcnutt!
I see.if I use the boot_loader in reset address. after reset ,the reset pointer is boot_loader,boot_loader will copy the programm(crt0) to onchip RAM and relocate my code. the jump entry point of crt0.the crt0 code will initialize the icache (again), then initialize the dcache.then call alt_main(). I had misunderstand before you reply.I had thought first run crto,then call boot_loader. In addtion. boot_loader only copy crt0 and .text to RAM ? or it copy all programm image (include crto, .text, .rwdata, .rodata) to RAM? Thanks.