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

- Shipping:

Inventory:1,518
Please send an inquiry. Send us your inquiry, and we will respond immediately.
Product details
Overview
STM32G031G6U6TR from STMicroelectronics is a 32-bit Arm® Cortex®-M0+ microcontroller in UFQFPN28 package, operating up to 64 MHz with 64 KB Flash, 8 KB SRAM, and integrated 12-bit ADC (0.4 µs conversion), dual USARTs (one with LIN/ISO7816), and two I²C interfaces supporting Fast-mode Plus (1 Mbit/s). It targets cost-sensitive industrial control and smart sensor nodes requiring low-power operation down to Shutdown mode (200 nA) and robust peripheral integration.
For engineers reviewing the STM32G031G6U6TR datasheet, STM32G031G6U6TR pinout, STM32G031G6U6TR application, or STM32G031G6U6TR equivalent, key selection criteria include its 28-pin UFQFPN footprint, 1.7–3.6 V supply range, 5 V-tolerant GPIOs, RTC with periodic wakeup from Stop/Standby, and SWD debug interface - all critical for space-constrained, battery-backed embedded designs.
Technical Context
The device implements an Arm Cortex-M0+ core with MPU, supporting TrustZone-like memory protection via readout protection (RDP) levels and securable flash area. Its clock system integrates four oscillators: 4–48 MHz HSE, 32 kHz LSE with calibration, 16 MHz HSI (±1%), and 32 kHz LSI (±5%), enabling precise timing across power modes.
Peripheral interconnect uses a hierarchical AHB/APB bus matrix with DMA controller (5 channels, flexible mapping) and NVIC with 32 external interrupts. Analog subsystem includes VREFINT, temperature sensor, VBAT monitoring, and VREFBUF - all calibrated and specified over –40°C to 125°C ambient.
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. |
| Memory | 64 KB Flash (with securable area & HW parity), 8 KB SRAM (HW parity) - supports firmware updates and data logging with error detection. |
| ADC | 12-bit, 0.4 µs conversion, up to 16 external channels - suitable for fast analog sensing (e.g., current/voltage monitoring in power supplies). |
| Timers | 11 timers including one 128 MHz-capable advanced timer (TIM1), four 16-bit general-purpose, two low-power - enables PWM generation, encoder interfacing, and ultra-low-power periodic wakeups. |
| I/O Voltage | 5 V-tolerant on multiple pins - allows direct interfacing with legacy 5 V logic without level shifters. |
| Low-Power Modes | Shutdown (200 nA), Standby (300 nA), Stop 0 (1.1 µA) - extends battery life in always-on sensor and metering applications. |
| Communication | 2× I²C (Fast-mode Plus), 2× USART (one with LIN/ISO7816), 2× SPI (32 Mbit/s), LPUART - supports multi-protocol connectivity in industrial gateways and smart peripherals. |
Pinout & Package
STM32G031G6U6TR is housed in a 28-pin Ultra-Fine Pitch Quad Flat No-lead (UFQFPN28) package, 4 mm × 4 mm, 0.5 mm pitch, with exposed thermal pad. This compact, surface-mount package supports high-density PCB layouts and efficient thermal dissipation in space-constrained applications.
| Pin/Terminal | Circuit Role | Design Meaning |
|---|---|---|
| VDD | Main power supply | 1.7–3.6 V input; powers digital core and most peripherals. |
| VSS | GND reference | Digital ground plane connection; must be low-impedance for noise immunity. |
| PA0–PA15 | General-purpose I/O | Up to 24 configurable GPIOs; many support 5 V tolerance and external interrupt capability. |
| PB0–PB1 | General-purpose I/O | Additional GPIOs; PB1 supports ADC channel 9 and TIM3_CH4. |
| NRST | Active-low reset input | Asynchronous reset trigger; internal pull-up; compatible with open-drain reset supervisors. |
| SWDIO/SWCLK | Debug interface | Serial Wire Debug pins for programming and real-time debugging via ST-LINK. |
| VBAT | Backup power supply | Supplies RTC and backup registers during main power loss; supports coin-cell battery input. |
| BOOT0 | Boot mode selection | High at reset selects system memory bootloader; used for field firmware recovery. |
Key Features
| Feature | Design Value |
|---|---|
| Hardware CRC unit | Accelerates checksum calculation for firmware integrity verification and communication protocols (e.g., Modbus CRC16). |
| Programmable BOR/PVD | Configurable brownout reset threshold and voltage detector alerts - prevents erratic operation during supply droop. |
| Calendar RTC with alarm | Real-time clock with calendar, alarm, and periodic wakeup from Stop/Standby/Shutdown - enables scheduled sensor sampling without MCU active time. |
| Temperature sensor & VREFINT | Factory-calibrated internal sensor (±1.5°C accuracy) and 1.2 V reference - enables self-monitoring and precision ADC measurements without external components. |
| ECOPACK2 compliance | RoHS-compliant, halogen-free packaging - meets environmental requirements for industrial and consumer deployments. |
Applications
| Smart Energy Metering | Industrial Sensor Node |
|---|---|
Use Scenario: Compact single-phase electricity meter with pulse counting, voltage/current sampling, and tamper detection. IC Role / Device Role / Timing Role: Main controller executing metrology algorithms, managing LCD display, and communicating via UART/LIN to concentrator. Use Value: Integrated 12-bit ADC with hardware oversampling and RTC alarm enables accurate energy accumulation and time-of-use billing without external precision references. | Use Scenario: Battery-powered vibration/temperature node in predictive maintenance systems. IC Role / Device Role / Timing Role: Data acquisition hub aggregating analog sensor inputs, performing local FFT preprocessing, and transmitting via LPUART to gateway. Use Value: Shutdown mode (200 nA) + LPUART wakeup reduces average current to <1 µA, extending 2000 mAh battery life beyond 5 years. |
| Home Appliance Control | IoT Edge Gateway |
Use Scenario: Washing machine mainboard controlling motor drivers, water valves, and user interface. IC Role / Device Role / Timing Role: Real-time motor control using TIM1 PWM outputs and ADC-triggered current sensing. Use Value: 128 MHz-capable advanced timer delivers sub-microsecond PWM resolution for precise BLDC commutation and torque ripple reduction. | Use Scenario: Low-cost industrial gateway connecting Modbus RTU field devices to cloud via Wi-Fi/Ethernet. IC Role / Device Role / Timing Role: Protocol translation engine handling RS-485 framing, CRC validation, and packet buffering. Use Value: Dual USARTs with auto-baud detection and hardware flow control simplify interoperability with diverse legacy field devices without software overhead. |
Equivalent & Alternatives
The following parts are listed as comparable options for similar microcontroller applications.
| Alternative Part | Technical Difference | Application Difference | Selection Advice |
|---|---|---|---|
| STM32G031F6P6 | LQFP32 package (7 × 7 mm), same core/peripherals but 32-pin layout - no VBAT pin, fewer GPIOs (23 vs 26) | Suitable for board-level designs where larger footprint is acceptable and backup RTC power not required | Select when PCB layout favors QFP over QFN and thermal pad soldering is undesirable |
| STM32G041F8P6 | Same LQFP32 package, 128 KB Flash, 16 KB SRAM, added USB 2.0 FS interface and enhanced crypto acceleration | Required for USB-connected devices (e.g., HID peripherals, firmware update dongles) or higher code/data footprint | Choose when future-proofing for USB connectivity or needing >64 KB application space |
Compared with STM32G031F6P6, the G6U6TR offers smaller form factor and VBAT support for RTC backup; versus STM32G041F8P6, it trades USB and extra memory for lower cost and power - making it optimal for non-USB, space- and battery-constrained edge nodes.
Availability
STM32G031G6U6TR is available at Aetrix Electronics and suitable for smart metering, industrial sensor nodes, home appliance control, and IoT edge gateways requiring stable component supply, long-term manufacturability, and automotive-grade temperature support (–40°C to 125°C).
Supply support for STM32G031G6U6TR 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 products for industrial, automotive, and consumer markets.
The STM32G0 series targets cost-optimized, ultra-low-power embedded applications - delivering Cortex-M0+ performance with advanced analog integration, security features, and robust qualification for harsh environments.
FAQ
What is the maximum operating frequency and supported voltage range?
The STM32G031G6U6TR operates at up to 64 MHz and supports a supply voltage range of 1.7 V to 3.6 V. Its internal voltage regulator maintains stable core operation across this range, and the device is fully specified for all electrical characteristics within these limits - including Flash programming and ADC accuracy - at temperatures from –40°C to 125°C.
Does this MCU support hardware encryption or secure boot?
This part does not integrate dedicated cryptographic accelerators (AES, SHA, PKA) or ROM-based secure boot. It provides readout protection (RDP) levels and a securable flash area for firmware IP protection, but lacks hardware TRNG, secure key storage, or boot ROM signature verification - making it suitable for applications where basic firmware confidentiality suffices, not high-assurance security.
Can the internal 32 kHz RC oscillator replace an external crystal for RTC operation?
No - the internal 32 kHz RC oscillator (LSI) has ±5% accuracy and is unsuitable for calendar RTC applications requiring timekeeping stability. The device requires the 32.768 kHz external LSE crystal (with calibration support) for accurate RTC operation; LSI is only recommended for watchdog or low-precision timing where drift is acceptable.
How many 5 V-tolerant I/Os does the UFQFPN28 package provide?
The STM32G031G6U6TR in UFQFPN28 exposes 26 GPIOs, of which 23 are 5 V-tolerant (all PAx and PBx pins except PA13/SWDIO, PA14/SWCLK, and NRST). This enables direct interfacing with 5 V peripherals like legacy UART transceivers or optocouplers without external level-shifting circuitry.
STM32G031G6U6TR Specifications
- Product attributes
- Attribute value
- Manufacturer:
- STMicroelectronics
- Package/Case:
- 28-UFQFN
- Series:
- STM32G0
- Packaging:
- Tape & Reel (TR)
- 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:
- 26
- Program Memory Size:
- 32KB (32K 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 ~ 85°C (TA)
- Grade:
- -
- Qualification:
- -
- Mounting Type:
- Surface Mount
- Supplier Device Package:
STM32G031G6U6TR FAQ
1.How can I place an order for STM32G031G6U6TR through Aetrix?
Please submit a Request for Quotation (RFQ) for STM32G031G6U6TR 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 STM32G031G6U6TR reliable?
The price and inventory of STM32G031G6U6TR are updated periodically and may fluctuate due to market conditions. Stock and pricing data are typically refreshed every 24 hours. Quotation validity for STM32G031G6U6TR is usually 5 days.
3.What payment methods are accepted for STM32G031G6U6TR?
We accept Wire Transfer, PayPal, Credit Card, Western Union, MoneyGram, and Escrow for STM32G031G6U6TR transactions.
Note: Certain payment methods may incur a processing fee.
4.How is shipping managed for STM32G031G6U6TR?
STM32G031G6U6TR orders can be shipped via leading logistics carriers, including DHL, UPS, FedEx, TNT, or Registered Mail.
Once your STM32G031G6U6TR 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 STM32G031G6U6TR?
For technical support, including STM32G031G6U6TR datasheets, pinout diagrams, or application guidance, please contact our engineering support team. They can provide detailed documentation and assistance for your STM32G031G6U6TR requirements.
6.How does Aetrix verify that STM32G031G6U6TR is sourced from the original manufacturer or authorized distributors?
All STM32G031G6U6TR 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 STM32G031G6U6TR meets industry standards.
7.What is the process for return or replacement of STM32G031G6U6TR?
All STM32G031G6U6TR units undergo pre-shipment inspection (PSI). If there is an issue with STM32G031G6U6TR, 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 STM32G031G6U6TR part is unused and in its original packaging.
Return procedure for STM32G031G6U6TR:
1.Submit a request within 90 days.
2.Obtain a Return Material Authorization (RMA) from Aetrix.
STM32G031G6U6TR 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…

