STMicroelectronics

STM32F031K6U6 - 48MHz Cortex-M0 MCU 32KB Flash | STMicroelectronics

MPN: STM32F031K6U6 ✓ Active
In Stock Ships in 1-3 business days
2.0 V to 3.6 V Vdss 32-UFQFPN (5x5 mm), exposed pad Package 48 MHz Speed 32 KB Memory
From $1.24 USD / Unit
MOQ: 1 |
Price updated: 2026-08-29
Volume Pricing
Qty Unit Price Extended
1 $1.92 $1.92
10 $1.73 $17.30
100 $1.54 $154.00
500 $1.38 $690.00
1,000 $1.24 $1,240.00
ℹ️ All prices are in USD

STM32F031K6U6 Overview

The STM32F031K6U6 is a 32-bit entry-level microcontroller from STMicroelectronics based on the ARM Cortex-M0 core, operating at up to 48 MHz with 32 KB of Flash memory and 4 KB of SRAM in a compact 32-pin UFQFPN (5x5 mm) package with exposed pad.

A microcontroller (MCU) is a single-chip embedded processor combining a CPU core, memory, and programmable peripherals. The STM32F031K6U6 belongs to the STM32F0 entry-level family within the STM32 MCU ecosystem, positioned as a migration path from 8-bit and 16-bit MCUs to 32-bit ARM performance. It shares tooling, HAL libraries, and STM32CubeMX configuration software with the wider STM32 portfolio, simplifying future upgrades.

Key features include a 12-bit ADC with up to 13 channels, 9 timers, and standard communication interfaces: one I2C, one SPI/I2S, and one USART. The device operates from a 2.0V to 3.6V single supply with integrated POR/PDR reset, and offers a CRC calculation unit and DMA controller for data movement without CPU intervention. Real-time performance is supported by a nested vectored interrupt controller (NVIC) and single-cycle multiplier.

The Cortex-M0 architecture executes Thumb instruction sets with deterministic interrupt latency, making the device suitable for real-time control loops. The UFQFPN-32 (QFN family) surface-mount package provides a small 5x5 mm footprint with an exposed thermal pad for grounding, ideal for space-constrained boards. Operating temperature spans -40C to +85C for industrial reliability.

Typical applications include industrial control, consumer appliances, IoT sensor nodes, small motor control, and power-management subsystems, where low cost, low power consumption, and adequate peripheral integration matter most.

Design tip: decouple VDD pins with 100nF ceramics plus a bulk capacitor, feed VDDA from a clean analog supply to preserve ADC accuracy, and keep NRST properly filtered per the ST datasheet layout guidelines for EMI-robust designs.

Drop-in alternatives for STM32F031K6U6 — same package, pin-to-pin compatible. Different-package parts requiring PCB rework are excluded.

Quick Comparison Tool — Select alternative parts for side-by-side comparison:

STM32F038K6U6

✅ Drop-In ⚠️ Specs Unverified
📦 32-UFQFPN (5x5 mm)
same family/package/pinout, 32KB Flash, reduced peripheral subset (fewer GPIO features)

📋 Reference alternative (not in catalog)

STM32F042K6U6

✅ Drop-In ⚠️ Specs Unverified
📦 32-UFQFPN (5x5 mm)
same package and core, adds crystal-less USB device controller, pin-compatible superset

📋 Reference alternative (not in catalog)

STM32F031K4U6

✅ Drop-In ⚠️ Specs Unverified
📦 32-UFQFPN (5x5 mm)
same die/package, 16KB Flash instead of 32KB, pin-to-pin compatible

📋 Reference alternative (not in catalog)

HK32F031K6U6

✅ Drop-In
📦 32-UFQFPN (5x5 mm)
cross-brand Chinese pin-compatible equivalent, claimed hardware/software compatibility; verify ADC/clock/low-power behavior

📋 Reference alternative (not in catalog)

STM32G031K6U6

⚡ Same Package
📦 32-UFQFPN (5x5 mm)
newer G0 family, same UFQFPN-32 footprint but different pinout mapping - PCB and firmware changes required

