Introduction
The STM32F401 is a 32-bit microcontroller from STMicroelectronics' STM32F4 series, designed for embedded applications that require good processing performance, flexible connectivity, and efficient power consumption. Based on the ARM Cortex-M4 processor, it combines a floating-point unit (FPU), digital signal processing (DSP) instructions, integrated memory, and a wide range of peripherals in a compact package.
Operating at frequencies of up to 84 MHz, the STM32F401 is suitable for applications such as motor control, industrial automation, medical equipment, audio systems, and sensor-based devices. It also provides multiple communication interfaces, including I2C, SPI, USART, SDIO, and USB 2.0 OTG, making it flexible for different hardware designs.
In this article, we will explore the STM32F401's main features, technical specifications, pinout, package options, development board, applications, and differences between the STM32F401 and STM32F411.
6. STM32 STM32F401 Board Module
7. Frequently Asked Questions [FAQ]

The STM32F401 is a high-performance 32-bit microcontroller from STMicroelectronics, based on the ARM Cortex-M4 RISC core operating at up to 84 MHz. It features a single-precision Floating Point Unit (FPU), supporting ARM floating-point instructions and data types. The processor also integrates DSP instructions and a Memory Protection Unit (MPU) to improve processing efficiency and application security.
The STM32F401xD/xE provides up to 512 KB of Flash memory and 96 KB of SRAM, together with extensive GPIOs and integrated peripherals. Its hardware resources include one 12-bit ADC, a low-power Real-Time Clock (RTC), six 16-bit general-purpose timers, and two 32-bit timers. These features support precise timing, data acquisition, and motor-control applications.
For connectivity, the microcontroller offers up to three I2C interfaces, four SPI interfaces, two full-duplex I2S interfaces, three USARTs, an SDIO interface, and USB 2.0 full-speed OTG.
Operating from 1.7 V to 3.6 V, the STM32F401 supports temperatures from -40°C to +105°C. Its comprehensive power-saving modes make it suitable for industrial control, embedded systems, and low-power applications.
The STM32F401’s series offers different memory configurations, package options, and pin arrangements. The following table summarizes its main technical specifications.
STM32F401 Part Numbering System
The STM32F401XD and STM32F401XE are available in several package configurations.
Series | Model numbers | Package options |
STM32F401xD | STM32F401CDY6, STM32F401RDT6, STM32F401VDT6, STM32F401CDU6, STM32F401VDH6 | WLCSP49, UFQFPN48, LQFP64, LQFP100, UFBGA100 |
STM32F401xE | STM32F401CEY6, STM32F401RET6, STM32F401VET6, STM32F401CEU6, STM32F401VEH6 | WLCSP49, UFQFPN48, LQFP64, LQFP100, UFBGA100 |
Different packages provide different numbers of available pins and physical dimensions.
Core and Memory
The STM32F401 uses an ARM Cortex-M4 processor with a maximum operating frequency of 84 MHz.
Its core features include:
· Single-precision FPU for floating-point calculations.
· DSP instructions for signal processing.
· Memory Protection Unit (MPU).
· ART Accelerator for zero-wait-state execution from Flash memory under supported conditions.
· Performance of up to 105 DMIPS or 1.25 DMIPS/MHz (Dhrystone 2.1).
Memory resources include:
· Up to 512 KB of Flash memory for program storage.
· Up to 96 KB of SRAM for temporary data storage.
· 96-bit unique device identification.
These resources allow the STM 32F401 to handle embedded control programs, communication protocols, and signal-processing tasks.
Clock, Reset, and Power Supply
The chip provides flexible clock and reset management to support different application requirements.
Its clock sources include:
· External crystal oscillator: 4 MHz to 26 MHz.
· Internal factory-trimmed 16 MHz RC oscillator.
· External 32 kHz oscillator for RTC operation with calibration.
· Internal 32 kHz RC oscillator with calibration.
The microcontroller supports a supply voltage range of 1.7 V to 3.6 V under the specified operating conditions.
Integrated power-management and reset features include:
· Power-on Reset (POR).
· Power-down Reset (PDR).
· Programmable Voltage Detector (PVD).
· Brown-out Reset (BOR).
Power Consumption
The component provides several operating modes to reduce power consumption when the processor or peripherals are not required.
Operating mode | Typical power consumption |
Run mode | 146 μA/MHz (peripherals off) |
Stop mode, Flash in Stop mode | 42 μA typical at 25°C |
Stop mode, Flash in Deep Power Down | Down to 10 μA at 25°C |
Standby mode | 2.4 μA at 25°C / 1.7 V without RTC |
VBAT supply for RTC | 1 μA at 25°C |
These low-power modes are useful for portable electronics, battery-powered sensors, and IoT devices that spend considerable time in standby or sleep conditions.
ADC and DMA
The STM 32F401 includes one 12-bit Analog-to-Digital Converter (ADC) with a maximum conversion speed of 2.4 MSPS.
Its main ADC features include:
· Up to 16 channels.
· 12-bit conversion resolution.
· Up to 2.4 million samples per second.
· Support for analog sensor measurements.
The microcontroller also features general-purpose DMA controllers with 16 streams, FIFOs, and burst-transfer support.
DMA allows data to move between peripherals and memory without requiring continuous CPU intervention. This helps reduce processor workload and improve system efficiency during data acquisition and communication operations.
Timers and PWM
The component integrates up to 11 timers, providing flexible timing and control capabilities.
These include:
· Up to six 16-bit general-purpose timers.
· Two 32-bit general-purpose timers.
· Two watchdog timers.
· One SysTick timer.
The general-purpose timers support input capture, output compare, PWM generation, pulse counting, and quadrature encoder input.
PWM functionality is particularly useful for motor control, LED brightness adjustment, power regulation, and other applications that require precise signal timing.
GPIO and Debug Interfaces
The circuit provides up to 81 I/O ports, depending on the selected device and package.
Key GPIO features include:
· Up to 78 fast I/Os operating at up to 42 MHz.
· 5 V-tolerant I/O pins where specified.
· Configurable alternate functions.
· External interrupt capability.
For debugging and programming, the microcontroller supports:
· Serial Wire Debug (SWD).
· JTAG interface.
· Cortex-M4 Embedded Trace Macrocell (ETM).
These interfaces make firmware development, debugging, and system testing easier.
Communication Interfaces
The STM32F401 supports a broad range of communication protocols.
Interface | Features |
I2C | Up to 3 interfaces, supporting SMBus and PMBus |
USART | Up to 3 interfaces, with speeds up to 10.5 Mbit/s on supported instances |
SPI | Up to 4 interfaces, with speeds up to 42 Mbit/s at 84 MHz |
I2S | Full-duplex digital audio communication |
SDIO | SD and multimedia card connectivity |
USB OTG | USB 2.0 full-speed device, host, and OTG controller |
Additional communication capabilities include ISO 7816, LIN, IrDA, and modem control support on applicable USART peripherals.
Other integrated features include a CRC calculation unit, RTC with hardware calendar, and a 96-bit unique identification number.
The STM 32F401 is available in several packages, including WLCSP49, UFQFPN48, LQFP64, LQFP100, and UFBGA100.
The actual number of available GPIO pins and peripheral connections depends on the selected package and device variant.
Understanding the pin configuration is important when designing a PCB or connecting external components.
STM32F401 Pin Description
The following table explains common pin abbreviations and definitions used in the STM 32F401 datasheet.

