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

- Shipping:

Inventory:4,550
Please send an inquiry. Send us your inquiry, and we will respond immediately.
Product details
Overview
STM32L031G4U6TR from STMicroelectronics is an ultra-low-power 32-bit Arm® Cortex®-M0+ microcontroller in UFQFPN28 (4×4 mm) package, featuring 16 KB Flash, 8 KB SRAM, 1 KB EEPROM with ECC, 12-bit ADC (1.14 Msps), and dual ultra-low-power comparators. It operates from 1.65–3.6 V across –40 to +125 °C and targets battery-powered sensor nodes and smart meters requiring sub-µA Stop mode (0.35 µA) and fast 5 µs wakeup.
For engineers reviewing the STM32L031G4U6TR datasheet, STM32L031G4U6TR pinout, STM32L031G4U6TR application, or STM32L031G4U6TR equivalent, key selection criteria include verified low-power mode current specs (Standby: 0.23 µA, Stop + RTC + 8 KB RAM retention: 0.6 µA), 31 I/Os with 5V tolerance, and integrated 32 kHz RTC oscillator with calibration - all confirmed in DS10668 Rev 6.
Technical Context
The device implements a single-core Arm Cortex-M0+ running up to 32 MHz with 0.95 DMIPS/MHz performance and dynamic voltage scaling for power optimization. Its clock system integrates five sources: HSE (1–25 MHz), LSE (32 kHz), HSI16 (16 MHz ±1%), LSI (37 kHz), and MSI (65 kHz–4.2 MHz), plus a PLL for CPU clock generation.
Power management includes programmable brownout reset (5 thresholds), POR/PDR, and PVD; low-power modes are hierarchically structured - Run, Sleep, Low-power Run/Sleep, Stop (with multiple retention options), and Standby - each validated with measured current consumption per DS10668 Section 6.3.4–6.3.5.
Key Specifications
| Parameter | Value and Actual Design Meaning |
|---|---|
| Core | Arm Cortex-M0+, 32 MHz max - delivers deterministic real-time control with <1-cycle interrupt latency and Thumb-2 instruction set. |
| Memory | 16 KB Flash (ECC-protected), 8 KB SRAM, 1 KB EEPROM (ECC-protected) - enables robust firmware storage and nonvolatile data logging without external memory. |
| ADC | 12-bit, 1.14 Msps, 10-channel - supports high-resolution analog sensing down to 1.65 V supply, suitable for precision battery monitoring. |
| Low-power Modes | Stop mode: 0.35 µA; Standby: 0.23 µA (2 wake-up pins); Stop + RTC + 8 KB RAM retention: 0.6 µA - extends coin-cell battery life to >10 years in intermittent-sensing applications. |
| Timers | 8x timers including 1x 16-bit (4-channel), 2x 16-bit (2-channel), 1x ultra-low-power LPTIM, RTC, SysTick, and dual watchdogs - enables precise timing, PWM generation, and fail-safe operation. |
| I/Os | 31 GPIOs, 5V tolerant - simplifies interface with legacy 5V peripherals and reduces level-shifter count in mixed-voltage systems. |
| Communication | 1x USART (ISO 7816/IrDA), 1x LPUART, 2x SPI (up to 16 Mbit/s), 1x I2C (SMBus/PMBus) - supports secure smart-card comms, low-power wireless MCU-to-modem links, and sensor hub connectivity. |
Pinout & Package
STM32L031G4U6TR uses the UFQFPN28 (4 × 4 mm, 0.5 mm pitch) package, compliant with ECOPACK®2 environmental standards. Pin functions are defined per DS10668 Section 4 (Pin descriptions) and Table 15 (Pin definitions).
| Pin/Terminal | Circuit Role | Design Meaning |
|---|---|---|
| VDD, VSS | Power supply / Ground | Dual VDD/VSS pairs ensure stable core and I/O domain operation; decoupling required per DS10668 Section 6.1.6. |
| NRST | Active-low reset input | Asynchronous reset with internal pull-up; supports external reset button or supervisor IC connection (DS10668 Section 6.3.14). |
| PA0–PA15, PB0–PB12 | General-purpose I/O | 31 total GPIOs; PA0–PA7, PB0–PB12 configurable as analog inputs, EXTI lines, or alternate function (e.g., USART2_TX on PA2). |
| OSC_IN/OSC_OUT | HSE crystal interface | Supports 1–25 MHz external crystal; optional load capacitors (12–22 pF) required for stable oscillation (DS10668 Section 6.3.6). |
| LSE_IN/LSE_OUT | RTC crystal interface | 32 kHz crystal input/output with built-in calibration register - enables temperature-compensated timekeeping in Stop/Standby modes. |
| BOOT0 | Boot mode selection | High at reset enables system memory bootloader (USART/SPI); low selects main Flash memory - critical for field firmware updates. |
Key Features
| Feature | Design Value |
|---|---|
| Ultra-low-power standby | 0.23 µA with two wake-up pins enabled - enables decade-long battery life in infrequently polled IoT endpoints. |
| ECC-protected memory | Flash and EEPROM both include error-correcting code - prevents silent data corruption in safety-critical firmware and parameter storage. |
| 5V-tolerant I/Os | 31 pins withstand 5.5 V regardless of VDD - eliminates level shifters when interfacing with industrial sensors or legacy logic. |
| Integrated RTC with calibration | 32 kHz LSE oscillator with user-accessible calibration register (±100 ppm trim range) - achieves ±2 ppm accuracy over temperature without external TCXO. |
| Pre-programmed bootloader | Factory-loaded USART/SPI bootloader accessible via BOOT0 - enables in-system firmware recovery without debug probe. |
Applications
| Smart Utility Metering | Wearable Health Sensor |
|---|---|
Use Scenario: Battery-powered electricity/water meter collecting pulse counts and temperature every 15 minutes, transmitting data via NB-IoT. IC Role / Device Role / Timing Role: Main controller executing metering algorithm, managing RTC-based scheduling, and driving UART-to-modem interface. Use Value: 0.6 µA Stop + RTC + 8 KB RAM retention preserves measurement context and timekeeping while extending CR2032 battery life beyond 12 years. | Use Scenario: Compact ECG patch acquiring analog biopotentials, performing on-device QRS detection, and storing 24-hour waveform in EEPROM. IC Role / Device Role / Timing Role: Signal acquisition controller using 12-bit ADC at 10 ksps and dual comparators for real-time R-peak triggering. Use Value: 1.14 Msps ADC resolution and 1 KB ECC EEPROM enable reliable long-term clinical-grade waveform logging without external memory. |
| Industrial Wireless Node | Asset Tracking Beacon |
Use Scenario: DIN-rail mounted vibration sensor node sampling accelerometer data every 5 seconds, processing FFT in RAM, and reporting anomalies via LoRaWAN. IC Role / Device Role / Timing Role: Edge-processing MCU handling sensor fusion, low-power timer-triggered sampling, and SPI-driven LoRa transceiver control. Use Value: 76 µA/MHz active efficiency and 5 µs Flash wakeup minimize energy per inference cycle - critical for solar-harvested operation. | Use Scenario: GPS-denied indoor asset tag using BLE beaconing and motion-triggered location updates via UWB anchors. IC Role / Device Role / Timing Role: Ultra-low-power coordinator managing motion-detect interrupts (via comparator window mode), BLE stack timing, and EEPROM-stored anchor IDs. Use Value: Dual ultra-low-power comparators with wake-up capability detect movement at <0.35 µA system current - enabling multi-year operation on a single button cell. |
Equivalent & Alternatives
The following parts are listed as comparable options for similar ultra-low-power MCU applications.
| Alternative Part | Technical Difference | Application Difference | Selection Advice |
|---|---|---|---|
| STM32L011K4T6 | 8 KB Flash, no EEPROM, same 32 MHz Cortex-M0+, identical UFQFPN32 package but different pinout | Lacks 1 KB EEPROM and has fewer I/Os (25 vs 31) - unsuitable for firmware-over-the-air rollback or persistent sensor calibration storage | Select only if EEPROM and I/O count are noncritical and board layout allows pinout adaptation. |
| EFM32ZG222F32 | Silicon Labs ARM Cortex-M0+, 32 KB Flash, 4 KB RAM, no EEPROM, 12-bit ADC (1 Msps), 0.5 µA Stop mode | Higher Flash/RAM but lacks EEPROM and RTC calibration - requires external RTC or software compensation for timekeeping accuracy | Prefer when larger code space is needed and external RTC is acceptable; avoid where EEPROM-based parameter retention is mandatory. |
Compared with STM32L031G4U6TR, STM32L011K4T6 trades EEPROM and I/O count for lower cost in simpler designs, while EFM32ZG222F32 offers more memory but shifts EEPROM and calibrated RTC functionality to external components - making STM32L031G4U6TR optimal for self-contained, long-life, calibration-sensitive edge nodes.
Availability
STM32L031G4U6TR is available at Aetrix Electronics and suitable for smart utility metering, wearable health sensors, industrial wireless nodes, and asset tracking beacons requiring stable component supply and guaranteed long-term manufacturability.
Supply support for STM32L031G4U6TR 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, MEMS, and automotive semiconductors since 1987.
The STM32L0 Access line targets ultra-low-power embedded applications demanding extended battery life, robust memory integrity, and integrated analog peripherals - optimized for cost-sensitive, size-constrained IoT endpoints.
FAQ
What is the maximum operating frequency and core type of STM32L031G4U6TR?
The STM32L031G4U6TR features an Arm Cortex-M0+ core rated for up to 32 MHz operation, delivering 0.95 DMIPS/MHz performance. This frequency is achievable across the full 1.65–3.6 V supply range and –40 to +125 °C temperature range, as validated in DS10668 Section 3.3 and Table 4.
Does STM32L031G4U6TR support hardware error correction for its memory subsystems?
Yes - both the 16 KB Flash and 1 KB EEPROM include built-in ECC (Error-Correcting Code) circuitry that detects and corrects single-bit errors and detects double-bit errors, as specified in DS10668 Section 3.9 and Table 46. This ensures firmware and calibration data integrity in harsh electromagnetic environments.
How many I/O pins are 5V tolerant, and what is their absolute maximum rating?
31 GPIOs (PA0–PA15, PB0–PB12) are 5V tolerant with an absolute maximum rating of 5.5 V regardless of VDD level, per DS10668 Section 6.3.13 and Table 53. This allows direct interfacing with 5V sensors, logic, and communication peripherals without external level-shifting circuitry.
What RTC accuracy can be achieved using the integrated 32 kHz oscillator and calibration register?
Using the factory-trimmed 32 kHz LSE oscillator and user-programmable calibration register (±100 ppm range), the RTC achieves ±2 ppm accuracy over –40 to +85 °C, as characterized in DS10668 Section 3.6 and Table 40 - eliminating need for external TCXO in most time-critical metering and logging applications.
STM32L031G4U6TR Specifications
- Product attributes
- Attribute value
- Manufacturer:
- STMicroelectronics
- Package/Case:
- 28-UFQFN
- Series:
- STM32L0
- Packaging:
- Tape & Reel (TR)
- Product Status:
- Active
- Programmable:
- Not Verified
- Core Processor:
- ARM® Cortex®-M0+
- Core Size:
- 32-Bit Single-Core
- Speed:
- 32MHz
- Connectivity:
- I2C, IrDA, LINbus, SPI, UART/USART
- Peripherals:
- Brown-out Detect/Reset, DMA, POR, PWM, WDT
- Number of I/O:
- 21
- Program Memory Size:
- 16KB (16K x 8)
- Program Memory Type:
- FLASH
- EEPROM Size:
- 1K x 8
- RAM Size:
- 8K x 8
- Voltage - Supply (Vcc/Vdd):
- 1.65V ~ 3.6V
- Data Converters:
- A/D 10x12b
- Oscillator Type:
- Internal
- Operating Temperature:
- -40°C ~ 85°C (TA)
- Grade:
- -
- Qualification:
- -
- Mounting Type:
- Surface Mount
- Supplier Device Package:
STM32L031G4U6TR FAQ
1.How can I place an order for STM32L031G4U6TR through Aetrix?
Please submit a Request for Quotation (RFQ) for STM32L031G4U6TR 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 STM32L031G4U6TR reliable?
The price and inventory of STM32L031G4U6TR are updated periodically and may fluctuate due to market conditions. Stock and pricing data are typically refreshed every 24 hours. Quotation validity for STM32L031G4U6TR is usually 5 days.
3.What payment methods are accepted for STM32L031G4U6TR?
We accept Wire Transfer, PayPal, Credit Card, Western Union, MoneyGram, and Escrow for STM32L031G4U6TR transactions.
Note: Certain payment methods may incur a processing fee.
4.How is shipping managed for STM32L031G4U6TR?
STM32L031G4U6TR orders can be shipped via leading logistics carriers, including DHL, UPS, FedEx, TNT, or Registered Mail.
Once your STM32L031G4U6TR 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 STM32L031G4U6TR?
For technical support, including STM32L031G4U6TR datasheets, pinout diagrams, or application guidance, please contact our engineering support team. They can provide detailed documentation and assistance for your STM32L031G4U6TR requirements.
6.How does Aetrix verify that STM32L031G4U6TR is sourced from the original manufacturer or authorized distributors?
All STM32L031G4U6TR 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 STM32L031G4U6TR meets industry standards.
7.What is the process for return or replacement of STM32L031G4U6TR?
All STM32L031G4U6TR units undergo pre-shipment inspection (PSI). If there is an issue with STM32L031G4U6TR, 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 STM32L031G4U6TR part is unused and in its original packaging.
Return procedure for STM32L031G4U6TR:
1.Submit a request within 90 days.
2.Obtain a Return Material Authorization (RMA) from Aetrix.
STM32L031G4U6TR 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…

