STMicroelectronics STM32F031G4U6TR
- Part No.:
- STM32F031G4U6TR
- Manufacturer:
- STMicroelectronics
- Category:
- Microcontrollers
- Package:
- 28-UFQFN Exposed Pad
- Datasheet:
-
STM32F031G4U6TR.pdf
- Description:
- IC MCU 32BIT 16KB FLASH 28UFQFPN
- Quantity:
- Payment:

- Shipping:

Inventory:1,685
Please send an inquiry. Send us your inquiry, and we will respond immediately.
Product details
Overview
STM32F031G4U6TR from STMicroelectronics is a 32-bit ARM® Cortex®-M0 microcontroller with 16 KB Flash, 4 KB SRAM, 48 MHz max CPU frequency, 12-bit ADC (1.0 µs conversion), and integrated RTC-designed for cost-sensitive industrial control, smart sensors, and power management modules requiring low-voltage operation (2.0–3.6 V) and extended temperature support (−40 to +105°C).
For engineers reviewing the STM32F031G4U6TR datasheet, STM32F031G4U6TR pinout, STM32F031G4U6TR application, or STM32F031G4U6TR equivalent, key selection criteria include its UFQFPN28 package footprint, 5 V-tolerant I/O count (up to 26 pins), single 12-bit ADC with 10-channel multiplexing, advanced timer with deadtime generation, and SWD debug interface compatibility.
Technical Context
The device implements a tightly coupled ARM Cortex-M0 core with Harvard bus architecture, supporting Thumb-2 instruction set and nested vectored interrupt controller (NVIC) for deterministic real-time response. It integrates a 4-channel DMA controller synchronized with peripherals including ADC, timers, and USART.
Clock management includes dual oscillators: a 4–32 MHz HSE crystal input and internal 8 MHz RC with x6 PLL for system clock generation, plus dedicated 32 kHz LSE for RTC calibration. Power domains separate digital (VDD) and analog (VDDA) supplies, enabling independent voltage scaling and low-power mode retention of RTC/backup registers via VBAT.
Key Specifications
| Parameter | Value and Actual Design Meaning |
|---|---|
| CPU Core | ARM Cortex-M0, 48 MHz max - enables deterministic real-time task scheduling in resource-constrained embedded systems. |
| Flash Memory | 16 KB - sufficient for firmware with bootloader, communication stack (e.g., UART-based LIN), and sensor processing logic. |
| SRAM | 4 KB with hardware parity - supports reliable data buffering and stack operations in safety-aware applications. |
| ADC | 12-bit, 1.0 µs conversion time, 10-channel - captures fast analog signals (e.g., motor current sensing) with ±1 LSB INL. |
| Timers | 9 total: 1x advanced-control (TIM1), 4x general-purpose (TIM2/3/14/16), 1x basic (TIM17), plus IWDG/WWDG/SysTick - enables PWM motor control, IR decoding, and precise timing-critical event handling. |
| I/O Capability | Up to 26 pins 5 V tolerant - simplifies level-shifting design when interfacing with legacy 5 V peripherals or sensors. |
| Communication | 1× I²C (Fast Mode Plus, 1 Mbit/s), 1× USART (LIN/IrDA/ISO7816), 1× SPI (18 Mbit/s) - supports multi-protocol fieldbus integration without external transceivers. |
Pinout & Package
STM32F031G4U6TR uses the UFQFPN28 (4 × 4 mm, 0.5 mm pitch) package - a space-efficient, thermally enhanced leadless QFN suitable for compact industrial PCB layouts and automated SMT assembly.
| Pin/Terminal | Circuit Role | Design Meaning |
|---|---|---|
| VDD | Digital supply | 2.0–3.6 V main power rail; decoupling required per datasheet layout guidelines to ensure stable core operation. |
| VDDA | Analog supply | Separate 2.4–3.6 V rail for ADC/RTC; must be filtered and isolated from digital noise to maintain 12-bit accuracy. |
| PA0–PA15 | General-purpose I/O | Configurable as GPIO, alternate functions (e.g., USART_TX, SPI_MOSI); up to 26 pins support 5 V tolerance on specific ports. |
| NRST | Active-low reset | Asynchronous reset input; internal pull-up enabled; requires external capacitor for glitch immunity per STM32F031x4/x6 spec. |
| SWDIO/SWCLK | Debug interface | Serial Wire Debug pins - enable programming and real-time debugging using standard ST-LINK v2/v3 probes without JTAG overhead. |
Key Features
| Feature | Design Value |
|---|---|
| Programmable voltage detector (PVD) | Monitors VDD against 4 selectable thresholds (2.2–2.9 V) to trigger early warning interrupts before brownout, enabling graceful shutdown. |
| Calendar RTC with alarm | Retains time/date across Stop/Standby modes using VBAT; supports periodic wakeup every 1 s to 1 month - ideal for battery-backed metering. |
| Advanced-control timer (TIM1) | 6-channel complementary PWM output with programmable deadtime (1–128 ns) and emergency stop - enables safe gate driving in BLDC motor controllers. |
| Temperature sensor & VREFINT | On-die sensor calibrated at factory (±1.5°C accuracy); internal 1.22 V reference enables self-calibrating ADC measurements without external components. |
| ECOPACK®2 compliance | Meets RoHS and halogen-free requirements; qualified for industrial temperature range (−40 to +105°C) - suitable for harsh-environment deployments. |
Applications
| Industrial Motor Control | Smart Energy Metering |
|---|---|
Use Scenario: Low-cost BLDC fan or pump controller in HVAC systems with thermal protection and speed regulation. IC Role / Device Role / Timing Role: MCU executing FOC algorithm, generating 6-channel PWM with deadtime, monitoring current via ADC, and managing fault shutdown via TIM1 emergency stop. Use Value: Eliminates need for external gate driver ICs and discrete protection circuitry due to integrated advanced timer and 5 V-tolerant I/Os interfacing directly with Hall sensors. |
Use Scenario: DIN-rail mounted electricity meter with pulse counting, tamper detection, and local display update. IC Role / Device Role / Timing Role: System controller reading shunt-based current samples via 12-bit ADC, timestamping events using calendar RTC, and communicating via UART-based DLMS protocol. Use Value: Enables accurate energy measurement (±0.5% THD error) and long-term timekeeping (RTC drift < 2 ppm with LSE calibration) without external precision oscillator. |
| IoT Sensor Node | Power Supply Monitoring |
Use Scenario: Battery-powered environmental sensor node transmitting temperature/humidity over UART-to-LoRaWAN bridge. IC Role / Device Role / Timing Role: Data aggregator sampling onboard sensors, performing CRC-32 integrity checks, entering Stop mode between transmissions, and waking on RTC alarm or external interrupt. Use Value: Achieves sub-1 µA standby current (VBAT mode) and < 5 µs wakeup latency - extends coin-cell battery life beyond 5 years. |
Use Scenario: DC-DC converter supervisory unit monitoring input voltage, output ripple, and thermal foldback in telecom power systems. IC Role / Device Role / Timing Role: Real-time monitor capturing transient overvoltage events using high-speed ADC, logging timestamps via RTC, and asserting fault signal via GPIO. Use Value: Provides cycle-accurate fault capture (1.0 µs ADC resolution) and deterministic response (< 100 ns jitter on TIM1 input capture) for compliance with IEC 61000-4-5 surge immunity testing. |
Equivalent & Alternatives
The following parts are listed as comparable options for similar microcontroller applications.
| Alternative Part | Technical Difference | Application Difference | Selection Advice |
|---|---|---|---|
| STM32F030F4P6 | 16 KB Flash, 4 KB SRAM, same Cortex-M0 core but lacks advanced-control timer (TIM1) and RTC calendar function. | Suitable for simpler timing tasks (e.g., LED dimming) but not motor control or time-stamped logging. | Select when cost is critical and advanced PWM or RTC features are unnecessary. |
| STM32F042F4P6 | Same package and memory, adds USB 2.0 FS interface and improved ADC linearity (±0.5 LSB), but no 5 V-tolerant I/Os. | Better for USB-connected diagnostics tools; unsuitable for mixed-voltage industrial I/O interfacing. | Choose when USB device functionality is required and external level shifters can accommodate non-5 V-tolerant pins. |
Compared with STM32F031G4U6TR, STM32F030F4P6 sacrifices advanced timer and RTC capabilities for lower BOM cost, while STM32F042F4P6 trades 5 V tolerance for USB connectivity - making the G4U6TR uniquely balanced for industrial edge nodes needing robust I/O, precise timing, and battery-backed timekeeping.
Availability
STM32F031G4U6TR is available at Aetrix Electronics and suitable for industrial motor control, smart energy metering, IoT sensor nodes, and power supply monitoring requiring stable component supply across extended temperature and long product lifecycles.
Supply support for STM32F031G4U6TR 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, specializing in microcontrollers, power management, and automotive-grade ICs with strong industrial and consumer market presence.
This part belongs to the STM32F0 mainstream Arm Cortex-M0 series, designed specifically for cost-optimized, low-power embedded applications demanding rich peripheral integration and industrial reliability - not general-purpose computing or high-performance signal processing.
FAQ
What is the maximum operating frequency and corresponding supply voltage range?
The STM32F031G4U6TR achieves a maximum CPU frequency of 48 MHz when powered within the specified 2.0–3.6 V VDD range. Operation at 48 MHz requires the internal 8 MHz RC oscillator with PLL multiplication or an external 4–32 MHz crystal; full performance is guaranteed only above 2.4 V per electrical characteristics table in DocID025743 Rev 6.
Does this MCU support hardware CRC calculation and how is it implemented?
Yes, it includes a dedicated cyclic redundancy check (CRC) calculation unit compliant with CRC-32 standards. The peripheral operates independently of the CPU, accepts data via APB bus writes, and computes checksums for memory blocks or packet payloads - reducing firmware overhead in communication stacks and firmware update validation routines.
How many I/O pins are 5 V tolerant and which ports do they belong to?
Up to 26 I/O pins are 5 V tolerant, specifically PA0–PA15, PB0–PB1, and PB10–PB15 as defined in Table 11 (Pin definitions) of the datasheet. This capability allows direct connection to 5 V logic without external level shifters - critical for interoperability with legacy industrial sensors and actuators.
What debug interface does STM32F031G4U6TR use and what tools are compatible?
It uses Serial Wire Debug (SWD) with SWDIO and SWCLK pins - a 2-wire ARM-standard interface supported by ST-LINK v2/v3, J-Link, and CMSIS-DAP debug probes. No JTAG header is required, minimizing PCB footprint while enabling full flash programming, breakpoint setting, and real-time variable inspection during development.
STM32F031G4U6TR Specifications
- Product attributes
- Attribute value
- Manufacturer:
- STMicroelectronics
- Package/Case:
- 28-UFQFN Exposed Pad
- Series:
- STM32F0
- Packaging:
- Tape & Reel (TR)
- Product Status:
- Active
- Programmable:
- Not Verified
- Core Processor:
- ARM® Cortex®-M0
- Core Size:
- 32-Bit Single-Core
- Speed:
- 48MHz
- Connectivity:
- I2C, IrDA, LINbus, SPI, UART/USART
- Peripherals:
- DMA, I2S, POR, PWM, WDT
- Number of I/O:
- 23
- Program Memory Size:
- 16KB (16K x 8)
- Program Memory Type:
- FLASH
- EEPROM Size:
- -
- RAM Size:
- 4K x 8
- Voltage - Supply (Vcc/Vdd):
- 2V ~ 3.6V
- Data Converters:
- A/D 13x12b
- Oscillator Type:
- Internal
- Operating Temperature:
- -40°C ~ 85°C (TA)
- Grade:
- -
- Qualification:
- -
- Mounting Type:
- Surface Mount
- Supplier Device Package:
STM32F031G4U6TR FAQ
1.How can I place an order for STM32F031G4U6TR through Aetrix?
Please submit a Request for Quotation (RFQ) for STM32F031G4U6TR 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 STM32F031G4U6TR reliable?
The price and inventory of STM32F031G4U6TR are updated periodically and may fluctuate due to market conditions. Stock and pricing data are typically refreshed every 24 hours. Quotation validity for STM32F031G4U6TR is usually 5 days.
3.What payment methods are accepted for STM32F031G4U6TR?
We accept Wire Transfer, PayPal, Credit Card, Western Union, MoneyGram, and Escrow for STM32F031G4U6TR transactions.
Note: Certain payment methods may incur a processing fee.
4.How is shipping managed for STM32F031G4U6TR?
STM32F031G4U6TR orders can be shipped via leading logistics carriers, including DHL, UPS, FedEx, TNT, or Registered Mail.
Once your STM32F031G4U6TR 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 STM32F031G4U6TR?
For technical support, including STM32F031G4U6TR datasheets, pinout diagrams, or application guidance, please contact our engineering support team. They can provide detailed documentation and assistance for your STM32F031G4U6TR requirements.
6.How does Aetrix verify that STM32F031G4U6TR is sourced from the original manufacturer or authorized distributors?
All STM32F031G4U6TR 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 STM32F031G4U6TR meets industry standards.
7.What is the process for return or replacement of STM32F031G4U6TR?
All STM32F031G4U6TR units undergo pre-shipment inspection (PSI). If there is an issue with STM32F031G4U6TR, 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 STM32F031G4U6TR part is unused and in its original packaging.
Return procedure for STM32F031G4U6TR:
1.Submit a request within 90 days.
2.Obtain a Return Material Authorization (RMA) from Aetrix.
STM32F031G4U6TR 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…

