Forum Discussion
Altera_Forum
Honored Contributor
20 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.