STM32 Black Pill
Faster core, USB-C, more flash
STM32 Black Pill · STM32F411CEU6
WeAct's USB-C STM32 board: a Cortex-M4F with FPU (STM32F411CE: 100 MHz, 512 KB flash, 128 KB SRAM; F401 versions share the pinout), 3.3 V logic, a 12-bit ADC, plenty of timers, and KEY, NRST and BOOT0 buttons.
- CPU
- Cortex-M4F 100 MHz
- GPIO
- 32
- Flash / SRAM
- 512 KB / 128 KB
- ADC
- 10 × 12-bit
Every header pin at a glance
- 22 safe I/O
- 8 use with care
- 2 avoid
- 0 not available
- 8 power, ground & other
01Pinout
Every pin, live
Port names as used in code (PA9, PB12); the silkscreen drops the P.
40 of 40 pins match
Hover or tap any pin on the board
LEFT header · pin 1
PB12
Safe to use
Nothing else on the board depends on this pin. A good first choice for sensors, LEDs and buttons.
Can be used as
- SPI (direct)
Signals on this pad
- PB12
- SPI2_NSS
Full header tables (LEFT, RIGHT)
LEFT · left side
| No. | Pin | Signals | Status |
|---|---|---|---|
| 1 | PB12 | SPI2_NSS | OK |
| 2 | PB13 | SPI2_SCK, TIM1_CH1N | OK |
| 3 | PB14 | SPI2_MISO, TIM1_CH2N | OK |
| 4 | PB15 | SPI2_MOSI, TIM1_CH3N | OK |
| 5 | PA8 | TIM1_CH1, I2C3_SCL, MCO1 | OK |
| 6 | PA9 | USART1_TX, TIM1_CH2 | OK |
| 7 | PA10 | USART1_RX, TIM1_CH3 | OK |
| 8 | PA11 | USB_DM, USART6_TX | Caution |
| 9 | PA12 | USB_DP, USART6_RX | Caution |
| 10 | PA15 | JTDI, SPI3_NSS, TIM2_CH1 | Caution |
| 11 | PB3 | JTDO, SPI1_SCK (alt), I2C2_SDA, TIM2_CH2 | Caution |
| 12 | PB4 | NJTRST, SPI1_MISO (alt), I2C3_SDA, TIM3_CH1 | Caution |
| 13 | PB5 | SPI1_MOSI (alt), TIM3_CH2 | OK |
| 14 | PB6 | I2C1_SCL, USART1_TX (alt), TIM4_CH1 | OK |
| 15 | PB7 | I2C1_SDA, USART1_RX (alt), TIM4_CH2 | OK |
| 16 | PB8 | I2C1_SCL (alt), TIM4_CH3 | OK |
| 17 | PB9 | I2C1_SDA (alt), TIM4_CH4 | OK |
| 18 | 5V | USB VBUS, or a 5 V input to the on-board regulator. | |
| 19 | GND | Ground | |
| 20 | 3V3 | 3.3 V from the on-board regulator (also powers the chip), or a regulated 3.3 V input. |
RIGHT · right side
| No. | Pin | Signals | Status |
|---|---|---|---|
| 1 | 5V | USB VBUS, or a 5 V input to the on-board regulator. | |
| 2 | GND | Ground | |
| 3 | 3V3 | 3.3 V from the on-board regulator (also powers the chip), or a regulated 3.3 V input. | |
| 4 | PB10 | I2C2_SCL, SPI2_SCK | OK |
| 5 | PB2 | BOOT1 | Caution |
| 6 | PB1 | ADC1_IN9, TIM3_CH4 | OK |
| 7 | PB0 | ADC1_IN8, TIM3_CH3 | OK |
| 8 | PA7 | ADC1_IN7, SPI1_MOSI, TIM3_CH2 | OK |
| 9 | PA6 | ADC1_IN6, SPI1_MISO, TIM3_CH1 | OK |
| 10 | PA5 | ADC1_IN5, SPI1_SCK, TIM2_CH1 | OK |
| 11 | PA4 | ADC1_IN4, SPI1_NSS | OK |
| 12 | PA3 | ADC1_IN3, USART2_RX, TIM2_CH4 | OK |
| 13 | PA2 | ADC1_IN2, USART2_TX, TIM2_CH3 | OK |
| 14 | PA1 | ADC1_IN1, TIM2_CH2, TIM5_CH2 | OK |
| 15 | PA0 | ADC1_IN0, TIM2_CH1, TIM5_CH1, WKUP | Caution |
| 16 | RST | Reset line, the same as the NRST button. | |
| 17 | PC15 | OSC32_OUT | Avoid |
| 18 | PC14 | OSC32_IN | Avoid |
| 19 | PC13 | LED | Caution |
| 20 | VBAT | Backup supply: a coin cell here keeps the RTC and backup registers alive. |
02Safety
Pins to avoid, and why
The RTC crystal pins are taken; a few more come with a catch.
Avoid
2 pins
Wired to the RTC crystal. Leave them alone.
- PC1432.768 kHz crystal. Wired to the RTC crystal. Not usable as GPIO.
- PC1532.768 kHz crystal. Wired to the RTC crystal. Not usable as GPIO.
Use with care
8 pins
Usable with a catch: USB, JTAG at reset, BOOT1 or a weak pin.
- PA0KEY button. Pressing KEY shorts PA0 to GND, so anything else on this pin reads LOW (or is shorted) while it's pressed. Read the button with INPUT_PULLUP, or pick another pin.
- PA11USB D−. Wired to the USB-C port. Leave it free if you use USB.
- PA12USB D+. Wired to the USB-C port. Leave it free if you use USB.
- PA15JTAG at reset. A JTAG pin at reset. It's free once you debug over SWD only.
- PB2BOOT1. Pulled down on the board for booting. Best left alone.
- PB3JTAG at reset. A JTAG pin at reset. It's free once you debug over SWD only.
- PB4JTAG at reset. A JTAG pin at reset. It's free once you debug over SWD only.
- PC13Weak pin + LED. In the backup domain: sinks only about 3 mA at low speed, and drives the on-board LED.
03Specs
Full specifications
Microcontroller
- Chip
- STM32F411CEU6Arm Cortex-M4 with FPU, 100 MHz (96 MHz with USB).
- Flash / SRAM
- 512 KB / 128 KB
- Clocks
- 25 MHz crystal + 32.768 kHz RTC crystal
Versions
- STM32F401CE
- 84 MHz, 512 KB / 96 KB
- STM32F401CC
- 84 MHz, 256 KB / 64 KB
Power
- Logic level
- 3.3 VMost pins are 5 V tolerant (FT) as inputs, never while in analog mode.
- Inputs
- USB-C 5 V, 5V pin or 3V3 pin
Peripherals
- ADC
- 1 × 12-bit, 10 channelsPA0–PA7, PB0, PB1.
- Timers
- TIM1, TIM2–TIM5, TIM9–TIM11
- Buses
- 3 USART, 3 I2C, 5 SPI, USB OTG FS
04Buses
Where each bus lives
USART
USART1 PA9/PA10 (alt PB6/PB7), USART2 PA2/PA3, USART6 PA11/PA12 (clashes with USB).
I2C
I2C1 PB6 (SCL) / PB7 (SDA), alt PB8/PB9. I2C2 PB10/PB3. I2C3 PA8/PB4. No pull-ups on the board.
SPI
SPI1 PA5/PA6/PA7 (alt PB3/PB4/PB5); SPI2 PB13/PB14/PB15.
Analog
Ten 12-bit channels on PA0–PA7, PB0 and PB1, 0–3.3 V. Call analogReadResolution(12) in STM32duino.
05Power & start
Power it up and get connected
Power options
- USB-C5 V into the on-board 3.3 V regulator; also USB (DFU and CDC).
- 5V pinsUSB VBUS, or a 5 V input.
- 3V3 pinsRegulator output, or a regulated 3.3 V input.
- VBATCoin cell for the RTC and backup registers.
- 1
Enter DFU mode
Hold BOOT0, tap NRST, release BOOT0. The board appears as an STM32 DFU device.
- 2
Install STM32duino
Tools → Board → STM32 MCU based boards → Generic STM32F4 seriesPick BlackPill F411CE and Upload method: STM32CubeProgrammer (DFU).
- 3
Blink PC13
The LED lights when the pin is LOW.
- 4
No board on your desk?
Open a Black Pill circuit in the SolderHub Simulator below.
06Versions
Which version do you have?
STM32F411CEU6
- Clock
- 100 MHz
- Flash / SRAM
- 512 KB / 128 KB
STM32F401CEU6
- Clock
- 84 MHz
- Flash / SRAM
- 512 KB / 96 KB
STM32F401CCU6
- Clock
- 84 MHz
- Flash / SRAM
- 256 KB / 64 KB
07Gotchas
Things that trip people up
01
There is no PB11
The 48-pin F411 package doesn't have it, so don't look for it on the header.
02
PC13–PC15 are weak
Only about 3 mA at low speed. PC14/PC15 belong to the RTC crystal; PC13 drives the LED (active LOW).
03
Pins on one timer share a frequency
Put a 50 Hz servo and a 20 kHz motor on different timers, e.g. PB6 (TIM4) and PA8 (TIM1).
04
No pin is 5 V tolerant in analog mode
Check the FT marking in the datasheet before feeding a pin 5 V.
05
Leave PA11/PA12 free for USB
They're the USB data lines (and USART6).
08SolderHub Simulator
Wire up the STM32 Black Pill without the hardware
Build and run circuits in the SolderHub Simulator, right in your browser.
Board Basics
Introduction, pinout, and protocols — all in one guide.
Sensor Modules & Library
Wiring sensors and modules, plus the library you need to talk to them.
Sensor Integration
Coming soon
Library & Setup
Coming soon
Projects
More From This Board
4More STM32 Black Pill guides worth reading.

STM32 Low-Power Modes: Sleep, Stop, and Standby Explained (With Working Code)
6m
STM32 Black Pill Pinout: STM32F411 GPIO, ADC, Timers and Peripherals
6m
STM32 Blue Pill Pinout: STM32F103C8T6 GPIO, ADC, Peripherals and Programming
6mSTM32 Nucleo Pinout: Arduino Headers, Morpho Connectors, and GPIO Explained
10m