STM32 Blue Pill (STM32F103C8T6) pinout

STM32 Blue Pill (STM32F103C8T6), STM32F103C8T6, 3.3 V logic, 22.6×53 mm, 44 pins

partly verified15.10.2026

Top view, USB at the top, SWD at the bottom.

CompareDownload PNG
Chip
STM32F103C8T6
Logic
3.3 V
Power
Micro-USB 4.75-5.25 V5V 4.75-5.25 V3.3 3-3.6 VVB 1.8-3.6 V

Which STM32 Blue Pill (STM32F103C8T6) pins are safe to use

Free to use

PA0-PA10, PA13-PA15, PB0, PB1, PB3-PB15

Use with care

  • PA11, PA12: USB lines: use them and you lose USB flashing and the serial port.
  • PC13: onboard LED.

Leave alone

  • PC14, PC15: internal board lines.

Important

  • 3.3 V logic. Only FT pins tolerate 5 V: PA8–PA15, PB2–PB4, PB6–PB15 (and only when the board is powered). Not tolerant: PA0–PA7, PB0, PB1, PB5, PC13–PC15.
  • USB may not enumerate: the D+ pull-up (R10 on PA12) is 10 or 4.7 kΩ on most boards instead of 1.5 kΩ. Replacing R10 with 1.5 kΩ fixes it.
  • No USB bootloader from the factory: first flash via ST-Link (SWD at the bottom) or via USART1 (PA9, PA10) with BOOT0 = 1. For USB flashing, install a bootloader (STM32duino-bootloader, HID).
  • 5V is tied directly to VBUS: do not apply external 5 V while USB is plugged in.
  • PC13–PC15 are weak: sink current up to 3 mA, up to 2 MHz, no current sourcing. PC14/PC15 carry the 32.768 kHz crystal.
  • PA15, PB3, PB4 are taken by JTAG after reset; stm32duino disables JTAG itself (SWD stays).
  • The chip is often not original: CS32F103, CKS32F103 (IDCODE 0x2BA01477, in OpenOCD set CPUTAPID 0x2ba01477), GD32, APM32. STM32CubeIDE and ST-Link may refuse to work with clones.
  • Small components, the BOOT header and the SWD connector are drawn approximately; pin rows follow the KiCad footprint.
  • 3.3 V regulator, 300 mA (RT9193 per the schematic, often TX6211B or another on real boards).

Revisions and clones

  • Flash: the C8 guarantees 64 KB, most chips physically have 128 KB (not guaranteed by ST). Some boards carry the STM32F103CBT6 (128 KB).
  • Clones differ in regulator, R10 value (10 or 4.7 kΩ, rarely 1.5), LED colors, and sometimes the SWD connector is not soldered.
  • The STM32F103 "Black Pill" (RobotDyn) is a different board with a different pinout; the WeAct Black Pill uses an STM32F401/F411.

All pins

