Skip to main content

STM32

STM32F103C8T6 "Blue Pill"

Generic STM32F103C8T6 breakout — 72MHz Cortex-M3, 3.3V logic, most GPIOs 5V-tolerant, notoriously inconsistent clone quality.

STM32F103C8T6 · Generic / various (STMicroelectronics chip)

Voltage
3.3V
Package
Breakout Board
Pins
41
Interfaces
CAN, I2C, SPI, UART, USB
Lifecycle
Unknown
Footprint
Not verified

Overview

The "Blue Pill" isn't a single manufacturer's product — it's a generic PCB design built around ST's STM32F103C8T6 (Cortex-M3, 72MHz) that's been cloned by dozens of factories for years, so board-level details vary. Many boards ship with a non-compliant PA12 (USB D+) pull-up, which can make USB device firmware enumerate unreliably. That is separate from the factory ROM boot path: ST documents USART1 for this medium-density device, not USB DFU. Use SWD/ST-Link for the most reliable programming route, or BOOT0 plus USART1 when using the system-memory bootloader. PA11/PA12 are marked FT in ST's pin table, but USB operation must still obey USB electrical levels.

Wiring tip: flash reliably via the 4-pin SWD header (ST-Link); the factory system-memory bootloader uses USART1, not USB DFU

Ecosystem: stm32

stm32cortex-m3devboard3.3vclone

Pins & wiring

01Pin map
41 positions · top view
STM32F103C8T6 "Blue Pill"

Logical two-sided map — confirm the package or board drawing before wiring.

PowerGroundGPIOAnalogI2CSPIUARTUSBControl

All pins

Selected pin

3V3

Power
Direction
Power
Logic / rail
3.3 V
Full pin table
NameRoleDirectionVoltageNote
PowerPower3.3 V
PowerPowerUSB 5V / external 5V input to the onboard regulator.
GroundPassive
PowerPowerPowers the RTC/backup registers when main power is off. Tie to a coin cell (via a diode) if you need the RTC to keep time on power loss, otherwise tie to 3V3.
ControlInActive-low external reset.
ControlInPull HIGH before reset to enter the system-memory bootloader (USART1 on this device); LOW boots user flash.
AnalogBidirectional3.3 V
AnalogBidirectional3.3 V
UARTBidirectional3.3 V
UARTBidirectional3.3 V
SPIBidirectional3.3 V
SPIBidirectional3.3 V
SPIBidirectional3.3 V
SPIBidirectional3.3 V
GPIOBidirectional3.3 V
UARTBidirectional3.3 V
UARTBidirectional3.3 V
USBBidirectional3.3 VUSB D-. Marked FT (5V-tolerant as GPIO) in ST's pin table; USB mode still requires USB-compliant signalling.
USBBidirectional3.3 VUSB D+. Marked FT as GPIO. Clone boards may fit the wrong USB pull-up value, affecting user-firmware enumeration.
ControlBidirectional3.3 VSWD debug data. Avoid repurposing if you want to keep using an ST-Link.
ControlBidirectional3.3 VSWD debug clock. Avoid repurposing if you want to keep using an ST-Link.
GPIOBidirectional3.3 V
AnalogBidirectional3.3 V
AnalogBidirectional3.3 V
GPIOBidirectional3.3 VAlso BOOT1 — sampled at reset together with BOOT0 to select the boot source; some boards mark this pin's header position accordingly.
SPIBidirectional3.3 V
SPIBidirectional3.3 V
SPIBidirectional3.3 V
I2CBidirectional3.3 V
I2CBidirectional3.3 V
I2CBidirectional3.3 V
I2CBidirectional3.3 V
I2CBidirectional3.3 V
I2CBidirectional3.3 V
SPIBidirectional3.3 V
SPIBidirectional3.3 V
SPIBidirectional3.3 V
SPIBidirectional3.3 V
GPIOBidirectional3.3 VDrives the onboard LED (active-LOW) on nearly every Blue Pill variant. Port C pins have lower max drive current than Port A/B on this chip — don't expect them to sink/source as much for an external LED/relay.
GPIOBidirectional3.3 VShared with the 32.768kHz RTC crystal oscillator if one is fitted.
GPIOBidirectional3.3 VShared with the 32.768kHz RTC crystal oscillator if one is fitted.

Wiring examples

Power-up and flashing

Any 3.3V host

Powers from Micro-USB with no extra wiring. Program reliably over SWD/ST-Link, or enter the factory system-memory bootloader and use USART1; this MCU's ROM does not provide USB DFU.

STM32F103C8T6 "Blue Pill" pinConnects toNote
  • The clone-board PA12 pull-up issue affects USB device firmware; it does not create a ROM USB DFU path. SWD (PA13/PA14 + 3V3/GND) sidesteps the board's USB circuitry.
  • PA11/PA12 are marked FT when used as GPIO, but never apply 5V while they are configured for USB signalling.
  • Set BOOT0 HIGH before reset to enter the USART1 system-memory bootloader; LOW runs user flash.

Specifications

Electrical

Core
ARM Cortex-M3src
Max Clock
72 MHzsrc
Flash
64 KBsrc
SRAM
20 KBsrc
Logic Voltage
3.3 Vsrc
Onboard Regulator
Yes
Operating Voltage
Varies by vendor

Interface

GPIO Count
37src
ADC Channels
10src
ADC Resolution
12 bitsrc
Wi-Fi
Nosrc
Bluetooth
Nosrc
Interfaces
i2c, spi, uart, can, usbsrc

Physical

USB Connector
micro-usbsrc
Package
Breakout Board
Length
Varies by vendor
Mounting
tht
Header Format
custom

Thermal

Min Operating Temp
-40 °Csrc
Max Operating Temp
85 °Csrc

Footprint

No independently verified physical footprint is on file for this part yet.

Alternatives

Upgrades

Strictly better on the headline spec, but expect to touch firmware or wiring to actually use the difference.

Adds WiFi/Bluetooth and a much simpler, consistent flashing story (no USB pull-up lottery) for a similar price.

Compare with STM32F103C8T6 "Blue Pill"
  • Wi-Fi: noyes
  • Core: ARM Cortex-M3Xtensa dual-core LX6

Similar parts

Does the same job with a different part. Expect wiring and library changes — a starting point, not a guarantee.

Much simpler toolchain for beginners (stock Arduino IDE, no ST-Link/DFU questions) at the cost of a slower 8-bit core.

Compare with STM32F103C8T6 "Blue Pill"
  • Core: ARM Cortex-M3 @ 72MHzAVR 8-bit @ 16MHz

Documents

Datasheets

Frequently asked questions

What voltage does the STM32F103C8T6 "Blue Pill" run at?

The STM32F103C8T6 "Blue Pill" runs at 3.3V, per the spec sheet below. Always double-check against the specific board you have — some breakouts add an onboard regulator that changes the usable input range.

How many pins does the STM32F103C8T6 "Blue Pill" have?

The STM32F103C8T6 "Blue Pill" has 41 pins, communicating over CAN, I2C, SPI, UART, USB. See the full pinout table in Pins & wiring for each pin's role.

Can I simulate the STM32F103C8T6 "Blue Pill" before ordering hardware?

Not yet — the STM32F103C8T6 "Blue Pill" does not have a live simulation model in Banana Board today, so validate the wiring here and test on real hardware.

Where is the STM32F103C8T6 "Blue Pill" datasheet?

Linked in the Documents section on this page, and cited on every spec that came from it.

Build it, do not just look it up

Describe your circuit in one sentence and Banana Board wires it to these exact pins, validates it, and lays out a fab-ready PCB.

Start building free