Name / Abbreviation | Definition |
S | Supply pin |
I | Input-only pin |
I/O | Input/output pin |
FT | 5 V-tolerant I/O |
B | Dedicated BOOT0 pin |
NRST | Bidirectional reset pin with an embedded weak pull-up resistor |
Alternate functions | Functions selected through GPIOx_AFR registers |
Additional functions | Functions directly selected or enabled through peripheral registers |
Unless otherwise specified, GPIO pins are configured as floating inputs during and after reset.
Important Pin Configuration Notes
When using the STM32F401, developers should pay attention to the following points:
1.Power supply pins: Connect the required supply and ground pins according to the datasheet recommendations.
2.NRST pin: Used to reset the microcontroller.
3.BOOT0 pin: Determines the boot configuration and is important during firmware programming.
4.GPIO pins: Can be configured as digital inputs, outputs, or alternate-function pins.
5.Communication pins: SPI, I2C, USART, and USB signals must be assigned to compatible pins.
6.ADC pins: Analog inputs should be connected carefully to avoid noise and measurement errors.
Because different STM32F401 package variants have different pin arrangements, always check the datasheet pinout for the exact part number before designing a PCB.
Package Table
Package | Dimensions |
WLCSP49 | 3 × 3 × 0.6 mm |
UFQFPN48 | 7 × 7 × 0.55 mm |
LQFP64 | 10 × 10 mm |
LQFP100 | 14 × 14 mm |
UFBGA100 | 7 × 7 mm |
The component combines processing performance, communication flexibility, and low-power operation, making it suitable for a wide range of embedded applications.
Some common application areas include:
Motor Drive and Application Control
The integrated timers and PWM channels allow the STM 32F401 to generate precise control signals for motors and other actuators. It can be used in motor-control systems, fans, pumps, and automated equipment.
Medical Equipment
The Cortex-M4 processor and integrated ADC make the STM 32F401 suitable for embedded medical devices that require sensor data acquisition, signal processing, and control functions.
Industrial Applications
Can use in programmable logic controllers (PLCs), inverters, circuit breakers, and industrial monitoring systems. Its communication interfaces support connections with external sensors and control devices.
Printers and Scanners
Its processing capabilities, timers, and communication peripherals make it suitable for embedded control functions in printers, scanners, and related office equipment.
Alarm Systems and Video Intercoms
The microcontroller can manage sensors, communication interfaces, buttons, and other control functions in security systems and video intercom equipment.
HVAC Systems
Can handle temperature sensing, fan control, and communication tasks in heating, ventilation, and air-conditioning systems.
Home Audio Appliances
With its I2S interfaces and DSP instructions, the STM 32F401 can support digital audio control and processing applications.
Mobile Phone Sensor Hubs
Its low-power operating modes and multiple communication interfaces make it suitable for collecting and processing data from sensors in portable electronic devices.
The STM32F401 and STM32F411 belong to STMicroelectronics' STM32F4 series. Both use the ARM Cortex-M4 architecture and offer integrated peripherals for embedded control, communication, and signal processing.
However, they differ in maximum operating frequency, memory configuration, and peripheral capabilities depending on the specific part number.
The following comparison uses the supplied 48-pin UFQFPN product specifications.
STM32F411 vs STM32F401 Specifications
Specification | STM32F411 | STM32F401 |
Manufacturer | ST Microelectronics | ST Microelectronics |
Core processor | ARM Cortex-M4 | ARM Cortex-M4 |
Core size | 32-bit, single-core | 32-bit, single-core |
Maximum speed | 100 MHz | 84 MHz |
Connectivity | I2C, SPI, UART/USART, USB OTG, SDIO, LIN, IrDA | I2C, SPI, UART/USART, USB OTG, SDIO, LIN, IrDA |
Peripherals | DMA, I2S, PWM, WDT, POR, Brown-out detection | DMA, I2S, PWM, WDT, POR, Brown-out detection |
Number of I/O | 36 | 36 |
Flash memory | 256 KB | 256 KB |
SRAM | 128 KB | 64 KB |
EEPROM | None | None |
Supply voltage | 1.7 V–3.6 V | 1.7 V–3.6 V |
Data converter | 12-bit ADC | 12-bit ADC |
Oscillator | Internal | Internal |
Operating temperature | -40°C to +85°C | -40°C to +85°C |
Mounting type | Surface mount | Surface mount |
Package | 48-UFQFPN | 48-UFQFPN |
Note: These values describe the particular product configurations provided. The STM32F401 and STM32F411 families contain multiple part numbers with different memory sizes, pin counts, and package options. Always check the exact ordering code and datasheet before making a final selection.
Main Differences Between STM32F411 and STM32F401
Processing Speed
The STM32F411 operates at up to 100 MHz, while the STM32F401 operates at up to 84 MHz.
This gives the STM32F411 an advantage in applications that require higher processing performance or faster execution of computational tasks.
SRAM Capacity
In the compared configurations, the STM32F411 provides 128 KB of SRAM, while the STM32F401 provides 64 KB.
More SRAM is useful when an application requires larger data buffers, more variables, communication queues, or complex software tasks.
Peripheral Connectivity
Both microcontrollers support commonly used interfaces such as I2C, SPI, USART, and USB OTG.
The exact number and availability of peripherals depend on the selected device variant. Developers should compare the individual datasheets when designing hardware that requires a specific interface.
Power Consumption
Both devices provide low-power operating modes. Actual power consumption depends on the clock frequency, supply voltage, enabled peripherals, and operating mode.
For battery-powered applications, it is important to compare the power-consumption specifications under equivalent operating conditions.
Which One Should You Choose?
The STM 32F401 is a suitable choice for embedded systems that require moderate processing performance, flexible communication interfaces, and efficient power management.
The STM32F411 is worth considering when an application needs a higher CPU frequency or more SRAM.
In general:
Choose STM 32F401 for general embedded control, sensor processing, and cost-conscious designs.
Choose STM32F411 for applications that benefit from its higher clock speed and larger SRAM capacity.
The final selection should also consider Flash memory, package dimensions, available GPIO pins, peripheral requirements, and product availability.

