Development boards

STM32 Blue Pill pinout

STM32F103C8T6 · 2 × 20 header + 4 SWD pins

Open in the interactive atlas →See the pin map, choose functions and save a wiring plan.Türkçe

Board pins follow a community reference; MCU functions follow ST documentation. Check chip markings and wiring on clones. With USB at the top: H2 left, H1 right, SWD below. H1/H2/SWD positions are not chip pin numbers. Oscillators, LED, USB and debug lines share board circuitry. AFIO remap settings apply to whole peripherals; configure selected pins consistently.

At a glance

Platform / manufacturer
STM32
Type
Development boards
MCU
STM32F103C8T6
Physical contacts
44
GPIO
34
I/O voltage
3.3 V I/O
Interfaces (pin count)
I²C (8) · SPI (12) · UART (17) · CAN (4) · USB (2) · ADC (10) · PWM (25) · CLOCK (3) · JTAG (5) · SWD (2) · SYSTEM (2) · TIMER (3)
First production / release date
Unverified for this exact model/revision [a] [b]
MCU / processor core
Arm Cortex-M3 [a] [b]
Clock speed / maximum
72 MHz [a] [b]
Internal RAM / system RAM
20 KB [a] [b]
Program Flash / storage
64 KB Flash [a] [b]
Power and logic level
Board GPIO: 3.3 V. Select USB / external power using the jumper and bridge conditions in the board manual. [a] [b] [c]
MCU datasheet initial publication
2007-06-01 [b]
Pin sources checked
2026-11-05
Technical details reviewed
2026-11-14

All pins (44)

STM32 Blue Pill: every pin in physical order with its type, functions and warnings
PhysicalPin nameTypeFunctionsNotes and warningsSource
H1.1VBATMCU pin 1Power—

Backup-domain supply. Check the ST datasheet for permitted voltage and power sequencing.

[1] [2] [3] [4] [5]
H1.2PC13MCU pin 2General-purpose I/OTAMPER-RTC

3.3V Only

PC13 drives the active-low user LED. ST’s PC13–PC15 limits apply: 3 mA, 2 MHz, 30 pF; do not use it as a current source.

[1] [2] [3] [4] [5] [6]
H1.3PC14MCU pin 3General-purpose I/OOSC32_IN

3.3V Only

Connected to the board’s 32.768 kHz LSE crystal. GPIO use can be affected by the crystal circuit; PC13–PC15 low-drive limits apply.

[1] [2] [3] [4] [5] [6]
H1.4PC15MCU pin 4General-purpose I/OOSC32_OUT

3.3V Only

Connected to the board’s 32.768 kHz LSE crystal. GPIO use can be affected by the crystal circuit; PC13–PC15 low-drive limits apply.

[1] [2] [3] [4] [5] [6]
H1.5PA0MCU pin 10General-purpose I/OWKUPUSART2_CTS USART2_REMAP=0 USART2_REMAP: 0ADC12_IN0TIM2_CH1_ETR TIM2_REMAP=00|10 TIM2_REMAP: 00 / 10

3.3V Only

[1] [2] [3] [4] [7] [6]
H1.6PA1MCU pin 11General-purpose I/OUSART2_RTS USART2_REMAP=0 USART2_REMAP: 0ADC12_IN1TIM2_CH2 TIM2_REMAP=00|10 TIM2_REMAP: 00 / 10

3.3V Only

[1] [2] [3] [4] [7] [6]
H1.7PA2MCU pin 12General-purpose I/OUSART2_TX USART2_REMAP=0 USART2_REMAP: 0ADC12_IN2TIM2_CH3 TIM2_REMAP=00|01 TIM2_REMAP: 00 / 01

3.3V Only

[1] [2] [3] [4] [7] [6]
H1.8PA3MCU pin 13General-purpose I/OUSART2_RX USART2_REMAP=0 USART2_REMAP: 0ADC12_IN3TIM2_CH4 TIM2_REMAP=00|01 TIM2_REMAP: 00 / 01

3.3V Only

[1] [2] [3] [4] [7] [6]
H1.9PA4MCU pin 14General-purpose I/OSPI1_NSS SPI1_REMAP=0 SPI1_REMAP: 0USART2_CK USART2_REMAP=0 USART2_REMAP: 0ADC12_IN4

