Skip to main content
STMicroelectronics STM32F042K4U6 — Microcontrollers & Processors (MCU / MPU / DSP)

STM32F042K4U6 ARM Cortex-M0 MCU, 48 MHz, 16 KB Flash

MPNSTM32F042K4U6
Active

STMicroelectronics STM32F042K4U6, STM32F0 series, 32-bit ARM Cortex-M0 MCU, 48 MHz, 16 KB Flash, 6 KB RAM, USB 2.0, CAN 2.0B, 26 GPIO, 12-bit ADC, -40 to 85°C, 32-UFQFPN.

$3.4500Ref. price · indicative, final on quote
Independent supplier — new & surplus stockAuthenticity-screened · ESD-safe packingListing updated Jul 2026

Specifications

STM32F042K4U6 specifications
ParameterValue
SeriesSTM32F0
MountingSurface Mount
Oscillator typeInternal
Program memory typeFLASH
Voltage - supply (Vcc (Vdd))1.65V ~ 3.6V
Operating temperature-40°C ~ 85°C (TA)
Speed48MHz
PackageTray
RAM size6K x 8
Core size32-Bit Single-Core
PeripheralsDMA, I²S, POR, PWM, WDT
ConnectivityCANbus, HDMI-CEC, I²C, IrDA, LINbus, SPI, UART/USART, USB
Number of i (O)26
Core processorARM® Cortex®-M0
Case32-UFQFN Exposed Pad
Data convertersA/D 13x12b
Program memory size16KB (16K x 8)

Product details

What this Cortex-M0 MCU brings to a control board

The STM32F042K4U6: The peripheral set includes USB, CAN, multiple UART/USART, SPI, I²C, and HDMI-CEC, plus a 13-channel 12-bit ADC.

With 16 KB of Flash and 6 KB of RAM, this MCU targets applications where the firmware fits in a few thousand lines of C — a USB-to-UART bridge, a CANopen slave node, a simple PID controller, or a keypad scanner with I²C backlight control. The 6 KB RAM (organized as 6K x 8) leaves room for a modest stack and a couple of ping-pong buffers for USB or serial data. If the firmware needs to grow beyond 16 KB, the pin-compatible STM32F042K6 (32 KB Flash) or STM32F072 (128 KB Flash, Cortex-M0) are drop-in footprint matches — same 32-UFQFPN package, same supply range, same peripheral map. That gives a hardware revision path without a board spin.

Connectivity and USB without an external PHY

The integrated USB peripheral handles device and host modes with built-in transceivers — no external PHY needed. The CAN interface shares the same pin as one of the UARTs, so the design chooses either CAN or a full UART set depending on the fieldbus requirement. The 26 GPIO pins in the 32-UFQFPN package are enough for a 16×2 LCD character display plus a few buttons and LEDs, or for reading a 12-bit ADC channel while driving a PWM output for a small fan or heater.

Package and PCB layout notes

The 32-UFQFN with exposed pad (5×5 mm body) is a compact surface-mount package.

No official second-source alternate exists from another manufacturer; the pin-compatible STM32F072 is ST's own density upgrade within the same package and footprint, useful for a last-minute firmware expansion without a PCB change.

Frequently asked questions

What is the difference between STM32F042 and STM32F072?

The STM32F072 is a higher-density sibling in the same STM32F0 family. Both share the same Cortex-M0 core and 32-UFQFPN package option, so the F072 is a drop-in upgrade for firmware that outgrows the F042's memory.

Is STM32F042K4U6 compatible with STM32F042K6?

Yes, the STM32F042K4U6 and STM32F042K6 are pin-compatible in the same 32-UFQFPN package. The K6 variant doubles the Flash to 32 KB while keeping the same 6 KB RAM, peripheral set, and supply range. A board designed for the K4 can accept the K6 without any PCB change — useful for a firmware size upgrade.