EmbeddedRelated.com
Jacob Beningo
Live online course · Jacob Beningo
AI for Embedded Developers
$100 off for EmbeddedRelated readers until Dec 6 · 5 live sessions, Dec 7-11
Discount ends in
19days 02hrs 48min 52sec
Learn More →
STM32G031F4P6

STM32G031F4P6

STMicroelectronics
ARM® Cortex®-M0+ STM32G0 Microcontroller IC 32-Bit 64MHz 16KB (16K x 8) FLASH 20-TSSOP
Active18,133 in stock

Overview

The STM32G031F4P6 is a high-performance 32-bit microcontroller based on the Arm Cortex-M0+ core, operating at frequencies up to 64MHz. This entry-level MCU combines 16KB of Flash and 8KB of RAM in a compact 20-TSSOP package, optimized for cost-sensitive applications that require modern peripheral integration. It operates over a wide voltage range of 1.7V to 3.6V and features advanced power-saving modes like Shutdown and Standby.

Why Choose This Part

The G0 series offers a highly efficient power-to-performance ratio, consuming as little as 12uA in shutdown mode while maintaining a 64MHz clock speed for processing tasks. Its internal RC oscillators and integrated reset circuitry reduce external component count, saving PCB space and BOM cost. The inclusion of a 12-bit ADC with up to 17 channels (external/internal) provides high-resolution analog sensing in a small TSSOP footprint.

Applications

Consumer Appliances
Ideal for small household appliances requiring precise timing and ADC monitoring for sensor feedback.
Sensor Hubs
Acts as a low-power data aggregator using its 12-bit SAR ADC with 14 channels and multiple serial interfaces.
Lighting Control
Utilizes integrated PWM channels and timers to manage LED dimming and color mixing in smart lighting fixtures.
Industrial I/O Modules
Provides 16 GPIOs and 5-volt tolerant inputs for interfacing with industrial digital and analog signals.

Key Specifications

Speed 64MHz
RAM Size 8K x 8
Core Size 32-Bit
Peripherals Brown-out Detect/Reset, DMA, I2S, POR, PWM, WDT
Connectivity I2C, IrDA, LINbus, SPI, SmartCard, UART/USART
Mounting Type Surface Mount
Number of I/O 18
Core Processor ARM Cortex-M0+
Package / Case 20-TSSOP (0.173", 4.40mm Width)
Data Converters A/D 17x12b SAR
Oscillator Type External, Internal
Program Memory Size 16KB (16K x 8)
Program Memory Type FLASH
Operating Temperature -40degC ~ 85degC (TA)
Supplier Device Package 20-TSSOP
Voltage - Supply (Vcc/Vdd) 1.7V ~ 3.6V

Getting Started

Developers can begin evaluation using the NUCLEO-G031K8 development board, which includes an on-board ST-LINK debugger. The STM32CubeG0 software package provides comprehensive HAL and LL drivers, while STM32CubeIDE offers a free, integrated development environment for coding and debugging. The part is fully compatible with standard Arm toolchains including Keil MDK and IAR Embedded Workbench.

Dev Boards

Development boards and breakout modules featuring the STM32G031F4P6 or compatible chips — ready to use for prototyping.

NUCLEO-G031K8 STMicroelectronics
STM32G031 Nucleo-32 STM32G0 ARM® Cortex®-M0+ MCU 32-Bit Embedded Evaluation Board
Digi-Key Mouser 504 in stock
NUCLEO-G071RB STMicroelectronics
STM32G071 Nucleo-64 STM32G0 ARM® Cortex®-M0+ MCU 32-Bit Embedded Evaluation Board
Digi-Key Mouser 1,311 in stock
NUCLEO-G0B1RE STMicroelectronics
STM32G0B1 Nucleo-64 STM32G0 ARM® Cortex®-M0+ MCU 32-Bit Embedded Evaluation Board
Digi-Key Mouser 1,967 in stock
STM32G081B-EVAL STMicroelectronics
STM32G081 STM32G0 ARM® Cortex®-M0+ MCU 32-Bit Embedded Evaluation Board
Digi-Key Mouser 17 in stock
STM32G071B-DISCO STMicroelectronics
STM32G071 Discovery STM32G0 ARM® Cortex®-M0+ MCU 32-Bit Embedded Evaluation Board
Digi-Key 74 in stock
Part of STM32 family » STM32G031

STM32G031 Family

Comparing specs that differ across variants. The current part is highlighted.

Part Number I/O Pins Package ADC/DAC Flash Stock
STM32G031F4P6 (this part) 18 TSSOP-20 A/D 17x12b SAR 16KB 18,133
STM32G031K8T6 30 LQFP-32 A/D 18x12b SAR 64KB 23,345
STM32G031K8U6 30 UFQFN-32 A/D 18x12b SAR 64KB 32,811
STM32G031C6T6 44 LQFP-48 A/D 19x12b SAR 32KB 1,653
Also available as: STM32G031F6P6, STM32G031J6M6

Also Consider

STM32G030F6P6 STMicroelectronics - Provides a larger 32KB Flash capacity in the same 20-TSSOP package for projects with higher code density requirements.
ATSAMD21E15B-AFT MCHPMicrochip Technology - An alternative Cortex-M0+ MCU with 32KB Flash and 4KB RAM, suitable for applications requiring different peripheral sets.