3.3V Only

[1] [2] [3] [4] [7] [6]
H1.10PA5MCU pin 15General-purpose I/OSPI1_SCK SPI1_REMAP=0 SPI1_REMAP: 0ADC12_IN5

3.3V Only

[1] [2] [3] [4] [7] [6]
H1.11PA6MCU pin 16General-purpose I/OSPI1_MISO SPI1_REMAP=0 SPI1_REMAP: 0ADC12_IN6TIM3_CH1 TIM3_REMAP=00 TIM3_REMAP: 00TIM1_BKIN TIM1_REMAP=01 TIM1_REMAP: 01

3.3V Only

[1] [2] [3] [4] [7] [6]
H1.12PA7MCU pin 17General-purpose I/OSPI1_MOSI SPI1_REMAP=0 SPI1_REMAP: 0ADC12_IN7TIM3_CH2 TIM3_REMAP=00 TIM3_REMAP: 00TIM1_CH1N TIM1_REMAP=01 TIM1_REMAP: 01

3.3V Only

[1] [2] [3] [4] [7] [6]
H1.13PB0MCU pin 18General-purpose I/OADC12_IN8TIM3_CH3 TIM3_REMAP=00|10 TIM3_REMAP: 00 / 10TIM1_CH2N TIM1_REMAP=01 TIM1_REMAP: 01

3.3V Only

[1] [2] [3] [4] [7] [6]
H1.14PB1MCU pin 19General-purpose I/OADC12_IN9TIM3_CH4 TIM3_REMAP=00|10 TIM3_REMAP: 00 / 10TIM1_CH3N TIM1_REMAP=01 TIM1_REMAP: 01

3.3V Only

[1] [2] [3] [4] [7] [6]
H1.15PB10MCU pin 21General-purpose I/OI2C2_SCLUSART3_TX USART3_REMAP=00 USART3_REMAP: 00TIM2_CH3 TIM2_REMAP=10|11 TIM2_REMAP: 10 / 11

5V FT

[1] [2] [3] [4] [8] [6]
H1.16PB11MCU pin 22General-purpose I/OI2C2_SDAUSART3_RX USART3_REMAP=00 USART3_REMAP: 00TIM2_CH4 TIM2_REMAP=10|11 TIM2_REMAP: 10 / 11

5V FT

[1] [2] [3] [4] [8] [6]
H1.17NRSTMCU pin 7System—

Active-low reset line. Shared with the reset button on Blue Pill.

[1] [2] [3] [4] [5]
H1.183V3Power——[1] [2] [3]
H1.19GNDGround——[1] [2] [3]
H1.20GNDGround——[1] [2] [3]
H2.13V3Power——[9] [2] [3]
H2.2GNDGround——[9] [2] [3]
H2.35VPower—

The 5 V rail connects directly to USB VBUS. The reference board has no isolation; do not connect USB and an external 5 V supply simultaneously.

[9] [2] [3]
H2.4PB9MCU pin 46General-purpose I/OTIM4_CH4 TIM4_REMAP=0 TIM4_REMAP: 0I2C1_SDA I2C1_REMAP=1 I2C1_REMAP: 1CANTX CAN_REMAP=10 CAN_REMAP: 10

5V FT

[9] [2] [3] [4] [10] [6]
H2.5PB8MCU pin 45General-purpose I/OTIM4_CH3 TIM4_REMAP=0 TIM4_REMAP: 0I2C1_SCL I2C1_REMAP=1 I2C1_REMAP: 1CANRX CAN_REMAP=10 CAN_REMAP: 10

5V FT

[9] [2] [3] [4] [10] [6]
H2.6PB7MCU pin 43General-purpose I/OI2C1_SDA I2C1_REMAP=0 I2C1_REMAP: 0TIM4_CH2 TIM4_REMAP=0 TIM4_REMAP: 0USART1_RX USART1_REMAP=1 USART1_REMAP: 1

5V FT

