945 B
945 B
Blue Pill Notes
Baseline
- Board: STM32F103C8T6 Blue Pill
- Core: Cortex-M3
- Default target:
thumbv7m-none-eabi
LED
- Most Blue Pill boards wire the onboard LED to
PC13 - It is usually active-low
set_low()usually turns it onset_high()usually turns it off
RGB LED
PA5= redPA6= greenPA7= bluePA4= drive low for the LED return path
5-Way Button Board
PB12= GND, drive lowPA10= VCC, drive highPB13= rightPB14= downPB15= leftPA8= centerPA9= up- Assumption: the button inputs read high when pressed
- The button examples use
PA8as the default center button - TODO: flip the input polarity if your module is active-low instead
HMC5883L Module
PB4= VCC, drive highPB5= GND, drive lowPB6= SCLPB7= SDAPB8= DRDY
Probe Wiring
SWDIO->SWDIOSWCLK->SWCLKGND->GND3V3->3V3reference