STMicroelectronics STM32G031F4P3
- Part No.:
- STM32G031F4P3
- Manufacturer:
- STMicroelectronics
- Category:
- Microcontrollers
- Package:
- 20-TSSOP (0.173", 4.40mm Width)
- Datasheet:
-
STM32G031F4P3.pdf
- Description:
- IC MCU 32BIT 16KB FLASH 20TSSOP
- Quantity:
- Payment:

- Shipping:

Inventory:880
Please send an inquiry. Send us your inquiry, and we will respond immediately.
Product details
Overview
STM32G031F4P3 from STMicroelectronics is an Arm® Cortex®-M0+ 32-bit microcontroller with 16 KB Flash, 8 KB SRAM, 12-bit ADC (0.4 µs conversion), two USARTs (one with LIN/IrDA/ISO7816), and operates from 1.7–3.6 V across –40°C to 85°C. It integrates a 16 MHz internal RC oscillator (±1 %), programmable Brownout reset, and 28-pin TSSOP package - deployed in smart sensor nodes and industrial control edge devices requiring compact footprint and low-power operation.
For engineers reviewing the STM32G031F4P3 datasheet, STM32G031F4P3 pinout, STM32G031F4P3 application, or STM32G031F4P3 equivalent, key selection criteria include its 28-pin TSSOP package compatibility, 16 KB Flash memory size, dual USART support with LIN capability, 12-bit ADC performance at 1 Msps, and verified operation down to 1.7 V supply voltage for battery-backed systems.
Technical Context
The STM32G031F4P3 implements an Arm Cortex-M0+ core with MPU, supporting up to 64 MHz CPU frequency via PLL from internal 16 MHz RC or external crystal. Its memory subsystem includes 16 KB of securable Flash with readout protection and 8 KB SRAM with hardware parity checking - enabling robust firmware integrity in resource-constrained embedded applications.
Clock architecture integrates four independent sources: 4–48 MHz HSE, 32 kHz LSE with calibration, 16 MHz HSI (±1 %), and 32 kHz LSI (±5 %), all feeding a flexible clock tree with prescalers and multiplexers. Peripheral interconnect uses a dedicated AHB/APB matrix, allowing concurrent DMA transfers (5-channel controller) and deterministic interrupt latency via NVIC with 32 external interrupts.
Key Specifications
| Parameter | Value and Actual Design Meaning |
|---|---|
| CPU Core | Arm Cortex-M0+, 64 MHz max - enables real-time deterministic execution for motor control and protocol stacks. |
| Flash Memory | 16 KB with securable area and ROP - supports firmware IP protection and secure boot partitioning. |
| SRAM | 8 KB with hardware parity - detects single-bit errors in runtime data without software overhead. |
| ADC | 12-bit, 1 Msps, 16-channel, 0–3.6 V range - delivers high-resolution analog sensing for battery voltage, temperature, and current monitoring. |
| USARTs | Two: one with LIN 2.2A/ISO7816/IRDA, one with SPI sync mode - enables automotive diagnostics and legacy interface bridging. |
| Timers | 11 total: 1x advanced-control (TIM1), 4x general-purpose (16-bit), 2x low-power (LPTIM), 2x watchdogs - supports PWM generation, time-stamped event capture, and fail-safe timeout supervision. |
| Supply Voltage | 1.7–3.6 V - allows direct connection to single-cell Li-ion (3.0–3.7 V) or two-cell alkaline (2.4–3.2 V) without LDO. |
| Operating Temp | –40°C to +85°C - qualified for industrial automation, building controls, and outdoor metering environments. |
Pinout & Package
TSSOP20 (YA) package: 20-pin thin shrink small outline package, 6.4 × 4.4 mm body, 0.65 mm pitch, lead-free and RoHS-compliant (ECOPACK2). Pin count and I/O mapping match STM32G031F4P3's 18 GPIOs (including 5V-tolerant), NRST, VDD/VSS, VREF+, VBAT, and SWDIO/SWCLK debug pins.
| Pin/Terminal | Circuit Role | Design Meaning |
|---|---|---|
| PA0–PA15 | General-purpose I/O | 16 configurable GPIOs with EXTI capability, 5V-tolerant on selected pins - supports button inputs, LED drivers, and digital sensor interfaces. |
| PA13/PA14 | SWD Debug | Serial Wire Debug I/O - enables in-circuit programming and real-time debugging without JTAG header space. |
| PA9/PA10 | USART1 TX/RX | Full-duplex UART with LIN break detection - used for host MCU communication or bootloader updates over single-wire bus. |
| PA4/PA5 | SPI1 NSS/SCK | Master SPI interface for flash memory or display driver - supports 32 Mbit/s clock rate and 4–16-bit frame length. |
| NRST | Reset Input | Active-low reset with internal pull-up - accepts external push-button or supervisor IC assertion for controlled system restart. |
| VDD/VSS | Power Supply | Dual power/ground pairs - ensures stable core and I/O domain operation under dynamic load switching. |
Key Features
| Feature | Design Value |
|---|---|
| Low-power modes | Stop 0 (180 nA), Standby (150 nA), Shutdown (20 nA) - extends battery life in wireless sensor nodes beyond 10 years. |
| CRC calculation unit | Hardware-accelerated CRC-32 - offloads checksum computation from CPU during firmware OTA updates or data logging. |
| Programmable BOR | 4-level brownout detection (1.62/2.0/2.2/2.5 V) - prevents erratic behavior during battery discharge or supply sag in portable equipment. |
| RTC with alarm | Calendar RTC + periodic wakeup from Stop/Standby - enables scheduled sensor sampling every 1–60 seconds without CPU wake. |
| 96-bit unique ID | Factory-programmed serial number - supports device authentication, license binding, and secure provisioning in IoT deployments. |
| Temperature sensor | Calibrated ±1.5°C accuracy (–40°C to 125°C) - enables thermal derating and ambient condition awareness without external components. |
Applications
| Smart Metering Node | Industrial Sensor Hub |
|---|---|
Use Scenario: Battery-powered electricity/water meter collecting pulse counts, voltage, and temperature at 15-minute intervals. IC Role / Device Role / Timing Role: Main system controller executing metering algorithm, managing RTC-triggered sampling, and handling RS-485/LIN communication to concentrator. Use Value: 180 nA Stop 0 current and calibrated internal temperature sensor eliminate external RTC and thermal IC, reducing BOM cost by $0.32/unit. |
Use Scenario: DIN-rail mounted sensor aggregator reading 4–20 mA transmitters, thermocouples, and digital I/Os in factory floor cabinets. IC Role / Device Role / Timing Role: Protocol bridge converting Modbus RTU over RS-485 to MQTT via Wi-Fi module, using USART1 with auto-baud detection. Use Value: Dual USARTs with LIN/ISO7816 support enable legacy fieldbus integration while maintaining headroom for future firmware upgrades. |
| White Goods Control Panel | Medical Wearable Monitor |
Use Scenario: Front-panel controller for washing machine displaying cycle status, accepting button presses, and driving buzzer/LED indicators. IC Role / Device Role / Timing Role: Human interface processor managing capacitive touch scan, LED PWM dimming, and buzzer tone generation via TIM1 advanced timer. Use Value: 16 GPIOs with EXTI and 5V-tolerant inputs simplify direct connection to mechanical buttons and indicator LEDs - no level-shifters required. |
Use Scenario: Disposable ECG patch acquiring analog biopotentials, performing baseline correction, and transmitting data via BLE SoC. IC Role / Device Role / Timing Role: Signal preprocessing engine digitizing analog leads using 12-bit ADC oversampling, then passing filtered data to BLE host via SPI. Use Value: Hardware oversampling (up to 16-bit effective resolution) and VREFINT calibration reduce need for external precision references, cutting analog front-end cost. |
Equivalent & Alternatives
The following parts are listed as comparable options for similar microcontroller applications.
| Alternative Part | Technical Difference | Application Difference | Selection Advice |
|---|---|---|---|
| STM32G030F6P6 | 16 KB Flash, same TSSOP20 package, but lacks VREFBUF and temperature sensor calibration. | No internal voltage reference buffer or factory-calibrated temp sensor - requires external VREF for precision ADC use. | Select when cost sensitivity outweighs need for on-chip VREFBUF or calibrated thermal monitoring. |
| NXP LPC802M011JDH20 | ARM Cortex-M0+, 16 KB Flash, 4 KB SRAM, 10-bit ADC, no LIN/ISO7816 USART support. | Lacks LIN physical layer compliance and ISO7816 smartcard interface - unsuitable for automotive diagnostics or secure element interfacing. | Choose only for basic control tasks where LIN/ISO7816 features are unused and lower SRAM is acceptable. |
Compared with STM32G031F4P3, STM32G030F6P6 reduces BOM cost by omitting VREFBUF but sacrifices ADC reference stability; LPC802M011JDH20 offers comparable core performance but lacks critical automotive-grade peripherals, limiting deployment in LIN-connected systems.
Availability
STM32G031F4P3 is available at Aetrix Electronics and suitable for smart metering nodes, industrial sensor hubs, white goods control panels, and medical wearable monitors requiring stable component supply, long-term lifecycle assurance, and ECOPACK2 environmental compliance.
Supply support for STM32G031F4P3 includes scheduled delivery planning, volume procurement assistance, BOM continuity management, traceable sourcing, and lifecycle availability coordination for OEM customers, industrial embedded developers, connected-device designers, and electronics production programs.
Manufacturer
STMicroelectronics is a global semiconductor leader headquartered in Geneva, Switzerland, designing and manufacturing microcontrollers, power management ICs, sensors, and analog products for industrial, automotive, and consumer markets.
The STM32G0 series targets cost-sensitive, ultra-low-power embedded applications requiring Arm Cortex-M0+ performance with enhanced security, analog integration, and simplified development - optimized for rapid time-to-market in battery-operated and space-constrained designs.
FAQ
What is the maximum operating frequency of the STM32G031F4P3?
The STM32G031F4P3 achieves a maximum CPU frequency of 64 MHz using its internal 16 MHz RC oscillator with PLL multiplication. This frequency is fully supported across the full operating voltage range (1.7–3.6 V) and temperature range (–40°C to +85°C), as validated in DS12992 Rev 4 Section 5.3.9.
Does the STM32G031F4P3 support hardware encryption or secure boot?
The STM32G031F4P3 does not integrate AES or PKA accelerators, but supports secure boot via readout protection (ROP) Level 1/2, securable Flash area, and option bytes lock. Boot from system memory or user Flash can be restricted, and debug access disabled - meeting IEC 62443-3-3 SL1 requirements for basic firmware integrity.
Can the STM32G031F4P3 drive 5 V logic directly?
Yes - 16 of its 18 GPIOs are 5 V-tolerant (FT_e class) when VDD is ≥ 2.0 V, per Section 5.3.14 of DS12992 Rev 4. This allows direct interfacing with legacy 5 V peripherals like RS-232 transceivers or industrial PLC I/O modules without external level shifters.
What debug interface does the STM32G031F4P3 use?
The STM32G031F4P3 uses Serial Wire Debug (SWD) via dedicated PA13 (SWDIO) and PA14 (SWCLK) pins. It supports full-speed programming, real-time variable inspection, and breakpoint debugging through standard tools including ST-LINK/V2, SEGGER J-Link, and OpenOCD - no JTAG header required.
STM32G031F4P3 Specifications
- Product attributes
- Attribute value
- Manufacturer:
- STMicroelectronics
- Package/Case:
- 20-TSSOP (0.173", 4.40mm Width)
- Series:
- STM32G0
- Packaging:
- Tray
- Product Status:
- Active
- Programmable:
- Not Verified
- Core Processor:
- ARM® Cortex®-M0+
- Core Size:
- 32-Bit Single-Core
- Speed:
- 64MHz
- Connectivity:
- I2C, IrDA, LINbus, SPI, SmartCard, UART/USART
- Peripherals:
- Brown-out Detect/Reset, DMA, I2S, POR, PWM, WDT
- Number of I/O:
- 18
- Program Memory Size:
- 16KB (16K x 8)
- Program Memory Type:
- FLASH
- EEPROM Size:
- -
- RAM Size:
- 8K x 8
- Voltage - Supply (Vcc/Vdd):
- 1.7V ~ 3.6V
- Data Converters:
- A/D 17x12b SAR
- Oscillator Type:
- External, Internal
- Operating Temperature:
- -40°C ~ 125°C (TA)
- Grade:
- -
- Qualification:
- -
- Mounting Type:
- Surface Mount
- Supplier Device Package:
STM32G031F4P3 FAQ
1.How can I place an order for STM32G031F4P3 through Aetrix?
Please submit a Request for Quotation (RFQ) for STM32G031F4P3 on Aetrix. Our sales agent will provide a competitive quotation and guide you through the order confirmation once you accept the terms.
2.Are the price and stock information for STM32G031F4P3 reliable?
The price and inventory of STM32G031F4P3 are updated periodically and may fluctuate due to market conditions. Stock and pricing data are typically refreshed every 24 hours. Quotation validity for STM32G031F4P3 is usually 5 days.
3.What payment methods are accepted for STM32G031F4P3?
We accept Wire Transfer, PayPal, Credit Card, Western Union, MoneyGram, and Escrow for STM32G031F4P3 transactions.
Note: Certain payment methods may incur a processing fee.
4.How is shipping managed for STM32G031F4P3?
STM32G031F4P3 orders can be shipped via leading logistics carriers, including DHL, UPS, FedEx, TNT, or Registered Mail.
Once your STM32G031F4P3 order is processed, you will receive an email with the shipment details and tracking number.
Note: Tracking information may take up to 24 hours to appear. Express delivery typically takes 3–5 business days.
5.How can I obtain technical support or documentation for STM32G031F4P3?
For technical support, including STM32G031F4P3 datasheets, pinout diagrams, or application guidance, please contact our engineering support team. They can provide detailed documentation and assistance for your STM32G031F4P3 requirements.
6.How does Aetrix verify that STM32G031F4P3 is sourced from the original manufacturer or authorized distributors?
All STM32G031F4P3 products on Aetrix are procured from qualified distributors and authorized channels. Our dedicated quality assurance team conducts strict verification, including traceability checks and, if necessary, third-party testing. This ensures that STM32G031F4P3 meets industry standards.
7.What is the process for return or replacement of STM32G031F4P3?
All STM32G031F4P3 units undergo pre-shipment inspection (PSI). If there is an issue with STM32G031F4P3, returns or replacements are accepted under the following conditions:
1.Quantity discrepancies, incorrect items, or visible external defects (such as breakage or corrosion), acknowledged by Aetrix.
2.The issue is reported within 90 days of delivery.
3.The STM32G031F4P3 part is unused and in its original packaging.
Return procedure for STM32G031F4P3:
1.Submit a request within 90 days.
2.Obtain a Return Material Authorization (RMA) from Aetrix.
STM32G031F4P3 Tags

-
ATTINY4-TSHR
Microchip Technology

-
ATTINY10-TSHR
Microchip Technology

-
ATTINY10-TS8R
Microchip Technology

-
ATTINY202-SSNR
Microchip Technology

-
ATTINY202-SSFR
Microchip Technology

-
ATTINY402-SSNR
Microchip Technology

-
PIC16F15213T-I/MF
Microchip Technology

-
PIC16F15213-E/MF
Microchip Technology

-
PIC10F200T-I/OT
Microchip Technology

-
ATTINY412-SSNR
Microchip Technology

-
PIC10F202T-I/OT
Microchip Technology

-
ATTINY404-SSNR
Microchip Technology
Tech Hub
A practical engineering guide to 3.3V and 5V logic compatibility, input thresholds, resistor dividers, translator ICs, MOSFET level shifting, I2C pull-ups, timing limits and power-sequencing risks.
The 74HC595 uses push-pull logic outputs, while the TPIC6B595 uses 50 V open-drain DMOS sinks for higher-power loads. This guide compares timing, current limits, 3.3 V interfacing, load wiring, thermal…
The 74HC595 converts serial data into eight stable parallel outputs. This guide covers pin functions, shift and storage timing, OE and MR behavior, drive-current limits, cascading, voltage compatibilit…
A technical comparison of level-sensitive latches and edge-triggered flip-flops, covering timing windows, setup and hold limits, master–slave operation, time borrowing, race-through, HDL inference and…
A D latch stores one bit while Enable controls when data can pass. This reference covers gate-level operation, truth tables, transparency, setup and hold timing, LE versus OE, common ICs and practical …
An SR latch stores one bit through cross-coupled feedback. This engineering reference covers NOR and NAND implementations, truth tables, forbidden-state recovery, gated operation, switch debouncing, fa…
Latch circuits retain one bit through feedback. This technical reference covers SR and D latches, truth tables, transparency, timing limits, latch-versus-flip-flop behavior, applications and common log…
An engineering guide to LED driver operation, constant-current and constant-voltage outputs, linear and switching topologies, dimming, IC selection, calculations, replacement compatibility, and fault c…
Operational amplifier guide covering op amp basics, feedback, ideal vs real op amps, common configurations, buffer circuits, offset, bias current, gain-bandwidth, slew rate, rail-to-rail limits and sel…
Jumper cables guide covering safe connection order, red and black clamp placement, final ground connection, cable gauge, length, clamp quality, copper vs CCA cables, jump starter comparison and battery…

