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

- Shipping:

Inventory:3,319
Please send an inquiry. Send us your inquiry, and we will respond immediately.
Product details
Overview
STM32L031G6U7TR from STMicroelectronics is an ultra-low-power 32-bit Arm® Cortex®-M0+ microcontroller with 32 KB Flash, 8 KB SRAM, 1 KB EEPROM, 12-bit ADC (1.14 Msps), and operating voltage range of 1.65–3.6 V. It delivers 0.95 DMIPS/MHz performance at up to 32 MHz and supports -40 to +125 °C industrial temperature operation. Designed for battery-powered sensor nodes and smart meters, it integrates dual ultra-low-power comparators, RTC with calibration, and SW-DP debug.
For engineers reviewing the STM32L031G6U7TR datasheet, STM32L031G6U7TR pinout, STM32L031G6U7TR application, or STM32L031G6U7TR equivalent, key selection criteria include standby current (0.23 µA), Stop mode + RTC + RAM retention (0.6 µA), 5 µs Flash wakeup time, and 31 I/Os with 5V tolerance - all critical for energy-constrained embedded designs.
Technical Context
The device implements a hierarchical low-power architecture with six operational modes (Run, Sleep, Low-power Run, Low-power Sleep, Stop, Standby), where Stop mode retains RTC and 8 KB RAM at 0.6 µA. Its clock system combines multiple internal oscillators (HSI16, LSI, MSI) and external sources (1–25 MHz HSE, 32 kHz LSE), enabling dynamic voltage scaling and precise timing control.
Core peripherals include a 7-channel DMA controller servicing ADC, SPI, I²C, USART, and timers; dual ultra-low-power comparators with window mode and wake-up capability down to 1.65 V; and a 12-bit ADC with up to 10 channels and 1.14 Msps sampling rate - all operating across the full supply and temperature range.
Key Specifications
| Parameter | Value and Actual Design Meaning |
|---|---|
| Core | Arm Cortex-M0+, 32 MHz max, 0.95 DMIPS/MHz - enables deterministic real-time control in compact firmware footprints. |
| Memory | 32 KB Flash with ECC, 8 KB SRAM, 1 KB EEPROM with ECC - supports robust firmware storage, runtime data buffering, and nonvolatile parameter retention. |
| Power Consumption | 0.23 µA Standby (2 wakeup pins), 0.6 µA Stop + RTC + 8 KB RAM - extends battery life in intermittent-sensing applications beyond 10 years. |
| ADC | 12-bit, 1.14 Msps, 10-channel, 1.65 V min supply - allows high-resolution analog sensing without external signal conditioning in low-voltage systems. |
| Comparators | 2x ultra-low-power comparators with wake-up capability and window mode - enables autonomous threshold monitoring with sub-µA active current. |
| Timers | 8x timers including 1x 16-bit with 4 channels, 1x ultra-low-power LPTIM, RTC, SysTick, and dual watchdogs - supports precise timing, power-gated scheduling, and safety-critical supervision. |
| I/O | 31 GPIOs (5V tolerant), 38 fast I/Os total - simplifies interface to legacy 5V peripherals and reduces level-shifter count in mixed-voltage designs. |
Pinout & Package
STM32L031G6U7TR is housed in a UFQFPN28 (4 × 4 mm, 0.5 mm pitch) package with 28 terminals. This compact, lead-free ECOPACK®2-compliant package supports high-density PCB layouts and reflow-compatible assembly.
| Pin/Terminal | Circuit Role | Design Meaning |
|---|---|---|
| VDD | Main power supply | 1.65–3.6 V core and I/O supply; decoupling required per datasheet layout guidelines. |
| VSS | Ground reference | Dedicated analog/digital ground plane connection point for noise-sensitive operation. |
| NRST | Active-low reset input | Asynchronous reset with internal pull-up; supports external reset button or supervisor IC integration. |
| PA0–PA15 | General-purpose I/O | Configurable as digital I/O, alternate functions (USART, SPI, etc.), or analog inputs; PA0–PA7 support EXTI wake-up. |
| PA13/PA14 | SWD debug interface | Serial Wire Debug (SW-DP) clock and data lines - enables in-circuit programming and real-time debugging without JTAG overhead. |
| PA15 | JTDI / SPI1_NSS | Alternate function for SPI slave select or JTAG test data input - selectable via SYSCFG register. |
| VBAT | RTC backup supply | Connects to coin cell or supercapacitor to maintain RTC and 20-byte backup registers during main power loss. |
Key Features
| Feature | Design Value |
|---|---|
| Ultra-low-power BOR | 5 selectable brownout thresholds ensure reliable reset across varying battery discharge curves without external supervisors. |
| Programmable voltage detector | PVD monitors VDD in real time and triggers interrupt or reset - enables adaptive power management and low-battery warnings. |
| Pre-programmed bootloader | Factory-loaded USART/SPI bootloader allows field firmware updates without debug probe - reduces production and service costs. |
| Internal multispeed RC | MSI oscillator (65 kHz–4.2 MHz) provides flexible clock source for low-power modes without external crystal - cuts BOM cost and board space. |
| ECC memory protection | Flash and EEPROM include error-correcting code - prevents silent data corruption in long-life industrial deployments. |
Applications
| Smart Utility Metering | Wireless Sensor Node |
|---|---|
Use Scenario: Battery-powered gas/water meter with pulse counting, temperature compensation, and RF telemetry. IC Role / Device Role / Timing Role: Main controller executing metrology algorithms, managing RTC-based billing cycles, and coordinating low-duty-cycle RF transmission. Use Value: 0.23 µA Standby current and 5 µs wakeup enable >15-year battery life while maintaining accurate timekeeping and rapid response to flow events. | Use Scenario: Environmental monitoring node measuring temperature, humidity, and CO₂ using I²C sensors and transmitting via BLE/LPWAN. IC Role / Device Role / Timing Role: Central host managing sensor polling, ADC conversions, data preprocessing, and sleep/wake scheduling via LPTIM. Use Value: Dual ultra-low-power comparators monitor sensor alert lines autonomously; 0.6 µA Stop mode + RTC preserves timebase and RAM state between hourly readings. |
| Industrial Control Panel | Portable Medical Device |
Use Scenario: Touch-enabled HMI for PLC peripheral with LED indicators, pushbutton inputs, and serial communication to master controller. IC Role / Device Role / Timing Role: Dedicated UI processor handling capacitive touch scanning, LED PWM dimming, and UART protocol translation. Use Value: 31 5V-tolerant I/Os directly interface to legacy panel components; 12-bit ADC reads potentiometer position with <1 LSB INL error. | Use Scenario: Handheld blood glucose meter with electrochemical strip interface, LCD display, and USB charging detection. IC Role / Device Role / Timing Role: System-on-chip managing analog front-end biasing, strip insertion detection (comparator), strip measurement sequencing, and USB enumeration. Use Value: 1 KB EEPROM stores calibration coefficients and usage logs with ECC; 1.65 V ADC operation supports single-cell Li-ion (2.7–4.2 V) with buck converter output. |
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 | 16 KB Flash, 2 KB SRAM, no EEPROM, same core/peripherals but reduced memory and no data EEPROM. | Suitable for simpler sensor endpoints where firmware size and nonvolatile storage are constrained. | Select when BOM cost reduction is prioritized over field-upgradeable calibration storage. |
| STM32L053R8T6 | 64 KB Flash, 8 KB SRAM, 2 KB EEPROM, adds USB 2.0 FS device, removes LPUART, larger LQFP64 package. | Better suited for USB-connected diagnostics tools or gateways requiring host interface and larger code space. | Choose when USB connectivity and extended Flash are required, accepting higher power and package footprint. |
Compared with STM32L011K4T6, STM32L031G6U7TR provides double Flash, full EEPROM, and identical ultra-low-power specs - making it optimal for field-calibratable devices. Versus STM32L053R8T6, it trades USB for smaller size and lower static current, targeting space- and energy-constrained edge nodes.
Availability
STM32L031G6U7TR is available at Aetrix Electronics and suitable for smart utility metering, wireless sensor nodes, industrial control panels, and portable medical devices requiring stable component supply across multi-year production cycles.
Supply support for STM32L031G6U7TR 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 STM32L0 Access line targets ultra-low-power embedded applications demanding extended battery life, robust memory integrity, and seamless integration of analog and digital peripherals - optimized for cost-sensitive, high-volume IoT endpoints.
FAQ
What is the maximum operating frequency and associated power consumption in Run mode?
The STM32L031G6U7TR operates up to 32 MHz with dynamic voltage scaling. At 32 MHz and 3.3 V, typical Run mode current is 76 µA/MHz (2.43 mA total). With code executing from Flash and minimal peripheral activity, measured current is 2.3 mA - verified per DS10668 Rev 6 Table 24.
Does this MCU support hardware encryption or secure boot features?
No. The STM32L031G6U7TR does not integrate hardware cryptographic accelerators (AES, SHA, PKA) or secure boot ROM. Security relies on software-implemented algorithms and external secure elements. For certified secure boot, ST recommends STM32L5 or STM32H5 series MCUs.
Can the internal 32 kHz LSE oscillator be calibrated, and what accuracy is achievable?
Yes. The LSE oscillator supports RTC calibration via the RTC_CALIBR register, allowing ±512 ppm adjustment in steps of ±0.95 ppm. With factory-trimmed LSE and calibration, typical accuracy is ±10 ppm over -40 to +85 °C - sufficient for metering-grade timekeeping without external TCXO.
What debug interfaces are supported, and is SWD accessible in all low-power modes?
Only Serial Wire Debug (SW-DP) is supported via PA13 (SWDIO) and PA14 (SWCLK); JTAG is not implemented. SWD remains accessible in Run, Sleep, and Low-power Run modes but is disabled in Stop and Standby - debug session must be halted before entering those modes per RM0377 Section 39.4.
STM32L031G6U7TR 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:
- 32KB (32K 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 ~ 105°C (TA)
- Grade:
- -
- Qualification:
- -
- Mounting Type:
- Surface Mount
- Supplier Device Package:
STM32L031G6U7TR FAQ
1.How can I place an order for STM32L031G6U7TR through Aetrix?
Please submit a Request for Quotation (RFQ) for STM32L031G6U7TR 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 STM32L031G6U7TR reliable?
The price and inventory of STM32L031G6U7TR are updated periodically and may fluctuate due to market conditions. Stock and pricing data are typically refreshed every 24 hours. Quotation validity for STM32L031G6U7TR is usually 5 days.
3.What payment methods are accepted for STM32L031G6U7TR?
We accept Wire Transfer, PayPal, Credit Card, Western Union, MoneyGram, and Escrow for STM32L031G6U7TR transactions.
Note: Certain payment methods may incur a processing fee.
4.How is shipping managed for STM32L031G6U7TR?
STM32L031G6U7TR orders can be shipped via leading logistics carriers, including DHL, UPS, FedEx, TNT, or Registered Mail.
Once your STM32L031G6U7TR 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 STM32L031G6U7TR?
For technical support, including STM32L031G6U7TR datasheets, pinout diagrams, or application guidance, please contact our engineering support team. They can provide detailed documentation and assistance for your STM32L031G6U7TR requirements.
6.How does Aetrix verify that STM32L031G6U7TR is sourced from the original manufacturer or authorized distributors?
All STM32L031G6U7TR 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 STM32L031G6U7TR meets industry standards.
7.What is the process for return or replacement of STM32L031G6U7TR?
All STM32L031G6U7TR units undergo pre-shipment inspection (PSI). If there is an issue with STM32L031G6U7TR, 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 STM32L031G6U7TR part is unused and in its original packaging.
Return procedure for STM32L031G6U7TR:
1.Submit a request within 90 days.
2.Obtain a Return Material Authorization (RMA) from Aetrix.
STM32L031G6U7TR 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…