LabelNumberFunctionsLimitsCheck
B12PB12SPI2_NSSI2C2_SMBAUSART3_CKTIM1_BKINEXTI125 V tolerantverified
B13PB13SPI2_SCKPWM TIM1_CH1NUSART3_CTSEXTI135 V tolerantverified
B14PB14SPI2_MISOPWM TIM1_CH2NUSART3_RTSEXTI145 V tolerantverified
B15PB15SPI2_MOSIPWM TIM1_CH3NEXTI155 V tolerantverified
A8PA8PWM TIM1_CH1USART1_CKMCO (clock output)EXTI85 V tolerantverified
A9PA9USART1_TX (Serial)PWM TIM1_CH2EXTI95 V tolerantverified
A10PA10USART1_RX (Serial)PWM TIM1_CH3EXTI105 V tolerantverified
A11PA11USB D− (USBDM)CAN_RXPWM TIM1_CH4USART1_CTSEXTI11USB line5 V tolerantverified
A12PA12USB D+ (USBDP)CAN_TXTIM1_ETRUSART1_RTSEXTI12USB line5 V tolerantonboard pull-upverified
A15PA15JTDIPWM TIM2_CH1 (remap)SPI1_NSS (remap)EXTI155 V tolerantverified
B3PB3JTDO / TRACESWOPWM TIM2_CH2 (remap)SPI1_SCK (remap)EXTI35 V tolerantverified
B4PB4NJTRSTPWM TIM3_CH1 (remap)SPI1_MISO (remap)EXTI45 V tolerantverified
B5PB5I2C1_SMBAPWM TIM3_CH2 (remap)SPI1_MOSI (remap)EXTI5not 5 V tolerantverified
B6PB6I2C1_SCL (Wire)PWM TIM4_CH1USART1_TX (remap)EXTI65 V tolerantverified
B7PB7I2C1_SDA (Wire)PWM TIM4_CH2USART1_RX (remap)EXTI75 V tolerantverified
B8PB8PWM TIM4_CH3I2C1_SCL (remap)CAN_RX (remap)EXTI85 V tolerantverified
B9PB9PWM TIM4_CH4I2C1_SDA (remap)CAN_TX (remap)EXTI95 V tolerantverified
5V5 Vpower inputpower outputverified
GGroundverified
3.33.3 Vpower inputpower outputverified
GGroundverified
GGroundverified
3.33.3 Vpower inputpower outputverified
RNRST: reset (low = reset)verified
B11PB11I2C2_SDAUSART3_RX (Serial3)PWM TIM2_CH4 (remap)EXTI115 V tolerantverified
B10PB10I2C2_SCLUSART3_TX (Serial3)PWM TIM2_CH3 (remap)EXTI105 V tolerantverified
B1PB1ADC12_IN9PWM TIM3_CH4PWM TIM1_CH3N (remap)EXTI1not 5 V tolerantverified
B0PB0ADC12_IN8PWM TIM3_CH3PWM TIM1_CH2N (remap)EXTI0not 5 V tolerantverified
A7PA7ADC12_IN7SPI1_MOSIPWM TIM3_CH2PWM TIM1_CH1N (remap)EXTI7not 5 V tolerantverified
A6PA6ADC12_IN6SPI1_MISOPWM TIM3_CH1TIM1_BKIN (remap)EXTI6not 5 V tolerantverified
A5PA5ADC12_IN5SPI1_SCKEXTI5not 5 V tolerantverified
A4PA4ADC12_IN4SPI1_NSS (SS)USART2_CKEXTI4not 5 V tolerantverified
A3PA3ADC12_IN3PWM TIM2_CH4USART2_RX (Serial2)EXTI3not 5 V tolerantverified
A2PA2ADC12_IN2PWM TIM2_CH3USART2_TX (Serial2)EXTI2not 5 V tolerantverified
A1PA1ADC12_IN1PWM TIM2_CH2USART2_RTSEXTI1not 5 V tolerantverified
A0PA0ADC12_IN0PWM TIM2_CH1USART2_CTSWKUP (wake from Standby)EXTI0not 5 V tolerantverified
C15PC15OSC32_OUT (32.768 kHz crystal)EXTI15not 5 V tolerantused inside the boardverified
C14PC14OSC32_IN (32.768 kHz crystal)EXTI14not 5 V tolerantused inside the boardverified
C13PC13TAMPER-RTCEXTI13not 5 V tolerantonboard LEDverified
VB3.3 Vpower inputverified
3.33.3 Vpower inputpower outputnot from manufacturer
DIOPA13SWDIO (JTMS)EXTI135 V tolerantnot from manufacturer
CLKPA14SWCLK (JTCK)EXTI145 V tolerantnot from manufacturer
GNDGroundnot from manufacturer

Sources

Not verified against the manufacturer: 4 of 44 pins. The pin card says what confirms each one and where sources disagree.

Size: 22.6×53.0 mm per the KiCad footprint (stm32-base says 23×53); clones differ by tenths of a mm (approximate).

FAQ

Which pin is the STM32 Blue Pill (STM32F103C8T6) LED on?
LED on PC13 (lights on LOW).
Are the STM32 Blue Pill (STM32F103C8T6) pins 5 V tolerant?
Only these pins tolerate 5 V: PA8-PA15, PB3, PB4, PB6-PB15. The rest are 3.3 V, so feed them a 5 V signal through a divider or a level shifter.

You might also need

Similar boards

Next

Need firmware or a device built on STM32? I'll build it to order