STM32F103 (Bluepill / demo-blinky)
The STM32F103C8 (Cortex-M3, 64 KB flash, 20 KB SRAM) is LabWired's reference
Cortex-M3 target and is used by examples/demo-blinky/, the
canonical example for attaching an external device model (TMP102) over
I²C.
For build/run instructions, see
examples/demo-blinky/README.md.
Status at a glance
Live status: the table below is a hand-maintained snapshot. For the authoritative, auto-generated view see the chip conformance scoreboard (level · modelled peripherals · register-match vs silicon) and the tier-1 matrix (per-peripheral pass/fail).
| Aspect | Status |
|---|---|
| Chip yaml | configs/chips/stm32f103.yaml |
| System yamls | STM32F103C8T6 Blue Pill, NUCLEO-F103RB, and the bare-chip profiles |
| Reference firmware | examples/stm32f103-blue-pill/, examples/demo-blinky/ |
| Tier | local board smoke (USART1 + PC13 GPIO) and I²C round-trip via demo-blinky |
| Hardware parity | Not byte-parity hardware-validated (see L476 / H563 for the gold path) |
Peripherals (from chip yaml)
| Peripheral | Base | Status | Notes |
|---|---|---|---|
| Cortex-M3 | — | ✅ modeled | Thumb-2, no FPU |
| SysTick | 0xE000E010 | ✅ modeled | System-exception (15) path |
| RCC | 0x40021000 | ✅ modeled | STM32F1 register layout |
| GPIOA | 0x40010800 | ✅ modeled | F1 CRL/CRH layout (not v2 MODER) |
| GPIOB | 0x40010C00 | ✅ modeled | F1 CRL/CRH layout |
| GPIOC | 0x40011000 | ✅ modeled | F1 CRL/CRH layout |
| USART1 | 0x40013800 | ✅ modeled | Board smoke captures USART1 TX |
| USART2 | 0x40004400 | ✅ modeled | NUCLEO-F103RB VCP |
| I²C1 | 0x40005400 | ✅ modeled | Exercised via TMP102 round-trip in demo-blinky |
| I²C2 | 0x40005800 | ✅ modeled | STM32F1 I²C layout |
| AFIO | 0x40010000 | ✅ modeled | Alternate-function I/O remap |
| EXTI | 0x40010400 | ✅ modeled | 19 F103 lines |
| DMA1 | 0x40020000 | ✅ modeled | Channel/request model; see exercise matrix |
Model boundaries
The chip config also declares SPI1/2, timers, ADC, bxCAN, RTC, IWDG, and PWR.
The USB device and BKP windows are zero-answering stubs; WWDG is an inert
model. The Blue Pill board smoke does not exercise those paths. For the
peripheral-by-peripheral firmware evidence, see the
FIRMWARE_EXERCISE_MATRIX.
Validation
- Board-level smoke evidence is available for the STM32F103C8T6 Blue Pill and NUCLEO-F103RB; the latter also has a BME280 I²C smoke.
- For the byte-parity validation pattern, see
docs/boards/nucleo-l476rg.md.