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

- Shipping:

Inventory:2,807
Please send an inquiry. Send us your inquiry, and we will respond immediately.
Product details
Overview
STM32L031G6U7S from STMicroelectronics is an ultra-low-power 32-bit Arm® Cortex®-M0+ microcontroller in UFQFPN28 (4×4 mm) package, featuring 32 KB Flash with ECC, 8 KB SRAM, 1 KB EEPROM, 12-bit ADC (1.14 Msps, 10 channels), 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.
For engineers reviewing the STM32L031G6U7S datasheet, STM32L031G6U7S pinout, STM32L031G6U7S application, or STM32L031G6U7S equivalent, key selection criteria include standby current (0.23 µA), RTC-enabled stop mode (0.6 µA with 8 KB RAM retention), 5 µs Flash wakeup time, and 31 I/Os with 5V tolerance - critical for energy-constrained industrial and metering designs.
Technical Context
The STM32L031G6U7S integrates a Cortex-M0+ core running up to 32 MHz with dynamic voltage scaling, supported by multiple clock sources: 1–25 MHz HSE, 32 kHz LSE for RTC, 16 MHz factory-trimmed HSI, and multispeed MSI (65 kHz–4.2 MHz). Its low-power architecture enables five operational modes - Run, Sleep, Low-power Run, Stop, and Standby - each with distinct power/performance trade-offs verified per DS10668 Rev 6.
Peripheral interconnect is managed via an AHB/APB matrix supporting concurrent DMA transfers to ADC, USART, SPI, I²C, and timers. The device includes a CRC calculation unit, 96-bit unique ID, and serial wire debug (SW-DP), with all packages compliant to ECOPACK®2 environmental standards.
Key Specifications
| Parameter | Value and Actual Design Meaning |
|---|---|
| Core | Arm Cortex-M0+, 32 MHz max - delivers 0.95 DMIPS/MHz for deterministic real-time control in compact firmware footprints. |
| Memory | 32 KB Flash (ECC-protected), 8 KB SRAM, 1 KB EEPROM (ECC-protected) - ensures data integrity in field-deployed devices with frequent write cycles. |
| Power Consumption | 0.23 µA Standby (2 wakeup pins), 0.6 µA Stop + RTC + 8 KB RAM retention - enables multi-year operation on coin-cell batteries. |
| Analog Peripherals | 12-bit ADC (1.14 Msps, 10 channels, down to 1.65 V), 2x ultra-low-power comparators (wake-up capable) - supports precision sensing without external signal conditioning. |
| Timers & Watchdogs | 8 timers including 1x 16-bit with 4 channels, 1x ultra-low-power LPTIM, RTC, SysTick, and dual watchdogs (IWDG + WWDG) - enables robust timing, event scheduling, and system safety monitoring. |
| I/O & Interfaces | Up to 38 fast I/Os (31 5V-tolerant), 1x USART (ISO 7816/IrDA), 1x LPUART, 2x SPI (up to 16 Mbit/s), 1x I²C (SMBus/PMBus) - provides flexible connectivity for sensor fusion and secure peripheral communication. |
Pinout & Package
STM32L031G6U7S is housed in a 28-pin UFQFPN (4×4 mm, 0.5 mm pitch) package with exposed thermal pad. This compact, lead-free, ECOPACK®2-compliant 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.65–3.6 V) | Primary analog/digital rail; requires local decoupling for stable low-power operation. |
| VSS | Ground reference | Dedicated digital ground plane connection; must be tied to thermal pad for optimal EMI performance. |
| NRST | Active-low reset input | Asynchronous reset pin with internal pull-up; accepts external push-button or supervisor IC assertion. |
| PA0–PA15 | General-purpose I/Os | Configurable as GPIO, ADC inputs, timer channels, or alternate functions (e.g., USART TX/RX); PA0–PA7 support wakeup capability. |
| PC13–PC15 | Low-power oscillator pins | Connect 32.768 kHz crystal for RTC calibration and precise timekeeping in Stop/Standby modes. |
Key Features
| Feature | Design Value |
|---|---|
| Ultra-low-power BOR | 5 selectable brownout thresholds ensure reliable reset behavior across varying battery discharge profiles. |
| Programmable voltage detector (PVD) | Monitors VDD in real time and triggers interrupt or reset before critical undervoltage conditions occur. |
| Pre-programmed bootloader | Enables field firmware updates via USART or SPI without external programmer - reduces manufacturing and service costs. |
| Embedded ECC | Hardware-accelerated error correction on Flash and EEPROM prevents silent data corruption in long-life deployments. |
| Serial wire debug (SW-DP) | Single-pin debug interface supports full SWD protocol for non-intrusive code development and runtime diagnostics. |
Applications
| Smart Utility Metering | Wireless Sensor Node |
|---|---|
Use Scenario: Battery-powered electricity/water/gas meter with hourly pulse counting, temperature compensation, and RF transmission. IC Role / Device Role / Timing Role: Main controller executing metrology algorithms, managing RTC-corrected timestamps, and coordinating low-duty-cycle RF bursts. Use Value: 0.6 µA Stop+RTC mode extends 10-year battery life; 12-bit ADC directly digitizes shunt-based current measurements without external amplifiers. | Use Scenario: Environmental monitoring node (temperature/humidity/pressure) transmitting data every 5 minutes via BLE or LoRaWAN. IC Role / Device Role / Timing Role: System-on-chip host managing sensor polling, data preprocessing, and ultra-low-power sleep/wakeup scheduling. Use Value: Dual comparators enable wake-on-event (e.g., threshold breach) with sub-µA quiescent current; 5 µs Flash wakeup minimizes active time per measurement cycle. |
| Industrial Asset Tracker | Medical Wearable Monitor |
Use Scenario: GPS-enabled logistics tracker logging location and shock events, reporting only on movement or geofence breach. IC Role / Device Role / Timing Role: Central coordinator interfacing with GPS module, accelerometer, and cellular modem; manages power sequencing and state retention. Use Value: 31 5V-tolerant I/Os simplify interface to legacy sensors; 96-bit unique ID enables secure device authentication in cloud fleet management platforms. | Use Scenario: Continuous ECG/PPG patch collecting biometric data, detecting arrhythmias, and alerting via Bluetooth. IC Role / Device Role / Timing Role: Real-time signal processor running adaptive filtering and peak detection algorithms while maintaining strict power budgets. Use Value: 8 KB SRAM allows double-buffered acquisition and processing; ultra-low-power comparators implement hardware-level R-peak detection to offload CPU. |
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 UFQFPN32 package but fewer I/Os (25 vs 28) | Lacks EEPROM and RTC backup register - unsuitable for applications requiring persistent configuration storage across deep sleep. | Select when cost sensitivity outweighs EEPROM need and memory footprint fits within 16 KB Flash. |
| STM32L051K8U6 | 64 KB Flash, 8 KB SRAM, 2 KB EEPROM, adds USB 2.0 FS interface and more timers | Higher pin count (32-pin UFQFPN), larger die size, and USB PHY increase BOM cost and layout complexity. | Choose when future firmware scalability or USB-based provisioning is required, accepting higher power in active mode. |
Compared with STM32L011K4T6, the STM32L031G6U7S offers essential EEPROM and RTC retention for field-updatable metering logic; versus STM32L051K8U6, it delivers identical low-power performance at lower cost and smaller footprint where USB is unnecessary.
Availability
STM32L031G6U7S is available at Aetrix Electronics and suitable for smart utility metering, wireless sensor nodes, industrial asset tracking, and medical wearable monitors requiring stable component supply over extended production lifecycles.
Supply support for STM32L031G6U7S 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 series targets ultra-low-power embedded applications demanding multi-year battery life, robust security features, and seamless integration of analog peripherals - optimized for metering, sensing, and portable medical devices.
FAQ
What is the maximum operating frequency and core type of the STM32L031G6U7S?
The STM32L031G6U7S uses an Arm Cortex-M0+ core with a maximum CPU frequency of 32 MHz. It achieves 0.95 DMIPS/MHz and supports dynamic voltage scaling to optimize performance versus power consumption. The core includes a single-cycle multiplier and hardware divider, enabling efficient execution of control algorithms in resource-constrained environments.
Does the STM32L031G6U7S support hardware encryption or secure boot features?
No, the STM32L031G6U7S does not integrate hardware cryptographic accelerators or secure boot functionality. It lacks AES, RSA, or hash engines, and its bootloader supports only basic UART/SPI firmware updates without signature verification. For secure firmware deployment, external secure elements or software-based signing with trusted execution in SRAM are required.
Can the STM32L031G6U7S operate reliably at 125 °C ambient temperature?
Yes, the STM32L031G6U7S is fully specified for operation from –40 to +125 °C ambient temperature, validated per DS10668 Rev 6. All electrical characteristics - including Flash programming, ADC accuracy, and oscillator stability - are guaranteed across this range when used with appropriate PCB thermal design and voltage regulation.
How many I/O pins support 5V tolerance, and which ones are they?
The STM32L031G6U7S has 31 5V-tolerant I/Os, covering all GPIO pins except those dedicated to analog functions (e.g., VREF+, VREF–, VBAT) and oscillator inputs (PC14, PC15). Tolerance applies when VDD is powered (1.65–3.6 V); these pins safely interface with 5V peripherals without level shifters in mixed-voltage systems.
STM32L031G6U7S Specifications
- Product attributes
- Attribute value
- Manufacturer:
- STMicroelectronics
- Package/Case:
- 28-UFQFN
- Series:
- STM32L0
- Packaging:
- Tray
- 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:
- 23
- 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:
STM32L031G6U7S FAQ
1.How can I place an order for STM32L031G6U7S through Aetrix?
Please submit a Request for Quotation (RFQ) for STM32L031G6U7S 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 STM32L031G6U7S reliable?
The price and inventory of STM32L031G6U7S are updated periodically and may fluctuate due to market conditions. Stock and pricing data are typically refreshed every 24 hours. Quotation validity for STM32L031G6U7S is usually 5 days.
3.What payment methods are accepted for STM32L031G6U7S?
We accept Wire Transfer, PayPal, Credit Card, Western Union, MoneyGram, and Escrow for STM32L031G6U7S transactions.
Note: Certain payment methods may incur a processing fee.
4.How is shipping managed for STM32L031G6U7S?
STM32L031G6U7S orders can be shipped via leading logistics carriers, including DHL, UPS, FedEx, TNT, or Registered Mail.
Once your STM32L031G6U7S 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 STM32L031G6U7S?
For technical support, including STM32L031G6U7S datasheets, pinout diagrams, or application guidance, please contact our engineering support team. They can provide detailed documentation and assistance for your STM32L031G6U7S requirements.
6.How does Aetrix verify that STM32L031G6U7S is sourced from the original manufacturer or authorized distributors?
All STM32L031G6U7S 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 STM32L031G6U7S meets industry standards.
7.What is the process for return or replacement of STM32L031G6U7S?
All STM32L031G6U7S units undergo pre-shipment inspection (PSI). If there is an issue with STM32L031G6U7S, 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 STM32L031G6U7S part is unused and in its original packaging.
Return procedure for STM32L031G6U7S:
1.Submit a request within 90 days.
2.Obtain a Return Material Authorization (RMA) from Aetrix.
STM32L031G6U7S 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…

