Component guide · Intermediate · 3 min read
STM32 Blue Pill and Black Pill Boards
By Geekobot Learning Team · Updated 24 Oct 2026
On this page
The Blue Pill is a small board with an STM32F103C8 Cortex-M3 at 72 MHz, 64 KB flash and 20 KB RAM. The newer Black Pill uses an STM32F401 or F411 Cortex-M4 at 84 or 100 MHz with much more memory, a floating-point unit, USB-C and a built-in USB bootloader. Both run at 3.3 V, many pins tolerate 5 V, and both program from the Arduino IDE via STM32duino or from STM32CubeIDE.
Key specs at a glance
- Blue Pill MCU
- STM32F103C8T6, Cortex-M3, 72 MHz, 64 KB flash, 20 KB RAM
- Black Pill MCU
- STM32F401CC or F411CE, Cortex-M4F, 84 or 100 MHz, 256 or 512 KB flash
- Logic
- 3.3 V; pins marked FT tolerate 5 V inputs
- ADC
- 12-bit
- Programming
- ST-Link (SWD); Blue Pill also USB-serial with BOOT0; Black Pill USB DFU
- Software
- STM32duino Arduino core, STM32CubeIDE, PlatformIO
Blue Pill or Black Pill?
| Blue Pill | Black Pill (F411) | Arduino Nano | |
|---|---|---|---|
| Core | Cortex-M3, 72 MHz | Cortex-M4F, 100 MHz | AVR, 16 MHz |
| Flash / RAM | 64 KB / 20 KB | 512 KB / 128 KB | 32 KB / 2 KB |
| Float maths | Software | Hardware FPU | Software |
| USB upload | Not out of the box | Yes, DFU | Yes |
| Logic level | 3.3 V | 3.3 V | 5 V |
| Gotchas | Clones, USB resistor | Few | Low memory |
- Core
- Blue Pill:
- Cortex-M3, 72 MHz
- Black Pill (F411):
- Cortex-M4F, 100 MHz
- Arduino Nano:
- AVR, 16 MHz
- Flash / RAM
- Blue Pill:
- 64 KB / 20 KB
- Black Pill (F411):
- 512 KB / 128 KB
- Arduino Nano:
- 32 KB / 2 KB
- Float maths
- Blue Pill:
- Software
- Black Pill (F411):
- Hardware FPU
- Arduino Nano:
- Software
- USB upload
- Blue Pill:
- Not out of the box
- Black Pill (F411):
- Yes, DFU
- Arduino Nano:
- Yes
- Logic level
- Blue Pill:
- 3.3 V
- Black Pill (F411):
- 3.3 V
- Arduino Nano:
- 5 V
- Gotchas
- Blue Pill:
- Clones, USB resistor
- Black Pill (F411):
- Few
- Arduino Nano:
- Low memory
Programming
ST-Link V2 (recommended for both): connect SWDIO, SWCLK, GND and 3.3 V. In the Arduino IDE, install the STM32duino core (STMicroelectronics), select the board and 'STM32CubeProgrammer (SWD)' as the upload method. This also lets you debug with breakpoints in STM32CubeIDE.
Black Pill over USB: hold BOOT0, tap NRST, release BOOT0, and the chip appears as a DFU device; upload with 'STM32CubeProgrammer (DFU)'.
Blue Pill over serial: set the BOOT0 jumper to 1, connect a USB to TTL adapter to PA9 (TX) and PA10 (RX), upload, then set BOOT0 back to 0.
Pitfalls
many Blue Pills carry CS32, CKS32 or GD32 chips marked or sold as STM32. Most work, but some programmers refuse their ID, and timing can differ. The Black Pill from WeAct is a safer buy.
many Blue Pills fit a 10 kΩ resistor (R10) on USB D+ where 1.5 kΩ is specified, which makes USB unreliable on some PCs.
only pins marked FT in the datasheet accept 5 V, and never in analog mode. Use a level shifter when unsure.
the 3.3 V regulator is small; power hungry modules separately.
Try it: ADC resolution calculator
Change the values and the diagram and results update as you type.
Common mistakes to avoid
- Feeding 5 V into a pin that is not FT, or into an analog input.
- Forgetting to return BOOT0 to 0 after a serial upload.
- Buying the cheapest Blue Pill and fighting a clone chip.
- Powering servos from the board's 3.3 V regulator.
- Assuming Arduino Uno libraries that use AVR registers will work.
Frequently asked questions
Is the STM32 Blue Pill still worth buying?
For new projects the Black Pill is usually better: faster, more memory, USB upload and fewer clone problems.
Can I program an STM32 with the Arduino IDE?
Yes, with the STM32duino core from STMicroelectronics and an ST-Link or USB DFU.
Are STM32 pins 5 V tolerant?
Many digital pins marked FT in the datasheet are, but not in analog mode. Check each pin.
Why does my Blue Pill not show up over USB?
It has no USB bootloader by default, and many boards have the wrong USB pull-up resistor. Use an ST-Link.
STM32 or ESP32?
ESP32 for Wi-Fi and Bluetooth. STM32 for precise timers, low-noise ADC, motor control and industry-standard debugging.
Parts for this guide
- ₹20View
Calculators
Terms in this guide
Keep learning
Sources
- STMicroelectronics STM32F103x8 and STM32F411xE datasheets
- STM32duino core documentation
- WeAct Studio Black Pill documentation
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.