📋 Reference alternative (not in catalog)

STM32F031K6U6 Maximum Ratings & Electrical Characteristics

Core Processor ARM Cortex-M0 32-bit
Core Size 32-bit
Maximum Clock Frequency 48 MHz
Flash Memory 32 KB
SRAM 4 KB
Supply Voltage Range 2.0 V to 3.6 V
ADC Resolution 12-bit, up to 13 channels
Timers 9 (including advanced-control)
Communication Interfaces 1x I2C, 1x SPI/I2S, 1x USART
DMA Yes
CRC Unit Yes
Package 32-UFQFPN (5x5 mm), exposed pad
Mounting Type Surface Mount
Operating Temperature -40C to +85C
Oscillator 4 to 32 MHz crystal oscillator
Reset POR/PDR integrated
RoHS Status Compliant

STM32F031K6U6 Pin Configuration

Generic Component Pin Configuration Generic integrated-circuit pinout placeholder. Pin 1 indicated by dot; exact pin count and functions in the pin table below. 1 N 2 N-1 3 N-2 4 N-3 Pin Configuration See pin table below for pin functions Package-specific diagram not available
Pin 1 VDD/VDDA — Power supply 2.0V to 3.6V
Pin 2 PF0/OSC_IN — Oscillator input or GPIO
Pin 3 PF1/OSC_OUT — Oscillator output or GPIO
Pin 4 NRST — Bidirectional reset, active low
Pin 5 PA0 — GPIO / ADC channel / WKUP
Pin 6 PA1 — GPIO / ADC channel
Pin 7 PA2 — GPIO / USART TX
Pin 8 PA3 — GPIO / USART RX
Pin 14 PA13/SWDIO — Serial wire debug data I/O
Pin 15 PA14/SWCLK — Serial wire debug clock
Pin 16 PA15 — GPIO / SPI NSS
Pin 32 VSS / EP — Ground, exposed pad

Typical Applications

STM32F031K6U6 is suitable for 6 applications: IoT Sensor Nodes, Small Motor Control, Industrial Control and Automation, Consumer Appliances, Power Management Subsystems, Human-Machine Interface (HMI) Boards.

🧩

IoT Sensor Nodes

The STM32F031K6U6 fits battery-powered IoT sensor nodes because its 48 MHz Cortex-M0 core offers just enough compute for sensor sampling and filtering while drawing minimal power from a 2.0V to 3.6V supply. Its 12-bit ADC with 13 channels digitizes analog sensors directly, and the I2C/SPI/USART interfaces connect RF modules or external memory. Running bare-metal firmware in the 32 KB Flash with sleep-mode duty cycling extends battery life, and the small 5x5 mm UFQFPN-32 package suits compact node PCBs.

⚙️

Small Motor Control

With 9 timers including advanced-control timers for PWM generation, plus a 12-bit ADC for current and position feedback, the STM32F031K6U6 implements trapezoidal or basic sensorless BLDC control in appliances, fans, and small pumps. The 48 MHz core executes commutation loops deterministically via the NVIC, while PWM dead-time features protect the power stage. Its UART interface supports host communication, and the 32 KB Flash stores control firmware with room for diagnostics. The exposed-pad UFQFPN-32 package simplifies thermal grounding on motor-driver PCBs.

🏭

Industrial Control and Automation

In industrial control panels, the STM32F031K6U6 serves as a low-cost interface MCU handling button inputs, relay outputs, and RS-485 or UART communication to a PLC host. The -40C to +85C temperature range and integrated POR/PDR ensure reliable operation in electrically noisy cabinets, while the CRC unit validates communication frames without CPU cycles. The 32 KB Flash accommodates state-machine firmware, and SWD via PA13/PA14 allows field programming. Solid decoupling of VDD/VDDA per ST layout guidelines preserves ADC accuracy in noisy environments.

📱

Consumer Appliances

