A microcontroller combines a processor core with on-chip flash, SRAM, and peripherals to run embedded firmware. These devices operate under tight resource budgets, often without an operating system. section 1.1 section 1.5.1
At power-on or reset, the hardware reads values that initialize the stack pointer and identify the reset handler, then transfers control to that handler. This predictable sequence happens before user code runs. section 1.2.1 section 1.2
Embedded Rust targets practical constraints of microcontroller firmware:
- Memory safety without runtime overhead helps meet resource and predictable-timing constraints. section 1.1
- Arm Cortex-M is the primary platform; selected RISC-V examples show portability and architectural contrasts. section 1.5 section 1.5.1
Figure 1.2 Initialization sequence
Visualizes the initialization sequence from microcontroller power-on toward program execution. section 1.2
