STM32 Blue Pill Pinout
The STM32 Blue Pill is a compact, low-cost STM32F103C8T6 development board based on a 72 MHz Arm Cortex-M3 microcontroller. It exposes most MCU pins on breadboard-friendly headers and supports common embedded interfaces such as GPIO, ADC, PWM, UART, I2C, SPI, USB, CAN, SWD, and JTAG. It is a popular upgrade path from 8-bit Arduino-style boards when a project needs faster processing, more peripherals, and 3.3 V STM32 development at a very low cost.
- Manufacturer
- ST Microelectronics
- Package
- Dev Board
Pin reference
| Pin | Name | Functions | Description |
|---|---|---|---|
| 1 | B12 | GPIO / SPI2_NSS / I2C2_SMBA / USART3_CK / TIM1_BKIN | <p>PB12 general-purpose I/O with SPI2 chip-select, I2C2 SMBus alert, USART3 clock, and timer break input capability.</p> |
| 2 | B13 | GPIO / SPI2_SCK / USART3_CTS / TIM1_CH1N | <p>PB13 general-purpose I/O with SPI2 clock, USART3 CTS, and timer complementary PWM capability.</p> |
| 3 | B14 | GPIO / SPI2_MISO / USART3_RTS / TIM1_CH2N | <p>PB14 general-purpose I/O with SPI2 MISO, USART3 RTS, and timer complementary PWM capability.</p> |
| 4 | B15 | GPIO / SPI2_MOSI / TIM1_CH3N | <p>PB15 general-purpose I/O with SPI2 MOSI and timer complementary PWM capability.</p> |
| 5 | A8 | GPIO / TIM1_CH1 / USART1_CK / MCO | <p>PA8 general-purpose I/O with timer PWM, USART1 clock, and microcontroller clock output capability.</p> |
| 6 | A9 | GPIO / USART1_TX / TIM1_CH2 | <p>PA9 general-purpose I/O commonly used as USART1 transmit, also supports timer PWM.</p> |
| 7 | A10 | GPIO / USART1_RX / TIM1_CH3 | <p>PA10 general-purpose I/O commonly used as USART1 receive, also supports timer PWM.</p> |
| 8 | A11 | GPIO / USB_DM / CAN_RX / USART1_CTS / TIM1_CH4 | <p>PA11 general-purpose I/O used as USB D− on Blue Pill USB, also supports CAN RX and USART1 CTS.</p> |
| 9 | A12 | GPIO / USB_DP / CAN_TX / USART1_RTS / TIM1_ETR | <p>PA12 general-purpose I/O used as USB D+ on Blue Pill USB, also supports CAN TX and USART1 RTS.</p> |
| 10 | A15 | GPIO / JTDI / SPI1_NSS remap / TIM2_CH1_ETR | <p>PA15 general-purpose I/O shared with JTAG. Disable JTAG if using it as regular GPIO or remapped SPI1 NSS.</p> |
| 11 | B3 | GPIO / JTDO-TRACESWO / SPI1_SCK remap / TIM2_CH2 | <p>PB3 general-purpose I/O shared with JTAG/SWO. Disable JTAG if using it as regular GPIO or remapped SPI1 SCK.</p> |
| 12 | B4 | GPIO / NJTRST / SPI1_MISO remap / TIM3_CH1 | <p>PB4 general-purpose I/O shared with JTAG reset. Disable JTAG if using it as regular GPIO or remapped SPI1 MISO.</p> |
| 13 | B5 | GPIO / I2C1_SMBA / SPI1_MOSI remap / TIM3_CH2 | <p>PB5 general-purpose I/O with I2C SMBus alert, remapped SPI1 MOSI, and timer PWM capability.</p> |
| 14 | B6 | GPIO / I2C1_SCL / USART1_TX remap / TIM4_CH1 | <p>PB6 general-purpose I/O commonly used as I2C1 SCL, also supports remapped USART1 TX and timer PWM.</p> |
| 15 | B7 | GPIO / I2C1_SDA / USART1_RX remap / TIM4_CH2 | <p>PB7 general-purpose I/O commonly used as I2C1 SDA, also supports remapped USART1 RX and timer PWM.</p> |
| 16 | B8 | GPIO / I2C1_SCL remap / CAN_RX remap / TIM4_CH3 | <p>PB8 general-purpose I/O with remapped I2C1 SCL, remapped CAN RX, and timer PWM capability.</p> |
| 17 | B9 | GPIO / I2C1_SDA remap / CAN_TX remap / TIM4_CH4 | <p>PB9 general-purpose I/O with remapped I2C1 SDA, remapped CAN TX, and timer PWM capability.</p> |
| 18 | 5V | 5V power input / USB 5V rail | <p>5 V rail, commonly tied to USB 5 V. Avoid powering through USB and external 5 V at the same time on typical Blue Pill boards.</p> |
| 19 | GND | Ground | <p>Ground reference for power and signals.</p> |
| 20 | 3.3 | 3.3V power rail | <p>Regulated 3.3 V rail. Can power the board or provide limited 3.3 V output depending on wiring.</p> |
| 21 | VB | VBAT / RTC backup supply | <p>VBAT backup-domain supply input for RTC and backup registers.</p> |
| 22 | C13 | GPIO / TAMPER-RTC / Onboard LED | <p>PC13 general-purpose I/O connected to the onboard LED on many Blue Pill boards. Low-drive pin; avoid high-current loads.</p> |
| 23 | C14 | GPIO / OSC32_IN | <p>PC14 general-purpose I/O shared with the 32.768 kHz low-speed external oscillator input. Avoid GPIO use if LSE crystal is installed/enabled.</p> |
| 24 | C15 | GPIO / OSC32_OUT | <p>PC15 general-purpose I/O shared with the 32.768 kHz low-speed external oscillator output. Avoid GPIO use if LSE crystal is installed/enabled.</p> |
| 25 | A0 | GPIO / ADC12_IN0 / TIM2_CH1_ETR / USART2_CTS / WKUP | <p>PA0 analog-capable GPIO with ADC input 0, timer channel, USART2 CTS, and wakeup capability.</p> |
| 26 | A1 | GPIO / ADC12_IN1 / TIM2_CH2 / USART2_RTS | <p>PA1 analog-capable GPIO with ADC input 1, timer PWM, and USART2 RTS capability.</p> |
| 27 | A2 | GPIO / ADC12_IN2 / TIM2_CH3 / USART2_TX | <p>PA2 analog-capable GPIO commonly used as USART2 TX, also supports ADC input 2 and timer PWM.</p> |
| 28 | A3 | GPIO / ADC12_IN3 / TIM2_CH4 / USART2_RX | <p>PA3 analog-capable GPIO commonly used as USART2 RX, also supports ADC input 3 and timer PWM.</p> |
| 29 | A4 | GPIO / ADC12_IN4 / SPI1_NSS / USART2_CK | <p>PA4 analog-capable GPIO with ADC input 4, SPI1 chip-select, and USART2 clock capability.</p> |
| 30 | A5 | GPIO / ADC12_IN5 / SPI1_SCK | <p>PA5 analog-capable GPIO commonly used as SPI1 clock, also supports ADC input 5.</p> |
| 31 | A6 | GPIO / ADC12_IN6 / SPI1_MISO / TIM3_CH1 / TIM1_BKIN | <p>PA6 analog-capable GPIO commonly used as SPI1 MISO, also supports ADC input 6 and timer PWM.</p> |
| 32 | A7 | GPIO / ADC12_IN7 / SPI1_MOSI / TIM3_CH2 / TIM1_CH1N | <p>PA7 analog-capable GPIO commonly used as SPI1 MOSI, also supports ADC input 7 and timer PWM.</p> |
| 33 | B0 | GPIO / ADC12_IN8 / TIM3_CH3 / TIM1_CH2N | <p>PB0 analog-capable GPIO with ADC input 8 and timer PWM capability.</p> |
| 34 | B1 | GPIO / ADC12_IN9 / TIM3_CH4 / TIM1_CH3N | <p>PB1 analog-capable GPIO with ADC input 9 and timer PWM capability.</p> |
| 35 | B10 | GPIO / I2C2_SCL / USART3_TX / TIM2_CH3 | <p>PB10 general-purpose I/O commonly used as I2C2 SCL or USART3 TX, also supports timer PWM.</p> |
| 36 | B11 | GPIO / I2C2_SDA / USART3_RX / TIM2_CH4 | <p>PB11 general-purpose I/O commonly used as I2C2 SDA or USART3 RX, also supports timer PWM.</p> |
| 37 | R | Reset | <p>Active-low reset input for the STM32F103 MCU.</p> |
| 38 | 3.3 | 3.3V power rail | <p>Regulated 3.3 V rail. Can power the board or provide limited 3.3 V output depending on wiring.</p> |
| 39 | GND | Ground | <p>Ground reference for power and signals.</p> |
| 40 | GND | Ground | <p>Ground reference for power and signals.</p> |
| 41 | 3V3 | 3.3V power rail | <p>Regulated 3.3 V rail. Can power the board or provide limited 3.3 V output depending on wiring.</p> |
| 42 | DIO | SWDIO | <p>Serial Wire Debug data pin connected to PA13. Used for programming and debugging.</p> |
| 43 | CLK | SWCLK | <p>Serial Wire Debug clock pin connected to PA14. Used for programming and debugging.</p> |
| 44 | GND | Ground | <p>Ground reference for power and signals.</p> |
