|
|
|
|
|
by raddan
411 days ago
|
|
I wrote a bootloader for an iPod Mini when I was an undergrad, and honestly, I don’t think that would have helped me understand linking the first time around. With 20 years of hindsight and lots more hacking experience I can see the connection, but it’s not an obvious one. |
|
The issue is when you have two, three or four .c files that are compiled as separate units that then need to be combined together.
Today, AVR chips and assembly works perfectly fine with .elf objects. But you will likely need to mess with linker scripts to get your bootloader working across different setups.
Especially if you have an element of dynamic boot loading (ex: bootloader program that later continues to load more Application code off of a MicroSD card or UART or over I2C comms.
I'm really not sure how far you can get with this toy project without running into immediate linker issues (or linker scripts).