The STM32F031K6U6 provides appliance-control brains for coffee makers, small pumps, hair styling tools, and chargers, where BOM cost is decisive. Its single USART handles user-interface or master-board communication, the 12-bit ADC reads temperature sensors and potentiometers, and timers generate PWM for heaters, LEDs, or small motors. Operating down to 2.0V allows direct battery operation, and the 5x5 mm UFQFPN-32 package fits dense consumer PCBs. STM32CubeMX and HAL libraries shorten development cycles, keeping total engineering cost low for high-volume products.

⚡

Power Management Subsystems

The STM32F031K6U6 acts as a supervisory and sequencing MCU in power-management subsystems, monitoring voltages via its 12-bit ADC, generating PWM for bias supplies or fan control, and communicating status over UART or I2C to a system host. The DMA controller offloads ADC sampling from the CPU, and the CRC unit protects telemetry frames. Its wide 2.0V to 3.6V operating range and sleep modes keep standby consumption minimal. When paired with ST-compatible gate drivers and regulators, it forms a complete low-cost digital power control node.

📺

Human-Machine Interface (HMI) Boards

As the controller of small HMI boards with buttons, LEDs, and status indicators, the STM32F031K6U6 scans keypads through its GPIO matrix, drives LED PWM dimming from its timers, and reports events via USART to a main system controller. The 48 MHz core provides responsive debounce and menu logic, while the 4 KB SRAM holds display buffers for simple segment or OLED controllers on I2C/SPI. SWD programming on PA13/PA14 enables in-field firmware updates, and the compact UFQFPN-32 footprint suits thin front-panel PCB assemblies in consumer and industrial products.

