Forum Discussion
Altera_Forum
Honored Contributor
20 years agoHi gerger,
> In addtion. boot_loader only copy crt0 and .text to RAM ? > or it copy all programm image (include crto, .text, .rwdata, .rodata) to RAM? I should copy everything -- but all of my applications run completely in RAM (I do not locate rodata in flash for example) -- so I'm not sure how it behaves if you locate rodata in non-volatile memory. Regardless, as I recall, the "data" that the boot loader operates on is formatted as a sequence of records (length, destination address, data). The loader just fetches the length, and destination, then transfers the following bytes. When the length is zero, the copy process is complete. If you need more details, you should probably "use the force" ;-) and review the source code -- You might also want to get some details on how elf2flash works, since this is where the bootloader is married to your application code. Regards, --Scott