The STM32F401CCU6 development board is a compact minimum-system board designed for learning, prototyping, and embedded application development.
It provides the basic hardware needed to start working with the STM32F401 microcontroller, including a USB Type-C connector, clock circuits, programming interfaces, and user buttons.
According to the supplied V1.3 board specifications, its main features include:
· ARM Cortex-M4-based STM 32F401 microcontroller.
· 256 KB Flash memory.
· USB Type-C interface.
· 25 MHz high-speed crystal oscillator.
· 32.768 kHz low-speed crystal oscillator.
· Reserved Flash memory soldering pads.
· USB Disk and FATFS example support.
· BOOT0 configuration with an internal 10 kΩ pull-down resistor.
· Preloaded breathing LED and USB CDC test programs.
· Available MicroPython firmware and configuration files.
Development Board Buttons
The V1.3 board provides three buttons:
1.Reset button: Restarts the microcontroller.
2.BOOT0 button: Helps enter the system bootloader for firmware downloading.
3.User button: Can be used as an input for application development and testing.
The board is designed so that the jumper cap does not need to be installed for normal operation.
STM32F401 Firmware Download
The development board supports serial downloading and USB DFU downloading.
For the V1.3 version, the serial communication pins are:
· PA9: USART transmit (TX).
· PA10: USART receive (RX).
To enter the serial bootloader or USB DFU mode, follow these steps:
1. Press and hold the BOOT0 button.
2. Press the Reset button.
3. Release the Reset button while continuing to hold BOOT0.
4. Wait approximately 0.5 seconds.
5. Release the BOOT0 button.
The board should then enter the corresponding bootloader mode, depending on the selected boot configuration and supported interface.
Common software tools include:
· FlyMcu: Used for serial firmware downloading.
· STM32CubeProgrammer: Used for programming and managing STM32 devices, including supported USB DFU workflows.
The board also provides MicroPython firmware, making it possible to experiment with embedded programming without writing all application code in C or C++.
Note: Download procedures and jumper configurations vary between board revisions. Check the board schematic and documentation before programming.
Both microcontrollers support low-power operating modes, including Stop and Standby modes.
The better choice depends on the actual power requirements of the application. The STM 32F401 offers documented low-power operating modes, while the STM32F411 provides a higher maximum operating frequency and more SRAM in the compared configurations.
For battery-powered applications, compare current consumption at the required clock frequency and peripheral configuration rather than selecting a device based only on its maximum power specifications.
Both STM32F401 and STM32F411 support SPI communication for connecting external devices such as displays, Flash memory, sensors, and communication modules.
The STM32F401 supports up to four SPI interfaces, with SPI speeds of up to 42 Mbit/s at an 84 MHz CPU frequency.
The available SPI interfaces and their maximum speeds on the STM32F411 depend on the specific device configuration.
In many cases, yes. Both devices belong to the STM32F4 family and use the ARM Cortex-M4 architecture.
Application code based on standard C/C++ libraries, CMSIS, and compatible STM32 HAL drivers can often be reused.
However, hardware-specific configurations may need modification, including:
· Clock configuration.
· GPIO assignments.
· Peripheral initialization.
· Timer settings.
· ADC configuration.
· Memory allocation.
· Interrupt configuration.
Always verify peripheral availability and pin assignments before migrating firmware.
Both devices feature 12-bit ADC peripherals.
The STM32F401 supports an ADC conversion rate of up to 2.4 MSPS. Actual sampling performance depends on the ADC clock, sampling time, channel configuration, and software or DMA implementation.
When comparing the two devices, check their individual datasheets and ADC operating conditions to determine which better meets the required sampling rate.
Not necessarily.
Although the STM32F401 and STM32F411 may be available in similar packages, their pin functions, alternate-function assignments, and peripheral availability must be checked individually.
Even when two devices share the same package dimensions, this does not automatically guarantee hardware or PCB compatibility.
Always compare the pinout diagrams and datasheets before replacing one MCU with another.
Both STM32F401 and STM32F411 support USB 2.0 full-speed OTG functionality.
They can use in USB device, host, or OTG applications, provided that the selected device variant and hardware design support the required configuration.
For USB projects, consider the USB clock requirements, connector design, PCB routing, power supply, and available firmware libraries.
The STM32F401 provides up to six 16-bit general-purpose timers and two 32-bit general-purpose timers, along with watchdog and SysTick timers.
Timer availability and functionality can differ between STM32F4 devices.
Both families provide timer features suitable for PWM generation, input capture, output compare, and pulse measurement. The exact timer configuration should be checked in the reference manual.
Both STM32F401 and STM32F411 can be used in IoT devices.
The STM 32F401 is suitable for sensor nodes, embedded controllers, and applications that need multiple communication interfaces and low-power operation.
The STM32F411 is a better option when an IoT device requires additional processing performance or more SRAM.
Neither microcontroller provides built-in Wi-Fi or Bluetooth connectivity in the configurations discussed. External wireless modules can be connected through interfaces such as SPI or UART.
The STM32F401 is a versatile 32-bit microcontroller based on the ARM Cortex-M4 architecture. With an operating frequency of up to 84 MHz, a floating-point unit, DSP instructions, up to 512 KB of Flash memory, and up to 96 KB of SRAM, it provides a useful combination of processing performance and peripheral integration.
Its extensive communication interfaces, ADC, timers, DMA controllers, and low-power operating modes make it suitable for motor control, industrial automation, medical equipment, audio systems, and IoT applications.
Compared with the STM32F411, the STM32F401 offers a lower maximum operating frequency, while the STM32F411 provides higher performance and more SRAM in the compared configurations.
Ultimately, choosing between these two microcontrollers depends on the application's processing requirements, memory needs, power budget, peripheral configuration, and hardware design constraints.
1. STM32F407VGT6 Microcontroller: Guide and Development Board
2. AS5600 Magnetic Encoder: Pinout, Arduino Code & Sensor Module
3. TP4057 Chip Single Lithium-Ion Battery Charger Guide
2026-01-23
2025-06-30
2025-12-14
2025-05-29
2026-03-26
2026-02-11
2025-09-04
2026-03-27
2025-09-05
2025-08-29