What is the maximum clock frequency of STM32F031K6U6?
The STM32F031K6U6 operates at up to 48 MHz using its internal ARM Cortex-M0 32-bit RISC core, clocked from the HSI or a 4 to 32 MHz external crystal. According to the STMicroelectronics datasheet (STM32F031x4/x6), the core delivers approximately 1.25 DMIPS/MHz with deterministic interrupt handling via the NVIC.
How much Flash and SRAM does STM32F031K6U6 have?
The STM32F031K6U6 contains 32 KB of embedded Flash memory and 4 KB of SRAM. This memory configuration targets entry-level applications such as IoT sensor nodes, appliance control, and simple motor drivers, and is sufficient for bare-metal or lightweight RTOS firmware.
What is the price of STM32F031K6U6?
As of 2026-08-29, the STM32F031K6U6 costs approximately $1.92 at quantity 1, dropping to about $1.24 at 1000 units at major distributors such as DigiKey and Mouser. Pricing varies by distributor and stock position, so request quotes for volume orders.
Where to buy STM32F031K6U6 online?
You can buy the STM32F031K6U6 from authorized distributors including DigiKey and Mouser, both of which list active stock with same-day shipping options, as well as through XAIPART. Availability is tracked on Octopart, which aggregates pricing from 8 distributors for this STMicroelectronics part.
Is STM32F031K6U6 in stock and what is the lead time?
The STM32F031K6U6 is an active product with regular stock at authorized distributors; DigiKey ships same-day on in-stock quantities as of 2026-08-29. Standard lead time for in-stock parts is 1-3 business days; larger production volumes may require scheduling. Confirm live inventory before committing production schedules.
What is the best drop-in replacement for STM32F031K6U6?
The best same-brand drop-in alternative is STM32F038K6U6, which shares the identical 32-UFQFPN 5x5 mm package, pinout, Cortex-M0 core, and 32 KB Flash, differing mainly in peripheral subsets (no USART with CTS/RTS hardware flow control variants). The STM32F042K6U6 offers USB capability in the same footprint. Verify register-level compatibility per datasheet before swapping.
What is the difference between STM32F031K6U6 and STM32F042K6U6?
Both are STMicroelectronics Cortex-M0 MCUs in the same 32-UFQFPN package with 32 KB Flash, but the STM32F042K6U6 adds a USB 2.0 full-speed device controller and Crystal-less USB capability, while the STM32F031K6U6 omits USB for lowest cost. Pin compatibility is high, making the F042 a superset for designs that may later need USB connectivity.
Is there a Chinese equivalent for STM32F031K6U6?
Yes, the HK32F031K6U6 from HK (Holychip) is documented as a pin-compatible, hardware and software-compatible Chinese equivalent for the STM32F031K6U6 in the same UFQFPN-32 package, per cross-reference data from Senneon. Engineers should sample-test ADC, clock, and low-power behavior before committing to production, as claimed compatibility should be independently verified.
Is STM32F031K6U6 suitable for motor control?
Yes, the STM32F031K6U6 includes 9 timers with advanced-control timer capability, PWM outputs, and a 12-bit ADC with 13 channels, which supports small DC or BLDC motor control with sensor feedback. Its 48 MHz Cortex-M0 core handles field-oriented or trapezoidal control algorithms for low-complexity motors in appliances and tools.
When should I choose STM32F031K6U6 over STM32G031K6U6?
Choose the STM32F031K6U6 for lowest cost in a mature design ecosystem with no need for the newer features of the STM32G0 family, and when existing F0 firmware must be reused without porting effort. Choose the STM32G031K6U6 when you need better efficiency, ECC options, or a more modern roadmap. Both come in similar UFQFPN-32 footprints but pinouts differ, so the G0 is not drop-in.
Where to download the STM32F031K6U6 datasheet PDF?
The official STM32F031K6U6 datasheet PDF (ARM-based 32-bit MCU, 106 pages) is available free on the STMicroelectronics website at st.com/resource/en/datasheet/stm32f031k6.pdf. It covers electrical characteristics, pinout, register descriptions, and application guidelines.
Where can I find the STM32F031K6U6 pinout?
The full STM32F031K6U6 pinout is in the official STMicroelectronics datasheet PDF, Table of pin definitions for the 32-UFQFPN package. Key pins include VDD (pin 1), NRST (pin 4), PA13/SWDIO and PA14/SWCLK for programming via the SWD serial interface, and VSS on the bottom exposed pad.
Is STM32F031K6U6 the same as STM32F030K6?
No, they are not identical. The STM32F031K6U6 and STM32F030K6 share the Cortex-M0 core and UFQFPN-32 package, but the F031 adds a DMA controller and CRC unit while the value-line F030 omits DMA. Firmware written for F031 DMA features will not run on F030 without modification, so they are functional near-equivalents rather than drop-in replacements.
What are the key specifications of STM32F031K6U6 that engineers should know?
The STM32F031K6U6 is an ARM Cortex-M0 32-bit MCU running at 48 MHz with 32 KB Flash, 4 KB SRAM, a 12-bit ADC with 13 channels, 9 timers, one I2C, one SPI/I2S, one USART, DMA, and a CRC unit. It operates from 2.0V to 3.6V, in a 32-UFQFPN 5x5 mm package, from -40C to +85C, per the STMicroelectronics datasheet.

Engineering reference data for STM32F031K6U6 — comparison, design guidance, and compliance information.

Selection Guide

Choose the STM32F031K6U6 when you need the lowest-cost ARM Cortex-M0 MCU with DMA and CRC in a compact 5x5 mm UFQFPN-32 package, and no USB connectivity is required. Choose STM32F042K6U6 if your product may add USB device functionality later - it is pin-compatible in the same footprint, giving a free upgrade path. Choose STM32F031K4U6 if firmware fits in 16KB and you want further cost reduction. For supply-chain resilience against shortages, HK32F031K6U6 is a documented pin-compatible Chinese equivalent, but sample-test ADC accuracy, clock tolerance, and low-power behavior before production. Do NOT treat STM32G031K6U6 as drop-in: although it shares the UFQFPN-32 footprint, its pinout and Cortex-M0+ core differ, requiring PCB and firmware changes - select the G0 only for new designs where its newer peripherals justify redesign effort.

Comparison with Alternatives

