What Is STM32? Choosing Between Blue Pill, Black Pill and Nucleo
STM32 is a family of 32-bit microcontrollers made by STMicroelectronics. Every STM32 chip is built around an ARM Cortex-M processor core, and ST adds its own peripherals around it: GPIO ports, timers, ADCs, UART, SPI, I2C, USB, DMA controllers and more. Because all members share the same core architecture and the same HAL library, code you write for one STM32 usually moves to another with small changes.
For a student who has used an Arduino Uno, STM32 is the natural next step. You get a much faster CPU, more memory, more timers and real debugging with breakpoints, while still being able to buy a board for a few hundred rupees. This article explains how the family is organised, how to read a part number, and which of the three most popular boards you should buy first.
How the STM32 Family Is Organised
ST groups its microcontrollers into series. The letter after STM32 tells you the broad purpose, and the core type tells you roughly how much processing power you get. The table below lists the series you are most likely to meet as a beginner.
| Series | Core | Typical use |
|---|---|---|
| STM32F0 | Cortex-M0 | Low-cost replacement for 8-bit MCUs |
| STM32F1 | Cortex-M3 | General purpose; the Blue Pill uses this |
| STM32F4 | Cortex-M4 with FPU | DSP, motor control, faster general work |
| STM32G0 / G4 | Cortex-M0+ / Cortex-M4 | Newer mainstream parts with improved peripherals |
| STM32L0 / L4 | Cortex-M0+ / Cortex-M4 | Battery-powered, low-power designs |
| STM32H7 | Cortex-M7 | High-performance work such as graphics and audio |
The Cortex-M4 cores in the F4 series include a single-precision floating point unit (FPU), so float maths runs in hardware. The Cortex-M3 in the F1 series has no FPU, so floating point is done in software and is noticeably slower. If your project does filtering, PID control or sensor fusion, this difference matters.
Decoding an STM32 Part Number
STM32 part numbers look cryptic, but every character has a meaning. Take the chip on the Blue Pill, the STM32F103C8T6, as an example:
STM32 F 103 C 8 T 6 | | | | | | +-- Temperature range: 6 = -40 to +85 C | | | | | +----- Package: T = LQFP | | | | +-------- Flash size: 8 = 64 KB | | | +----------- Pin count: C = 48 pins | | +--------------- Line within the series | +------------------- Type: F = general purpose +------------------------ ST 32-bit Arm Cortex-M family
Common pin-count codes are C for 48 pins, R for 64 pins, V for 100 pins and Z for 144 pins. Common flash codes are 8 for 64 KB, B for 128 KB, C for 256 KB and E for 512 KB. So the STM32F401RET6 on the Nucleo-F401RE is a 64-pin F401 with 512 KB of flash in an LQFP package. Once you know this code, you can read any datasheet title and immediately know what you are holding.
Blue Pill vs Black Pill vs Nucleo-F401RE
These three boards cover almost every beginner need. The figures below come from the respective ST datasheets for the microcontrollers fitted on each board.
| Feature | Blue Pill | Black Pill (F411) | Nucleo-F401RE |
|---|---|---|---|
| Microcontroller | STM32F103C8T6 | STM32F411CEU6 | STM32F401RET6 |
| Core | Cortex-M3 | Cortex-M4F | Cortex-M4F |
| Maximum clock | 72 MHz | 100 MHz | 84 MHz |
| Flash / SRAM | 64 KB / 20 KB | 512 KB / 128 KB | 512 KB / 96 KB |
| On-board programmer | No, needs ST-LINK | No, needs ST-LINK | Yes, ST-LINK/V2-1 |
| User LED | PC13 (active low) | PC13 (active low) | LD2 on PA5 |
| User button | None | KEY on PA0 | B1 on PC13 |
| Headers | Breadboard pins | Breadboard pins | Arduino Uno + Morpho |
Blue Pill (STM32F103C8T6)
The Blue Pill is the cheapest way into STM32 and has a huge amount of community material. Its weak points are real, though. There is no programmer on the board, so you must buy an ST-LINK V2 clone and wire SWDIO, SWCLK, GND and 3.3V. Many boards sold online carry clone chips such as CKS32 or CS32 instead of genuine ST silicon, and these can fail to program or behave differently in STM32CubeIDE. Some batches also shipped with a wrong USB pull-up resistor on PA12, which causes USB enumeration problems.
Black Pill (STM32F401 or STM32F411)
The Black Pill has the same breadboard-friendly shape as the Blue Pill but carries a Cortex-M4F chip with far more memory, a USB-C connector and a user button. It also supports USB DFU flashing through the built-in bootloader, which you enter by holding BOOT0 while pressing reset. Buy the version from WeAct Studio, which is the original designer, to avoid copies of poor quality.
Nucleo-F401RE
The Nucleo-F401RE is ST's own board. It costs more, but the integrated ST-LINK/V2-1 programmer means you plug in a single USB cable and you can flash, debug and use a virtual COM port (USART2 on PA2 and PA3) immediately. The Arduino-style headers let you use many Uno shields, and every pin of the chip is also brought out on the Morpho headers on both sides.
Which Board Should You Buy First?
- Learning with the fewest problems: Nucleo-F401RE. Everything works from one USB cable and CubeIDE recognises the board by name.
- Lowest cost with breadboard projects: Black Pill with an ST-LINK V2 clone. You get a modern Cortex-M4F chip for a small price.
- Following older tutorials and books: Blue Pill, because a large share of existing STM32 material targets the STM32F103.
- Final product or PCB design: choose the chip, not the board. Use CubeMX's MCU selector to filter by peripherals, package and price.
The tutorials in this STM32 series use the Nucleo-F401RE as the main board, with notes for the Blue Pill where pins or clocks differ. Everything uses STM32CubeIDE and the HAL library, which is free and runs on Windows, Linux and macOS.
Common Mistakes When Starting with STM32
- Powering a 3.3 V board's pins from 5 V signals. Only pins marked FT (five-volt tolerant) in the datasheet pin table can accept 5 V, and analog pins never can.
- Forgetting that the PC13 LED on Blue Pill and Black Pill is active low, so writing 0 turns it on.
- Disabling the SWD debug pins in CubeMX. If SYS Debug is left as No Debug, the next flash needs the connect-under-reset option.
- Buying a Blue Pill with a clone chip and assuming the IDE is broken when programming fails.
- Ignoring the reference manual. The datasheet lists pins and electrical limits; the reference manual (for example RM0368 for the F401) explains every peripheral register.
Summary
STM32 is a large family of Cortex-M microcontrollers that share one toolchain and one HAL library. Learn to read part numbers so you can compare chips quickly, and remember that F1 parts lack the FPU found in F4 parts. For a first board, the Nucleo-F401RE gives the smoothest start, the Black Pill gives the best value, and the Blue Pill gives access to the largest pool of older tutorials. In the next article you will install STM32CubeIDE and create your first project.