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
STM32 Blue Pill pinout diagram

Pin reference

PinNameFunctionsDescription
1B12GPIO / 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>
2B13GPIO / SPI2_SCK / USART3_CTS / TIM1_CH1N<p>PB13 general-purpose I/O with SPI2 clock, USART3 CTS, and timer complementary PWM capability.</p>
3B14GPIO / SPI2_MISO / USART3_RTS / TIM1_CH2N<p>PB14 general-purpose I/O with SPI2 MISO, USART3 RTS, and timer complementary PWM capability.</p>
4B15GPIO / SPI2_MOSI / TIM1_CH3N<p>PB15 general-purpose I/O with SPI2 MOSI and timer complementary PWM capability.</p>
5A8GPIO / TIM1_CH1 / USART1_CK / MCO<p>PA8 general-purpose I/O with timer PWM, USART1 clock, and microcontroller clock output capability.</p>
6A9GPIO / USART1_TX / TIM1_CH2<p>PA9 general-purpose I/O commonly used as USART1 transmit, also supports timer PWM.</p>
7A10GPIO / USART1_RX / TIM1_CH3<p>PA10 general-purpose I/O commonly used as USART1 receive, also supports timer PWM.</p>
8A11GPIO / 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>
9A12GPIO / 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>
10A15GPIO / 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>
11B3GPIO / 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>
12B4GPIO / 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>
13B5GPIO / 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>
14B6GPIO / 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>
15B7GPIO / 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>
16B8GPIO / 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>
17B9GPIO / 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>
185V5V 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>
19GNDGround<p>Ground reference for power and signals.</p>
203.33.3V power rail<p>Regulated 3.3 V rail. Can power the board or provide limited 3.3 V output depending on wiring.</p>
21VBVBAT / RTC backup supply<p>VBAT backup-domain supply input for RTC and backup registers.</p>
22C13GPIO / 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>
23C14GPIO / 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>
24C15GPIO / 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>
25A0GPIO / 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>
26A1GPIO / ADC12_IN1 / TIM2_CH2 / USART2_RTS<p>PA1 analog-capable GPIO with ADC input 1, timer PWM, and USART2 RTS capability.</p>
27A2GPIO / 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>
28A3GPIO / 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>
29A4GPIO / ADC12_IN4 / SPI1_NSS / USART2_CK<p>PA4 analog-capable GPIO with ADC input 4, SPI1 chip-select, and USART2 clock capability.</p>
30A5GPIO / ADC12_IN5 / SPI1_SCK<p>PA5 analog-capable GPIO commonly used as SPI1 clock, also supports ADC input 5.</p>
31A6GPIO / 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>
32A7GPIO / 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>
33B0GPIO / ADC12_IN8 / TIM3_CH3 / TIM1_CH2N<p>PB0 analog-capable GPIO with ADC input 8 and timer PWM capability.</p>
34B1GPIO / ADC12_IN9 / TIM3_CH4 / TIM1_CH3N<p>PB1 analog-capable GPIO with ADC input 9 and timer PWM capability.</p>
35B10GPIO / 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>
36B11GPIO / 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>
37RReset<p>Active-low reset input for the STM32F103 MCU.</p>
383.33.3V power rail<p>Regulated 3.3 V rail. Can power the board or provide limited 3.3 V output depending on wiring.</p>
39GNDGround<p>Ground reference for power and signals.</p>
40GNDGround<p>Ground reference for power and signals.</p>
413V33.3V power rail<p>Regulated 3.3 V rail. Can power the board or provide limited 3.3 V output depending on wiring.</p>
42DIOSWDIO<p>Serial Wire Debug data pin connected to PA13. Used for programming and debugging.</p>
43CLKSWCLK<p>Serial Wire Debug clock pin connected to PA14. Used for programming and debugging.</p>
44GNDGround<p>Ground reference for power and signals.</p>

Report an error on this page