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

- Shipping:

Inventory:2,970
Please send an inquiry. Send us your inquiry, and we will respond immediately.
Product details
Overview
STM32L031G4U6 from STMicroelectronics is an ultra-low-power 32-bit Arm® Cortex®-M0+ microcontroller with 16 KB Flash, 8 KB SRAM, and 1 KB EEPROM; features 12-bit ADC (1.14 Msps), dual ultra-low-power comparators, and operates from 1.65 V to 3.6 V across –40 °C to 125 °C - deployed in battery-powered sensor nodes and smart metering endpoints.
For engineers reviewing the STM32L031G4U6 datasheet, STM32L031G4U6 pinout, STM32L031G4U6 application, or STM32L031G4U6 equivalent, key selection criteria include standby current (0.23 µA), RTC-enabled Stop mode (0.6 µA), 5 µs Flash wakeup, 31 5V-tolerant I/Os, and integrated ECC for Flash and EEPROM.
Technical Context
The STM32L031G4U6 implements a single-core Arm Cortex-M0+ running up to 32 MHz with 0.95 DMIPS/MHz performance and dynamic voltage scaling support. Its low-power architecture integrates five power modes - Run, Sleep, Low-power Run, Low-power Sleep, Stop, and Standby - each with distinct peripheral retention and wakeup source configurations.
Clock management includes multiple internal sources (HSI16 ±1%, LSI 37 kHz, MSI 65 kHz–4.2 MHz) and external options (1–25 MHz HSE, 32 kHz LSE), plus a PLL for CPU clock generation. Reset and supply supervision feature a 5-threshold BOR, POR/PDR, and programmable voltage detector (PVD).
Key Specifications
| Parameter | Value and Actual Design Meaning |
|---|---|
| Core | Arm Cortex-M0+, 32 MHz max - delivers deterministic real-time control with minimal power overhead. |
| Memory | 16 KB Flash (ECC), 8 KB SRAM, 1 KB EEPROM (ECC) - enables robust firmware storage and data logging without external memory. |
| ADC | 12-bit, 1.14 Msps, 10-channel - supports high-resolution analog sensing at sub-1 µs conversion intervals. |
| Low-power modes | 0.23 µA Standby (2 wakeup pins), 0.6 µA Stop + RTC + 8 KB RAM retention - extends coin-cell battery life to >10 years in periodic wake-up applications. |
| I/O count | 25 GPIOs (22 with 5V tolerance) - provides flexible signal routing while interfacing directly with legacy 5V peripherals. |
| Wakeup time | 5 µs from Flash - ensures rapid response to interrupts without sacrificing energy efficiency. |
| Operating range | 1.65 V to 3.6 V, –40 °C to 125 °C - qualified for industrial and extended-temperature embedded deployments. |
Pinout & Package
STM32L031G4U6 uses the UFQFPN28 (4 × 4 mm, 0.5 mm pitch) package with 28 terminals, optimized for space-constrained PCB layouts in wearables and IoT edge nodes.
| Pin/Terminal | Circuit Role | Design Meaning |
|---|---|---|
| VDD | Main power supply | 1.65–3.6 V core and I/O rail; decoupling required per datasheet layout guidelines. |
| VSS | Ground reference | Dedicated analog/digital ground pins ensure noise isolation for ADC and comparators. |
| NRST | Active-low reset input | Asynchronous reset with internal pull-up; accepts 1.65–3.6 V logic levels. |
| PA0–PA15 | General-purpose I/O | 22 pins support 5V-tolerant inputs; configurable as EXTI, timer channels, or analog inputs. |
| PA1, PA2, PA3 | USART2 TX/RX/CTS | Support ISO 7816 and IrDA protocols; enable secure element or smart card interface. |
| PA4–PA7 | SPI1 MOSI/MISO/SCK/NSS | Full-duplex SPI up to 16 Mbit/s; compatible with sensors and external Flash memory. |
| PA9, PA10 | USART1 TX/RX | Primary debug and host communication interface; SWD-compatible via PA13/PA14. |
| PA13, PA14 | SWDIO/SWCLK | Serial Wire Debug pins - enable non-intrusive programming and real-time tracing. |
Key Features
| Feature | Design Value |
|---|---|
| Ultra-low-power BOR | 5 selectable brownout thresholds (1.62–2.5 V) - prevents erratic operation during battery sag without external supervisor IC. |
| Integrated EEPROM | 1 KB with ECC and 100 k-cycle endurance - eliminates need for external serial EEPROM in parameter storage applications. |
| Temperature sensor | Calibrated ±1.5 °C accuracy over –40 to 125 °C - enables self-monitoring in thermal-critical environments. |
| Low-power timer (LPTIM) | 16-bit counter driven by ultra-low-frequency clocks (e.g., LSE) - sustains precise timing in Stop mode with <0.5 µA overhead. |
| Dual comparators | Window mode detection + wake-up capability down to 1.65 V - replaces discrete comparator circuits in battery voltage monitoring. |
Applications
| Smart Utility Metering | Wireless Sensor Node |
|---|---|
Use Scenario: Battery-powered gas/water meter with hourly pressure/temperature sampling and LoRaWAN transmission. IC Role / Device Role / Timing Role: Main controller managing ADC acquisition, RTC-triggered sleep/wake cycles, and SPI-driven radio module. Use Value: 0.23 µA Standby current and 5 µs wakeup enable >15-year battery life with minimal duty cycling overhead. | Use Scenario: Industrial vibration monitor mounted on rotating equipment, sampling accelerometer data every 5 seconds. IC Role / Device Role / Timing Role: Signal processor executing FFT-based anomaly detection in RAM, using LPTIM for precise interval timing. Use Value: 0.6 µA Stop mode + RTC + full RAM retention preserves context across long idle periods without data loss. |
| Medical Wearable Patch | Asset Tracking Beacon |
Use Scenario: ECG patch recording biopotential signals continuously for 72 hours on a single CR2032 cell. IC Role / Device Role / Timing Role: Analog front-end controller handling 12-bit ADC oversampling, digital filtering, and BLE packet assembly. Use Value: 12-bit ADC operating down to 1.65 V ensures signal fidelity even as battery voltage declines below 2.0 V. | Use Scenario: GPS-denied indoor asset tag reporting location via UWB or BLE angle-of-arrival every 30 minutes. IC Role / Device Role / Timing Role: System-on-chip managing motion-triggered wake-up, flash-based event logging, and low-power UART to UWB transceiver. Use Value: 31 5V-tolerant I/Os simplify integration with mixed-voltage sensor subsystems without level-shifter components. |
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, identical core/peripherals - smaller code footprint requirement. | Lacks 1 KB EEPROM; requires external nonvolatile storage for configuration parameters. | Select when application firmware fits ≤8 KB and EEPROM is not needed for field calibration or logging. |
| EFM32ZG222F32 | ARM Cortex-M0+, 32 KB Flash, 4 KB RAM, no integrated EEPROM - higher Flash density but no ECC protection. | Higher active current (114 µA/MHz vs 76 µA/MHz); lacks RTC-backed Stop mode retention. | Prefer only if larger Flash capacity outweighs power penalty and EEPROM dependency is eliminated. |
Compared with STM32L031G4U6, STM32L011K4T6 reduces cost and footprint but sacrifices EEPROM-based data resilience, while EFM32ZG222F32 trades verified low-power behavior for raw memory size - making STM32L031G4U6 optimal for battery-critical, data-integrity-sensitive designs.
Availability
STM32L031G4U6 is available at Aetrix Electronics and suitable for smart metering, wireless sensor networks, medical wearables, and asset tracking requiring stable component supply across multi-year production cycles.
Supply support for STM32L031G4U6 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 devices, sensors, and analog ICs for industrial, automotive, and consumer markets.
The STM32L0 series targets ultra-low-power embedded applications demanding extended battery life, robust memory integrity, and integrated analog functionality - optimized for IoT endpoints and energy-harvesting systems.
FAQ
What is the maximum operating frequency of the STM32L031G4U6?
The STM32L031G4U6 runs at up to 32 MHz using its internal HSI16 oscillator (±1% factory trim) or external crystal sources. Frequency scaling is supported via dynamic voltage scaling to maintain optimal power efficiency across performance tiers - validated across the full 1.65–3.6 V supply range and –40 to 125 °C temperature envelope.
Does STM32L031G4U6 support hardware encryption or secure boot?
No, the STM32L031G4U6 does not integrate hardware cryptographic accelerators or secure boot circuitry. It lacks AES, PKA, or TRNG modules found in higher-tier STM32L4/L5 devices. Security relies on software-based implementations or external secure elements - consistent with its positioning as a cost-optimized, ultra-low-power access-line MCU.
Can the internal 1 KB EEPROM be used for firmware over-the-air (OTA) updates?
Yes, the 1 KB EEPROM supports byte-level read/write and is rated for 100,000 write/erase cycles with data retention exceeding 20 years at 85 °C. It is commonly used to store OTA update metadata, version flags, and rollback counters - though full firmware images require external Flash due to size constraints.
Is SWD debugging supported on all package variants of STM32L031G4U6?
Yes, Serial Wire Debug (SWD) is fully supported on the UFQFPN28 package via dedicated PA13 (SWDIO) and PA14 (SWCLK) pins. These pins are not multiplexed with other critical functions in default reset state, ensuring reliable debug access without pin conflict - confirmed in DS10668 Rev 6 Section 4 "Pin descriptions".
STM32L031G4U6 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:
- 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.8V ~ 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:
STM32L031G4U6 FAQ
1.How can I place an order for STM32L031G4U6 through Aetrix?
Please submit a Request for Quotation (RFQ) for STM32L031G4U6 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 STM32L031G4U6 reliable?
The price and inventory of STM32L031G4U6 are updated periodically and may fluctuate due to market conditions. Stock and pricing data are typically refreshed every 24 hours. Quotation validity for STM32L031G4U6 is usually 5 days.
3.What payment methods are accepted for STM32L031G4U6?
We accept Wire Transfer, PayPal, Credit Card, Western Union, MoneyGram, and Escrow for STM32L031G4U6 transactions.
Note: Certain payment methods may incur a processing fee.
4.How is shipping managed for STM32L031G4U6?
STM32L031G4U6 orders can be shipped via leading logistics carriers, including DHL, UPS, FedEx, TNT, or Registered Mail.
Once your STM32L031G4U6 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 STM32L031G4U6?
For technical support, including STM32L031G4U6 datasheets, pinout diagrams, or application guidance, please contact our engineering support team. They can provide detailed documentation and assistance for your STM32L031G4U6 requirements.
6.How does Aetrix verify that STM32L031G4U6 is sourced from the original manufacturer or authorized distributors?
All STM32L031G4U6 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 STM32L031G4U6 meets industry standards.
7.What is the process for return or replacement of STM32L031G4U6?
All STM32L031G4U6 units undergo pre-shipment inspection (PSI). If there is an issue with STM32L031G4U6, 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 STM32L031G4U6 part is unused and in its original packaging.
Return procedure for STM32L031G4U6:
1.Submit a request within 90 days.
2.Obtain a Return Material Authorization (RMA) from Aetrix.
STM32L031G4U6 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…

