STM32F042F4Px

An ST STM32F042 microcontroller in a TSSOP-20 4.4x6.5mm package, with an Arm Cortex core. It has USB, timers and capacitive touch inputs for compact control boards.

STMicroelectronics Arm Cortex-M0 MCU, 16KB flash, 6KB RAM, 48 MHz, 2.0-3.6V, 16 GPIO, TSSOP20

Maker
STMicroelectronics
Package
TSSOP-20_4.4x6.5mm_P0.65mm
Category
ICs
Pins
20
Datasheet checked
Nov 28, 2026
Used in
1 open board
STM32F042F4Px symbol1PB82PF03PF14NRST5VDDA6PA07PA18PA29PA310PA411PA512PA613PA714PB115VSSA16VDD17PA9/PA1118PA10/PA1219PA1320PA14

Symbol

20 pins, as the editor draws it

STM32F042F4Px footprint, 20 pads, top view1234567891011121314151617181920

Footprint

20 pads, top view, from Package_SO:TSSOP-20_4.4x6.5mm_P0.65mm

STM32F042F4Px, 3D model: KiCad library (Package_SO/TSSOP-20_4.4x6.5mm_P0.65mm), CC BY-SA 4.0

3D model

3D model: KiCad library (Package_SO/TSSOP-20_4.4x6.5mm_P0.65mm), CC BY-SA 4.0Download 3D model (STEP, 267 KB)

Download the STM32F042F4Px for KiCad, Altium or EAGLE

Free, no account: the symbol and the footprint as a library of your tool, with a README of where each came from and its licence.

From KiCad's own library, under CC BY-SA 4.0 with KiCad's exception for designs: a board you make with it is yours. Check the pinout and the land pattern against the datasheet before you order boards.

Datasheet
Checked
Use it in a board

STM32F042F4Px pinout

20 pins, as the symbol and the footprint pair them.

PinNameType
1PB8Input/output
2PF0Input/output
3PF1Input/output
4NRSTInput
5VDDApower_in
6PA0Input/output
7PA1Input/output
8PA2Input/output
9PA3Input/output
10PA4Input/output
11PA5Input/output
12PA6Input/output
13PA7Input/output
14PB1Input/output
15VSSAGround
16VDDpower_in
17PA9/PA11Input/output
18PA10/PA12Input/output
19PA13Input/output
20PA14Input/output

Similar parts

Other ics parts, the same package first.

Open-source boards that use the STM32F042F4Px

1 so far, most stars first: see how others wired it.

Put the STM32F042F4Px in a board.

Describe the board; Cherry Blossom picks the parts, wires the schematic, lays out the PCB and checks it.

By signing up, you agree to our Terms of Service and Privacy Policy.