Parameter This Product STM32F038K6U6 STM32F042K6U6 HK32F031K6U6 STM32G031K6U6
Package 32-UFQFPN (5x5 mm) 32-UFQFPN (5x5 mm) - same 32-UFQFPN (5x5 mm) - same 32-UFQFPN (5x5 mm) - same 32-UFQFPN (5x5 mm) - same footprint, different pinout
Brand STMicroelectronics STMicroelectronics STMicroelectronics HOLYCHIP (HK) STMicroelectronics
Core ARM Cortex-M0 @ 48 MHz ARM Cortex-M0 @ 48 MHz ARM Cortex-M0 @ 48 MHz ARM Cortex-M0 @ 48 MHz (claimed) ARM Cortex-M0+ @ 64 MHz
Flash 32 KB 32 KB 32 KB 32 KB 32 KB
USB No No Yes (crystal-less FS device) No No
Drop-in Replacement - Yes Yes (verify per design) Yes (sample-test recommended) No - redesign required

Key Differentiators

  • Lowest-cost F0 family member with DMA and CRC (vs STM32F038K6U6)
  • Lower total cost than USB-capable sibling (vs STM32F042K6U6)
  • Mature ST ecosystem vs cross-brand equivalents (vs HK32F031K6U6)

Design Notes

Decouple each VDD pin with a 100nF ceramic capacitor placed within 2mm of the pin, plus one 4.7uF bulk capacitor per supply domain. Connect VDDA to VDD through a filter (ferrite bead or 10-ohm resistor with 1uF+10nF) to maintain ADC accuracy, since the 12-bit ADC shares its reference path with VDDA. Ensure the 2.0V-3.6V supply stays within spec during brownouts; the integrated POR/PDR handles reset but not supply dips below 2.0V.

Solder the UFQFPN-32 exposed pad to a solid ground plane for thermal dissipation and EMI performance - do not leave it floating. Use short return paths for the SWD pins (PA13/PA14) if programming connectors are off-board. Keep the NRST line short with a 100nF pull-down capacitor per ST recommendation; avoid routing it near switching nodes. A continuous ground plane under the QFN reduces loop area for fast GPIO edges.

The STM32F031 family has no USB and limited flash (32KB), so firmware written for larger F0/F1 parts may not fit - check code size early. GPIO pin functions in the UFQFPN-32 are heavily remapped versus larger packages; verify the pin-mapping table in the datasheet, not the family reference manual alone. Debug via SWD only (no JTAG on this device). Also, HSI accuracy is about 1% - do not use it for precision USART baud rates without correction.

Compliance Information

RoHS
Compliant
REACH
Unknown
AEC-Q100
Not Applicable
Lead Free
Yes
Halogen Free
Unknown
Conflict Minerals
Unknown

RoHS compliant per distributor listings (DigiKey/Mouser). Not an automotive AEC-Q100 qualified part.

Data verified on: 2026-08-29 — data verified and curated by XAIPART's component engineering team

Related Searches

STM32F031K6U6 STM32F031K6U6 datasheet PDF STMicroelectronics STM32F031K6U6 price STM32F031K6U6 pinout UFQFPN-32 STM32F031K6U6 equivalent drop-in replacement HK32F031K6U6 vs STM32F031K6U6 STM32F031K6U6 vs STM32F042K6U6 32KB Flash Cortex-M0 microcontroller 48MHz STM32F031K6U6 motor control application STM32F031K6U6 buy in stock distributor is STM32F031K6U6 RoHS compliant STM32F031K6U6 programming SWD pins

Related Components & Terms

STMicroelectronics STM32F031K6U6 STM32F031 ARM Cortex-M0 microcontroller MCU STM32F0 series STM32F042K6U6 STM32F038K6U6 STM32G031K6U6 HK32F031K6U6 UFQFPN-32 QFN package family surface mount 12-bit ADC DMA I2C SPI USART RoHS SWD serial wire debug STM32CubeMX IoT sensor node motor control
Quick Quote RFQ
Fill in complete details — our sales team will respond within 24 hours
Part Number Manufacturer Package QTY Target Price Extended
Total: $0.00 USD
✓
Quote submitted!

We will respond to your email within 24 hours

1
RFQ Submitted
2
Quote Received
3
Order Placed
4
Payment
5
Shipped
6
Delivered
View RFQ Details