[9] [2] [3] [4] [11] [6]
H2.7PB6MCU pin 42General-purpose I/OI2C1_SCL I2C1_REMAP=0 I2C1_REMAP: 0TIM4_CH1 TIM4_REMAP=0 TIM4_REMAP: 0USART1_TX USART1_REMAP=1 USART1_REMAP: 1

5V FT

[9] [2] [3] [4] [11] [6]
H2.8PB5MCU pin 41General-purpose I/OI2C1_SMBAlTIM3_CH2 TIM3_REMAP=10 TIM3_REMAP: 10SPI1_MOSI SPI1_REMAP=1 SPI1_REMAP: 1

3.3V Only

[9] [2] [3] [4] [11] [6]
H2.9PB4MCU pin 40General-purpose I/OTIM3_CH1 TIM3_REMAP=10 TIM3_REMAP: 10SPI1_MISO SPI1_REMAP=1 SPI1_REMAP: 1JNTRST

5V FT

Assigned to JTAG after reset. Release the pin with an appropriate SWJ_CFG setting before SPI/timer/GPIO use; SWD can remain enabled.

[9] [2] [3] [4] [11] [6]
H2.10PB3MCU pin 39General-purpose I/OTIM2_CH2 TIM2_REMAP=01|11 TIM2_REMAP: 01 / 11TRACESWOSPI1_SCK SPI1_REMAP=1 SPI1_REMAP: 1JTDO

5V FT

Assigned to JTAG after reset. Release the pin with an appropriate SWJ_CFG setting before SPI/timer/GPIO use; SWD can remain enabled.

[9] [2] [3] [4] [11] [6]
H2.11PA15MCU pin 38General-purpose I/OTIM2_CH1_ETR TIM2_REMAP=01|11 TIM2_REMAP: 01 / 11SPI1_NSS SPI1_REMAP=1 SPI1_REMAP: 1JTDI

5V FT

Assigned to JTAG after reset. Release the pin with an appropriate SWJ_CFG setting before SPI/timer/GPIO use; SWD can remain enabled.

[9] [2] [3] [4] [11] [6]
H2.12PA12MCU pin 33General-purpose I/OUSART1_RTSCANTX CAN_REMAP=00 CAN_REMAP: 00USBDPTIM1_ETR TIM1_REMAP=00|01 TIM1_REMAP: 00 / 01

5V FT

Shared with the board’s USB data connection. Consider GPIO/AFIO settings and the board USB circuitry before USB, CAN or other alternate-function use.

[9] [2] [3] [4] [12] [6]
H2.13PA11MCU pin 32General-purpose I/OUSART1_CTSCANRX CAN_REMAP=00 CAN_REMAP: 00USBDMTIM1_CH4 TIM1_REMAP=00|01 TIM1_REMAP: 00 / 01

5V FT

Shared with the board’s USB data connection. Consider GPIO/AFIO settings and the board USB circuitry before USB, CAN or other alternate-function use.

[9] [2] [3] [4] [12] [6]
H2.14PA10MCU pin 31General-purpose I/OUSART1_RX USART1_REMAP=0 USART1_REMAP: 0TIM1_CH3 TIM1_REMAP=00|01 TIM1_REMAP: 00 / 01

5V FT

[9] [2] [3] [4] [12] [6]
H2.15PA9MCU pin 30General-purpose I/OUSART1_TX USART1_REMAP=0 USART1_REMAP: 0TIM1_CH2 TIM1_REMAP=00|01 TIM1_REMAP: 00 / 01

5V FT

[9] [2] [3] [4] [12] [6]
H2.16PA8MCU pin 29General-purpose I/OUSART1_CKTIM1_CH1 TIM1_REMAP=00|01 TIM1_REMAP: 00 / 01MCO

5V FT

[9] [2] [3] [4] [12] [6]
H2.17PB15MCU pin 28General-purpose I/OSPI2_MOSITIM1_CH3N TIM1_REMAP=00 TIM1_REMAP: 00

5V FT

[9] [2] [3] [4] [8] [6]
H2.18PB14MCU pin 27General-purpose I/OSPI2_MISOUSART3_RTS USART3_REMAP=00|01 USART3_REMAP: 00 / 01TIM1_CH2N TIM1_REMAP=00 TIM1_REMAP: 00

