Pro lesson · Preview
Boot Sequence & Startup Code
Everything that runs before main(): the reset vector, copying .data and zeroing .bss, the vector table, and how a bootloader hands off via VTOR.
22 min read
This lesson is part of Pro
Upgrade to unlock the full lesson and the complete interview Q&A.
Unlock with Pro5 interview questions on this topic
Each one opens a full worked answer.
What happens between reset and the first line of main()?How does a global variable get its initial value?What is the vector table and what's special about its first entry?Why must main() never return on a bare-metal system?A bootloader jumps to the application but the app's interrupts don't work. What's the likely cause?
This is just the start
Sign up free to track your progress through this course, mark lessons complete, and work through the full interview Q&A.
More in Embedded Systems Fundamentals
What Is an Embedded System?Inside an MCUThe Memory Map
Registers & Memory-Mapped I/O
GPIO: Digital I/O
Interrupts & ISRs