The STM32F401 and STM32F411 Black Pill boards look almost identical, use the same compact 48-pin STM32F4 format and share most of the same development workflow. The F411 is faster and has more SRAM, but the gap is smaller than many comparison tables suggest.
The most common comparison is between the STM32F401CEU6 and STM32F411CEU6. Both provide 512 KB Flash, Cortex-M4 with single-precision FPU/DSP instructions, USB 2.0 full-speed OTG, SDIO, SWD/JTAG and factory USB DFU bootloader support.
The F411 adds 100 MHz operation instead of 84 MHz, 128 KB SRAM instead of 96 KB, one extra SPI/I2S interface, a little more timer/peripheral capability and better performance-per-MHz. For a small price difference, it is usually the better Black Pill to buy for a new project. But the F401CE is still a very capable board and is not remotely obsolete.
Quick Comparison
| Feature | STM32F401CE Black Pill | STM32F411CE Black Pill |
|---|---|---|
| CPU core | Cortex-M4 + FPU/DSP | Cortex-M4 + FPU/DSP |
| Maximum CPU clock | 84 MHz | 100 MHz |
| Flash | 512 KB | 512 KB |
| SRAM | 96 KB | 128 KB |
| ADC | 1 × 12-bit, up to 2.4 MSPS | 1 × 12-bit, up to 2.4 MSPS |
| Timers | Up to 10 | Up to 11 |
| USART/UART | Up to 3 | Up to 3 |
| I²C | Up to 3 | Up to 3 |
| SPI/I²S | Up to 4 | Up to 5 |
| SDIO | Yes | Yes |
| USB | USB 2.0 FS OTG | USB 2.0 FS OTG |
| Factory USB DFU bootloader | Yes | Yes |
| SWD/JTAG | Yes | Yes |
| Arduino STM32 core | Supported | Supported |
| Best reason to buy | Usually cheaper | More performance and RAM |
The F401 Black Pill Comes in More Than One Memory Version
One source of confusion is that ‘F401 Black Pill’ does not describe one exact microcontroller. Common boards have appeared with both STM32F401CC and STM32F401CE devices.
| Part | Flash | SRAM |
|---|---|---|
| STM32F401CC | 256 KB | 64 KB |
| STM32F401CE | 512 KB | 96 KB |
| STM32F411CE | 512 KB | 128 KB |
The official STM32 Arduino core has board definitions for WeAct-style STM32F401CC, STM32F401CE and STM32F411CE Black Pills. Always read the actual MCU marking before choosing board settings or assuming memory size.
CPU: 84 MHz vs 100 MHz
The STM32F401 runs its Cortex-M4 core at up to 84 MHz. The STM32F411 raises this to 100 MHz. ST quotes the F401 at about 105 DMIPS and the F411 at about 125 DMIPS.
That is roughly a 19% increase in maximum clock frequency. In a CPU-bound task, the F411 can therefore complete more work in the same period, but this is not the kind of jump seen when moving from an F103 Blue Pill to an F411 Black Pill.
Both chips already have the important Cortex-M4 features:
- Single-precision hardware floating-point unit.
- DSP-oriented instructions.
- NVIC interrupt controller.
- MPU memory protection.
- ART Flash accelerator.
For GPIO, ordinary sensors, state machines and moderate control firmware, both feel fast. The F411’s extra clock headroom becomes more useful for DSP, fast control loops, audio, signal processing, high-rate protocol handling and projects using many peripherals simultaneously.
RAM Is the Bigger Practical Difference
The F401CE has 96 KB SRAM. The F411CE has 128 KB. That extra 32 KB is often more valuable than the 16 MHz CPU-clock difference.
RAM limits show up when a project uses:
- Large sample buffers.
- USB stacks.
- SD-card buffers.
- RTOS tasks and stacks.
- Audio or DSP windows.
- Large serial buffers.
- Graphics frame/line buffers.
- Complex C++ libraries.
A simple Arduino sketch may never notice the difference. A FreeRTOS project with USB, logging and signal processing can consume 96 KB surprisingly quickly.
Flash Is the Same on F401CE and F411CE
Both CE variants contain 512 KB Flash. That means code-space alone is not a reason to choose F411CE over F401CE.
If your F401 board is the older F401CC version, however, it has only 256 KB Flash and 64 KB SRAM. That creates a much larger practical gap compared with an F411CE.
Both Have USB Full-Speed OTG
Both F401CE and F411CE include a USB 2.0 full-speed device/host/OTG controller with on-chip PHY. On a typical Black Pill, PA11 and PA12 are used for USB D− and D+.
That makes both boards suitable for projects such as:
- USB CDC serial.
- USB HID keyboards/controllers.
- USB MIDI.
- Custom USB device classes.
- DFU programming.
Board-level connector and power-routing details still depend on the exact Black Pill revision.
Both Support Factory USB DFU
The STM32 system-memory bootloader for both STM32F401 and STM32F411 supports USB DFU. This is stored in factory ROM; you do not need to install a third-party bootloader just to program by USB.
Typical DFU workflow:
Hold BOOT0
│
Press/release NRST
│
Release BOOT0
│
STM32 boots system memory
│
USB enumerates in DFU mode
│
Program with STM32CubeProgrammer / dfu tools
Exact button behaviour depends on the board wiring, but the underlying DFU capability is present in both MCUs.
F411 Has More SRAM and Slightly More Peripheral Headroom
At family level, ST lists up to 13 communication interfaces on the F411 versus up to 12 on the F401. The practical difference most users notice is SPI/I²S count.
| Peripheral family | F401 | F411 |
|---|---|---|
| USART | Up to 3 | Up to 3 |
| I²C | Up to 3 | Up to 3 |
| SPI/I²S | Up to 4 | Up to 5 |
| SDIO | Yes | Yes |
| USB FS OTG | Yes | Yes |
Not every peripheral instance is available on every 48-pin package pin simultaneously. Alternate-function multiplexing still decides what you can actually route on the board.
Timers
The F401 family provides up to 10 timers while the F411 provides up to 11. Both include 16-bit and 32-bit timers and support PWM, input capture, output compare and quadrature encoder functions.
For ordinary motor control, servos, frequency measurement or encoder work, either device is strong. The F411’s extra timer/peripheral resources are useful when a project is already consuming many channels.
ADC: Essentially the Same Class
Both devices include one 12-bit ADC capable of up to roughly 2.4 MSPS at device level, with multiple external channels depending on package.
Do not expect the F411 to provide a fundamentally better analogue front end just because it is the faster chip. For precision measurements, board layout, reference stability, source impedance, filtering and calibration still dominate.
No Native CAN on Either F401 or F411
Neither the STM32F401 nor STM32F411 includes the classic bxCAN controller found in devices such as the STM32F103 or many STM32F405/F407 parts.
That matters for automotive and industrial projects. Adding an external CAN transceiver is not enough if the MCU itself lacks a CAN controller; you would need an external CAN controller as well, or choose a different STM32 family/part.
This is one reason the older F103 Blue Pill can still be the better board for a simple CAN project.
SDIO Is Available on Both
Both families include SDIO, making them useful for higher-performance SD-card access compared with simple SPI-mode cards.
Whether all required SDIO pins are conveniently exposed on a particular Black Pill layout should be checked against that board’s pinout.
F411 Adds Batch Acquisition Mode
The F411 belongs to ST’s Dynamic Efficiency line and adds Batch Acquisition Mode (BAM). This allows selected peripherals/data acquisition to continue in a low-power configuration while reducing CPU activity.
For typical Arduino-style Black Pill projects this is not the headline feature, but it can matter in carefully designed low-power sensor/data-logging systems.
Power Efficiency
ST quotes the F411 at around 100 µA/MHz in a specified run condition and the F401CE at around 146 µA/MHz in its corresponding specification. The F411 therefore offers better CPU performance per unit of clock power at silicon level.
On a development board, total current also includes the regulator, power LED, external Flash if fitted, pull-ups and any attached hardware. Do not assume datasheet core-current figures equal complete-board current.
Pin Compatibility Is Good but Do Not Assume Every Alternate Function Is Identical
The common F401CEU6 and F411CEU6 are both available in the 48-pin UFQFPN package and Black Pill designs are intentionally similar.
However, peripheral alternate-function mappings are not guaranteed to be identical on every pin. A project using only GPIO, common UART/SPI/I²C pins and USB may move easily, while a design using unusual timer channels or alternate SPI instances should be checked against the datasheets or STM32CubeMX.
Arduino IDE Support
The official STM32duino Arduino_Core_STM32 supports WeAct Black Pill definitions for STM32F401CC, STM32F401CE and STM32F411CE.
That means both boards can be used with the same overall Arduino workflow:
Arduino IDE
↓
Boards Manager:
STM32 MCU based boards
↓
Board:
BlackPill / Generic STM32F4 selection
↓
Choose exact MCU / upload method
↓
Compile and upload
The exact menu wording can change between core releases, so select by the actual MCU rather than copying an old screenshot.
STM32CubeIDE and STM32CubeMX
Both chips are fully supported by ST’s normal development tools. STM32CubeMX is especially useful because it shows pin conflicts and valid alternate functions before you commit to a PCB or complicated harness.
For professional or complex projects, this is often safer than assuming an Arduino pin alias automatically maps to the peripheral instance you intended.
SWD Debugging
Both support Serial Wire Debug. An ST-Link or compatible probe gives you:
- Programming without relying on USB DFU.
- Breakpoints.
- Register inspection.
- Memory inspection.
- Single-step debugging.
- Recovery when user firmware breaks USB.
For anything more complex than a simple sketch, SWD is one of the biggest advantages of STM32 development compared with relying solely on serial print debugging.
Black Pill Board Variants Matter
Black Pill is a community board name, not an STMicroelectronics product. Different manufacturers have produced boards with different regulators, USB connectors, external Flash chips, crystals, LEDs and button wiring.
Common WeAct-style boards are usually the reference people mean, but clone boards can differ. Before assuming a pinout or power arrangement, check:
- Exact MCU marking.
- Board revision.
- USB connector type.
- HSE crystal frequency.
- External SPI Flash presence.
- BOOT0/NRST button wiring.
- 3.3 V regulator part and current capability.
Do Not Buy by PCB Colour
A black PCB can contain an F401, F411, a different STM32F4 or even a questionable clone. Read the chip marking.
Examples:
STM32F401CEU6
STM32F411CEU6
The CE matters:
C/E suffix determines memory density within the family.
Selecting an F411 board definition for an F401 chip can produce wrong clock and peripheral assumptions.
Counterfeit and Remarked STM32 Parts
The low-cost development-board market has historically included cloned or remarked MCUs. A board that behaves strangely under DFU, debugging or high clock may not necessarily contain the exact genuine part printed on the package.
Buying from a known board manufacturer or reputable distributor reduces this risk. For production hardware, use traceable MCU sourcing rather than development-board marketplaces.
F401CE Is Already Enough for Most Embedded Projects
Choose the F401CE confidently if your project uses:
- GPIO control.
- I²C/SPI sensors.
- UART devices.
- Moderate PWM/timer use.
- USB CDC or HID.
- SD-card logging.
- Normal Arduino/C++ firmware.
- Control loops that fit comfortably at 84 MHz.
96 KB RAM is still a large step above older STM32F1 boards and is enough for many serious embedded applications.
When the F411 Is Worth It
- You need more RAM.
- You are using FreeRTOS with many tasks.
- You are doing FFT/filtering/audio or other DSP.
- You need every bit of CPU headroom.
- You want the extra SPI peripheral flexibility.
- The project may grow substantially.
- The price difference is small.
Because the development workflow is almost the same, there is little downside to choosing F411 for a new general-purpose project when both boards cost similar amounts.
When the F401 Can Be the Better Buy
- It is materially cheaper.
- You already have several F401 boards.
- The firmware is already validated on F401.
- You do not need more than 96 KB RAM.
- 84 MHz is comfortably above the real-time requirement.
- You want to avoid changing a proven hardware BOM.
There is no technical value in replacing a stable F401 design with F411 simply because the latter has a larger headline clock number.
Performance Example: Sampling and DSP
Suppose a project samples an ADC, runs a digital filter, buffers data and streams results over USB.
Both chips can handle moderate rates. The F411 gives more CPU cycles per sample and more SRAM for double buffers. That means more margin before timing becomes tight, especially when USB interrupts and filesystem/logging code are active simultaneously.
Performance Example: Motor Control
For ordinary PWM motor control and encoder measurement, both chips provide powerful hardware timers and DMA.
If the control algorithm is simple, the F401 may never be the bottleneck. If the design adds high-rate FOC calculations, floating-point observers, communications and logging, the F411’s 100 MHz and 128 KB RAM become more attractive.
USB Projects
For USB HID, CDC or MIDI, both devices are good choices. The F411 is not uniquely required for native USB.
This is worth emphasizing because some older Black Pill discussions imply that F401 is a cut-down board without proper USB. It is not; the F401 family includes USB 2.0 full-speed OTG and factory DFU support.
Which One for Arduino?
For a beginner using Arduino IDE, I would normally choose the F411CE if the price difference is small. It leaves more RAM and performance headroom while keeping the same STM32duino workflow.
If you already own an F401CE, use it. There is no need to upgrade just to run normal Arduino libraries.
Which One for STM32CubeIDE?
Again, the F411 is the easier default for a fresh board purchase because it offers the stronger resource ceiling. But CubeIDE/CubeMX work equally well with both, and an F401 project is not a second-class STM32 workflow.
Which One for Low-Power Projects?
The answer depends on the full board, not just the MCU. At chip level the F411 adds Batch Acquisition Mode and strong performance efficiency. But common Black Pill boards are not optimized like custom low-power hardware: regulator quiescent current, power LED and external components can dominate sleep consumption.
If battery life is critical, design or modify the hardware around the MCU rather than choosing solely from Black Pill datasheet numbers.
Which One for Automotive Projects?
For general sensor processing, serial gateways and non-CAN control, both are capable. For native CAN specifically, neither F401 nor F411 is the obvious choice because neither includes bxCAN.
Consider an STM32F103, F405/F407 or another MCU with the required CAN/FDCAN controller depending on project requirements.
F401 vs F411 Decision Table
| Project type | F401CE | F411CE |
|---|---|---|
| Simple sensors / GPIO | Excellent | Excellent |
| Arduino learning | Excellent | Excellent |
| USB HID / CDC | Excellent | Excellent |
| SDIO logging | Good | Good |
| Large RTOS project | Good | Better |
| DSP / audio / filtering | Good | Better |
| RAM-heavy buffering | Good | Better |
| Native CAN | No | No |
| New purchase at similar price | Fine | Preferred |
| Existing validated design | Keep it | No need to change unless resources require it |
Final Recommendation
If you are buying a Black Pill today and the price difference is small, choose the STM32F411CE. You get 100 MHz instead of 84 MHz, 128 KB SRAM instead of 96 KB, slightly richer peripherals and more performance margin with essentially the same development workflow.
The STM32F401CE remains an excellent board. It already has 512 KB Flash, Cortex-M4 FPU/DSP, USB OTG, SDIO and factory DFU. For ordinary embedded work, the F411 will not magically make a well-designed F401 project better.
The most important buying rule is simpler than the CPU comparison: check the exact MCU marking. An F401CC, F401CE and F411CE Black Pill may look almost identical while offering different Flash, RAM and performance.
Related STM32 Guides
- STM32F411 Black Pill Pinout, GPIOs, USB & Arduino Guide
- STM32 Blue Pill vs Black Pill: F103 vs F411
- STM32F103C8T6 Blue Pill Pinout, GPIOs & Arduino IDE Guide
Datasheets and Official Resources
- STMicroelectronics STM32F401CE Product Page — official 84 MHz, 512 KB Flash and 96 KB SRAM specifications.
- STMicroelectronics STM32F411CE Product Page — official 100 MHz, 512 KB Flash and 128 KB SRAM specifications.
- ST AN2606 System Memory Boot Mode — factory bootloader interfaces including USB DFU for F401/F411.
- Official STM32duino Arduino Core — current Black Pill board support.