5V FT

[9] [2] [3] [4] [8] [6]
H2.19PB13MCU pin 26General-purpose I/OSPI2_SCKUSART3_CTS USART3_REMAP=00|01 USART3_REMAP: 00 / 01TIM1_CH1N TIM1_REMAP=00 TIM1_REMAP: 00

5V FT

[9] [2] [3] [4] [8] [6]
H2.20PB12MCU pin 25General-purpose I/OSPI2_NSSI2C2_SMBAlUSART3_CK USART3_REMAP=00 USART3_REMAP: 00TIM1_BKIN TIM1_REMAP=00 TIM1_REMAP: 00

5V FT

[9] [2] [3] [4] [8] [6]
SWD.13V3Power——[13] [2] [3]
SWD.2PA13MCU pin 34General-purpose I/OJTMSSWDIO

5V FT

Assigned to SWD/debug after reset. Releasing it for GPIO affects debugging; consider SWJ_CFG and the programming connection together.

[13] [2] [3] [4] [12] [6]
SWD.3PA14MCU pin 37General-purpose I/OJTCKSWCLK

5V FT

Assigned to SWD/debug after reset. Releasing it for GPIO affects debugging; consider SWJ_CFG and the programming connection together.

[13] [2] [3] [4] [11] [6]
SWD.4GNDGround——[13] [2] [3]

General usage notes

Configure the GPIO mode and any required AFIO remap setting. Peripherals sharing this pin cannot be used simultaneously.

Model-specific features and connection notes

Sources

Pin and warning references

  1. Blue Pill STM32F103C8T6 board reference (community)Header 1 pins · numbered connector pins and connected nets
  2. Blue Pill reference schematic (community mirror) · PDF p. 1Community schematic · P3/P4 headers, P2 SWD and shared circuitry; RESET/NRST net-label mismatch; use board connector table for reset
  3. Blue Pill reference top-view photo (community)Community reference top view; USB at top, SWD at bottom; H2 left / H1 right
  4. STM32F103x8 / STM32F103xB datasheet · PDF p. 26§3 · Figure 8 · LQFP48 perimeter numbering; no exposed center pad
  5. STM32F103x8 / STM32F103xB datasheet · PDF p. 28§3 · Table 5 · LQFP columns, pin names, I/O tolerance and alternate functions
  6. STM32F103x8 / STM32F103xB datasheet · PDF p. 33Table 5 notes · FT qualification, PC13–PC15 limits and HSE remap restrictions
  7. STM32F103x8 / STM32F103xB datasheet · PDF p. 29§3 · Table 5 · LQFP columns, pin names, I/O tolerance and alternate functions
  8. STM32F103x8 / STM32F103xB datasheet · PDF p. 30§3 · Table 5 · LQFP columns, pin names, I/O tolerance and alternate functions
  9. Blue Pill STM32F103C8T6 board reference (community)Header 2 pins · numbered connector pins and connected nets
  10. STM32F103x8 / STM32F103xB datasheet · PDF p. 33§3 · Table 5 · LQFP columns, pin names, I/O tolerance and alternate functions
  11. STM32F103x8 / STM32F103xB datasheet · PDF p. 32§3 · Table 5 · LQFP columns, pin names, I/O tolerance and alternate functions
  12. STM32F103x8 / STM32F103xB datasheet · PDF p. 31§3 · Table 5 · LQFP columns, pin names, I/O tolerance and alternate functions
  13. Blue Pill STM32F103C8T6 board reference (community)SWD header pins · numbered connector pins and connected nets

Technical sources (4)

  1. F103C8 specificationsSTMicroelectronics · Product overview · exact part; memory and core features
  2. F103C8 datasheetSTMicroelectronics · Features; device summary / ordering code; memory map; revision history; revision history: initial release 2007-06-01
  3. Blue Pill reference schematic (community mirror)Community design mirrored by STM32-base · Locked pin-source document; see sources/manifest.json for revision and SHA-256
  4. STM32F103x8 / STM32F103xB datasheetSTMicroelectronics · Locked pin-source document; see sources/manifest.json for revision and SHA-256

Locked source documents

Pin reference · Datasheet