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

- Shipping:

Inventory:6,018
Please send an inquiry. Send us your inquiry, and we will respond immediately.
Product details
Overview
STM32F031G6U6TR from STMicroelectronics is an ARM® Cortex®-M0 32-bit microcontroller with 32 KB Flash, 4 KB SRAM (with hardware parity), and operating voltage range of 2.0–3.6 V. It integrates a 12-bit 1.0 µs ADC (10-channel), nine timers including one advanced-control timer with deadtime generation, and communication interfaces: I²C (Fast Mode Plus), USART (LIN/IrDA/ISO7816), and SPI (18 Mbit/s). It targets cost-sensitive industrial control and smart sensor nodes.
For engineers reviewing the STM32F031G6U6TR datasheet, STM32F031G6U6TR pinout, STM32F031G6U6TR application, or STM32F031G6U6TR equivalent, key selection considerations include its 32-pin UFQFPN package, 48 MHz max CPU frequency, 5 V-tolerant I/Os (up to 26 pins), RTC with alarm/wakeup, and SWD debug interface - all critical for compact, low-power embedded designs requiring mixed-signal integration and real-time responsiveness.
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. Its clock system combines internal RC oscillators (8 MHz HSI with PLL, 40 kHz LSI) and external sources (4–32 MHz HSE, 32.768 kHz LSE), enabling flexible power/performance trade-offs across Sleep, Stop, and Standby modes.
Peripheral integration follows ST's STM32F0-series architecture: DMA controller (5 channels) offloads data movement between ADC, timers, and memory; GPIOs support remappable alternate functions and external interrupt capability on all pins; analog subsystem includes dedicated VDDA supply (2.4–3.6 V), temperature sensor, and VREFINT for precise ADC reference calibration.
Key Specifications
| Parameter | Value and Actual Design Meaning |
|---|---|
| CPU Core | ARM Cortex-M0, 48 MHz max - enables deterministic real-time task execution with <100 ns interrupt latency. |
| Memory | 32 KB Flash + 4 KB SRAM (HW parity) - supports firmware updates in-field and error-detecting data buffers for safety-critical routines. |
| ADC | 12-bit, 1.0 µs conversion time, 10-channel - delivers 1 MSPS sampling for motor current sensing or multi-sensor monitoring. |
| Timers | 9 timers including TIM1 (16-bit, 7-channel advanced-control) - provides 6-channel complementary PWM with programmable deadtime for BLDC motor gate driving. |
| I/O Voltage | 26 pins 5 V tolerant - allows direct interfacing with legacy 5 V logic without level shifters in industrial I/O modules. |
| Communication | I²C Fast Mode Plus (1 Mbit/s), USART (LIN/IrDA/ISO7816), SPI (18 Mbit/s) - enables robust fieldbus connectivity and secure smart-card interface in metering applications. |
| Debug | Serial Wire Debug (SWD) - supports non-intrusive real-time debugging and flash programming via 2-pin interface, reducing PCB footprint. |
Pinout & Package
STM32F031G6U6TR uses a 5 × 5 mm UFQFPN32 (Ultra-Fine Pitch Quad Flat No-lead) package with 0.5 mm pitch, optimized for space-constrained PCB layouts and automated assembly. Thermal pad enhances thermal dissipation in continuous operation.
| Pin/Terminal | Circuit Role | Design Meaning |
|---|---|---|
| VDD, VSS | Digital power supply and ground | Separate digital rail (2.0–3.6 V); decoupling required within 10 mm for stable core operation at 48 MHz. |
| VDDA, VSSA | Analog power supply and ground | Dedicated 2.4–3.6 V analog domain; must be filtered independently to ensure ±1 LSB ADC accuracy. |
| PA0–PA15, PB0–PB9 | General-purpose I/Os | 39 total fast I/Os; up to 26 support 5 V tolerance - enables mixed-voltage system interfacing without external translators. |
| NRST | Active-low reset input | Asynchronous reset with internal pull-up; accepts 1.65–5.5 V logic - compatible with external supervisory circuits or pushbutton debouncing networks. |
| SWDIO / SWCLK | Serial Wire Debug interface | 2-pin debug port replacing JTAG; supports full-speed programming and real-time variable inspection during development. |
| BOOT0 | Boot mode selection | High at power-on forces system memory boot (for DFU recovery); tied low for normal Flash execution - critical for field firmware recovery paths. |
Key Features
| Feature | Design Value |
|---|---|
| Programmable voltage detector (PVD) | Monitors VDD in 8 user-selectable thresholds (2.0–2.9 V) to trigger early warning interrupts before brownout - prevents data corruption in battery-powered systems. |
| Calendar RTC with alarm | Hardware real-time clock with calendar, alarm, and periodic wakeup from Stop/Standby - enables energy-efficient timed operations (e.g., sensor polling every 10 s) with <1 µA standby current. |
| CRC calculation unit | Hardware-accelerated CRC-32 generator - validates firmware integrity or communication packets in <1 µs, freeing CPU cycles for application logic. |
| Independent watchdog (IWDG) | Free-running 12-bit counter clocked by 40 kHz LSI - ensures fail-safe recovery from software lockup even if main clock fails. |
| Temperature sensor | On-die sensor calibrated at factory (±1.5°C accuracy) - enables ambient temperature compensation for ADC readings or thermal throttling in enclosed enclosures. |
Applications
| Industrial Motor Control | Smart Energy Metering |
|---|---|
Use Scenario: Compact BLDC fan controller in HVAC systems with integrated current sensing and commutation timing. IC Role / Device Role / Timing Role: Main MCU executing FOC algorithm, generating 6-channel PWM with deadtime, sampling phase currents via ADC, and managing UART-based commissioning. Use Value: TIM1's hardware deadtime insertion eliminates shoot-through risk; 5 V-tolerant GPIOs interface directly with Hall-effect sensors and relay drivers - reducing BOM count by 3 discrete components. | Use Scenario: DIN-rail mounted electricity meter with tariff switching, tamper detection, and PLC/GPRS backhaul. IC Role / Device Role / Timing Role: System controller handling metrology data aggregation, RTC-based billing intervals, ISO7816 secure element interface, and LIN bus communication to display module. Use Value: Integrated USART with ISO7816 mode eliminates external transceiver; RTC alarm wakes MCU every 15 min for pulse counting - achieving <5 µA average system current in meter sleep mode. |
| IoT Sensor Node | Automotive Body Electronics |
Use Scenario: Wireless environmental sensor node (temp/humidity/pressure) powered by coin cell, transmitting via BLE module. IC Role / Device Role / Timing Role: Data acquisition hub: reads sensors via I²C/SPI, conditions signals with ADC, logs timestamps using RTC, and manages low-power state transitions. Use Value: Stop mode current of 1.9 µA (typ.) extends 200 mAh coin cell life to >5 years; SWD debug retains full visibility during ultra-low-power validation. | Use Scenario: Door module controlling window lift, mirror adjustment, and interior lighting with LIN slave functionality. IC Role / Device Role / Timing Role: LIN-compliant slave node interpreting command frames, driving DC motors via PWM, and monitoring switch inputs with debounce timers. Use Value: USART LIN auto-baud detection synchronizes to master without external crystal; 105°C extended temperature rating ensures reliability in under-dash environments. |
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, no RTC, no VBAT backup, TSSOP20 package (20-pin) | Lacks calendar RTC and battery-backed registers - unsuitable for time-stamped logging or alarm-driven wakeups. | Select when cost and pin count are primary constraints and real-time calendar functions are unnecessary. |
| STM32F042F4P6 | Same Flash/SRAM, adds USB 2.0 FS device, CEC, and higher-temp grade (−40 to +105°C) | Includes USB PHY and CEC - enables PC-connected diagnostics or IR remote control, but increases layout complexity. | Choose when USB device interface or consumer IR protocol support is mandatory, accepting slightly higher BOM cost. |
Compared with STM32F031G6U6TR, STM32F030F4P6 sacrifices RTC and package I/O count for lower cost, while STM32F042F4P6 adds USB/CEC at comparable price - making the G6U6TR optimal for RTC-dependent, space-constrained industrial nodes needing robust analog integration and minimal external components.
Availability
STM32F031G6U6TR is available at Aetrix Electronics and suitable for industrial motor control, smart energy metering, IoT sensor nodes, and automotive body electronics requiring stable component supply across long-lifecycle production programs.
Supply support for STM32F031G6U6TR 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 ICs, sensors, and analog devices for industrial, automotive, and consumer markets.
The STM32F0 series targets cost-sensitive, resource-constrained embedded applications demanding high integration, low power, and industrial-grade reliability - with the F031 subgroup optimized for compact 32-pin packages and mixed-signal control tasks.
FAQ
What is the maximum operating frequency and supported voltage range?
The STM32F031G6U6TR operates at up to 48 MHz using its internal 8 MHz HSI oscillator with PLL multiplication or external crystal. Its digital supply (VDD) ranges from 2.0 V to 3.6 V, and analog supply (VDDA) spans 2.4 V to 3.6 V - ensuring stable ADC performance and core operation across wide battery discharge profiles.
Does this MCU support hardware CRC and what is its implementation?
Yes, it includes a dedicated CRC calculation unit compliant with CRC-32 (IEEE 802.3). The peripheral computes checksums over memory blocks or data streams in hardware with single-cycle throughput, accessible via APB bus. It supports programmable polynomial and initial value - used for firmware image verification and communication packet integrity checking.
How many I/O pins are 5 V tolerant and which packages support them?
Up to 26 I/O pins are 5 V tolerant across all STM32F031x6 variants, including the UFQFPN32 package of STM32F031G6U6TR. This feature is implemented at silicon level and does not require external clamping - confirmed in Section 6.3.14 of the datasheet (DocID025743 Rev 6, page 64).
What debug interface is available and what are its physical requirements?
It supports Serial Wire Debug (SWD) only - a 2-pin interface (SWDIO and SWCLK) with optional SWO for trace output. No JTAG pins are exposed. A 10 kΩ pull-up on SWDIO and clean 3.3 V supply to the debugger target connector are required; ST-LINK/V2-1 or equivalent programmers are fully compatible per UM1727 documentation.
STM32F031G6U6TR 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:
- 32KB (32K 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:
STM32F031G6U6TR FAQ
1.How can I place an order for STM32F031G6U6TR through Aetrix?
Please submit a Request for Quotation (RFQ) for STM32F031G6U6TR 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 STM32F031G6U6TR reliable?
The price and inventory of STM32F031G6U6TR are updated periodically and may fluctuate due to market conditions. Stock and pricing data are typically refreshed every 24 hours. Quotation validity for STM32F031G6U6TR is usually 5 days.
3.What payment methods are accepted for STM32F031G6U6TR?
We accept Wire Transfer, PayPal, Credit Card, Western Union, MoneyGram, and Escrow for STM32F031G6U6TR transactions.
Note: Certain payment methods may incur a processing fee.
4.How is shipping managed for STM32F031G6U6TR?
STM32F031G6U6TR orders can be shipped via leading logistics carriers, including DHL, UPS, FedEx, TNT, or Registered Mail.
Once your STM32F031G6U6TR 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 STM32F031G6U6TR?
For technical support, including STM32F031G6U6TR datasheets, pinout diagrams, or application guidance, please contact our engineering support team. They can provide detailed documentation and assistance for your STM32F031G6U6TR requirements.
6.How does Aetrix verify that STM32F031G6U6TR is sourced from the original manufacturer or authorized distributors?
All STM32F031G6U6TR 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 STM32F031G6U6TR meets industry standards.
7.What is the process for return or replacement of STM32F031G6U6TR?
All STM32F031G6U6TR units undergo pre-shipment inspection (PSI). If there is an issue with STM32F031G6U6TR, 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 STM32F031G6U6TR part is unused and in its original packaging.
Return procedure for STM32F031G6U6TR:
1.Submit a request within 90 days.
2.Obtain a Return Material Authorization (RMA) from Aetrix.
STM32F031G6U6TR 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…

