Skip to content
Board reference

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

PB12PB13PB14PB15PA8PA9PA10PA11PA12PA15PB3PB4PB5PB6PB7PB8PB95VGND3V35VGND3V3PB10PB2PB1PB0PA7PA6PA5PA4PA3PA2PA1PA0RSTPC15PC14PC13VBAT

Hover or tap any pin on the board

LEFT header · pin 1

PB12

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.PinSignalsStatus
1PB12SPI2_NSSOK
2PB13SPI2_SCK, TIM1_CH1NOK
3PB14SPI2_MISO, TIM1_CH2NOK
4PB15SPI2_MOSI, TIM1_CH3NOK
5PA8TIM1_CH1, I2C3_SCL, MCO1OK
6PA9USART1_TX, TIM1_CH2OK
7PA10USART1_RX, TIM1_CH3OK
8PA11USB_DM, USART6_TXCaution
9PA12USB_DP, USART6_RXCaution
10PA15JTDI, SPI3_NSS, TIM2_CH1Caution
11PB3JTDO, SPI1_SCK (alt), I2C2_SDA, TIM2_CH2Caution
12PB4NJTRST, SPI1_MISO (alt), I2C3_SDA, TIM3_CH1Caution
13PB5SPI1_MOSI (alt), TIM3_CH2OK
14PB6I2C1_SCL, USART1_TX (alt), TIM4_CH1OK
15PB7I2C1_SDA, USART1_RX (alt), TIM4_CH2OK
16PB8I2C1_SCL (alt), TIM4_CH3OK
17PB9I2C1_SDA (alt), TIM4_CH4OK
185VUSB VBUS, or a 5 V input to the on-board regulator.
19GNDGround
203V33.3 V from the on-board regulator (also powers the chip), or a regulated 3.3 V input.

RIGHT · right side

No.PinSignalsStatus
15VUSB VBUS, or a 5 V input to the on-board regulator.
2GNDGround
33V33.3 V from the on-board regulator (also powers the chip), or a regulated 3.3 V input.
4PB10I2C2_SCL, SPI2_SCKOK
5PB2BOOT1Caution
6PB1ADC1_IN9, TIM3_CH4OK
7PB0ADC1_IN8, TIM3_CH3OK
8PA7ADC1_IN7, SPI1_MOSI, TIM3_CH2OK
9PA6ADC1_IN6, SPI1_MISO, TIM3_CH1OK
10PA5ADC1_IN5, SPI1_SCK, TIM2_CH1OK
11PA4ADC1_IN4, SPI1_NSSOK
12PA3ADC1_IN3, USART2_RX, TIM2_CH4OK
13PA2ADC1_IN2, USART2_TX, TIM2_CH3OK
14PA1ADC1_IN1, TIM2_CH2, TIM5_CH2OK
15PA0ADC1_IN0, TIM2_CH1, TIM5_CH1, WKUPCaution
16RSTReset line, the same as the NRST button.
17PC15OSC32_OUTAvoid
18PC14OSC32_INAvoid
19PC13LEDCaution
20VBATBackup 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. 1

    Enter DFU mode

    Hold BOOT0, tap NRST, release BOOT0. The board appears as an STM32 DFU device.

  2. 2

    Install STM32duino

    Tools → Board → STM32 MCU based boards → Generic STM32F4 series

    Pick BlackPill F411CE and Upload method: STM32CubeProgrammer (DFU).

  3. 3

    Blink PC13

    The LED lights when the pin is LOW.

  4. 4

    No board on your desk?

    Open a Black Pill circuit in the SolderHub Simulator below.

06Versions

Which version do you have?

THIS PAGE

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.

Board basics guide coming soon

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

No STM32 Black Pill projects yet — we're adding them soon