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

- Shipping:

Inventory:2,870
Please send an inquiry. Send us your inquiry, and we will respond immediately.
Product details
Overview
STM32L031G6U6 from STMicroelectronics is an ultra-low-power 32-bit Arm® Cortex®-M0+ microcontroller in UFQFPN28 (4×4 mm) package, featuring 32 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 metering endpoints.
For engineers reviewing the STM32L031G6U6 datasheet, STM32L031G6U6 pinout, STM32L031G6U6 application, or STM32L031G6U6 equivalent, key selection criteria include standby current (0.23 µA), RTC-enabled stop mode (0.6 µA), 5 µs Flash wakeup time, and 31 I/Os with 5V tolerance - critical for energy-constrained industrial and IoT edge devices.
Technical Context
The STM32L031G6U6 integrates a Cortex-M0+ core running up to 32 MHz with 0.95 DMIPS/MHz performance, supported by multiple clock sources: 16 MHz factory-trimmed HSI (±1%), 32 kHz LSE for RTC calibration, and PLL for CPU clock scaling. Its low-power architecture includes five operational modes (Run, Sleep, Low-power Run, Stop, Standby), each with distinct peripheral retention and wakeup latency profiles.
Memory subsystem includes ECC-protected Flash and EEPROM, 20-byte backup registers, and sector write protection. Analog peripherals are optimized for sub-2 V operation: ADC functions down to 1.65 V with 10-channel support, and two comparators with window mode and wake-up capability - enabling precise threshold monitoring without CPU intervention.
Key Specifications
| Parameter | Value and Actual Design Meaning |
|---|---|
| Core | Arm Cortex-M0+, 32 MHz max - delivers deterministic real-time control with minimal power overhead. |
| Flash / RAM / EEPROM | 32 KB Flash (ECC), 8 KB SRAM, 1 KB EEPROM (ECC) - enables robust firmware storage, data logging, and parameter retention across power cycles. |
| Supply Voltage | 1.65–3.6 V - supports direct Li-ion/Li-SOCl₂ battery operation without external regulators. |
| Standby Current | 0.23 µA with 2 wakeup pins - extends 10-year battery life in always-on sensor endpoints. |
| ADC Performance | 12-bit, 1.14 Msps, 10 channels, functional down to 1.65 V - captures high-fidelity analog signals in low-voltage battery-depleted states. |
| Wakeup Time | 5 µs from Flash - ensures rapid response to external events while maintaining ultra-low average power. |
| Operating Temp | –40 to +125 °C - qualified for industrial automation, smart utility meters, and automotive cabin sensors. |
Pinout & Package
STM32L031G6U6 uses the UFQFPN28 (4 × 4 mm, 0.5 mm pitch) package with 28 terminals, optimized for space-constrained PCB layouts in portable and embedded applications.
| Pin/Terminal | Circuit Role | Design Meaning |
|---|---|---|
| VDD | Main power supply | 1.65–3.6 V input; powers digital core, memories, and most peripherals. |
| VSS | Ground reference | Digital ground plane connection; must be low-impedance for ADC stability and EMI control. |
| NRST | Active-low reset input | Asynchronous reset trigger; internal pull-up enables standalone reset without external circuitry. |
| PA0–PA15 | General-purpose I/O | 31 total GPIOs (PA0–PA15, PB0–PB12, PC13–PC15); 31 pins 5V-tolerant for mixed-voltage interface resilience. |
| PA1 | ADC_IN1 / TIM2_CH2 | Analog input channel 1 or timer capture/compare signal - enables simultaneous sensing and timing-critical actuation. |
| PA4 | SPI1_NSS / USART2_CK | Hardware SPI slave select or USART synchronous clock - supports daisy-chained sensor networks or master-slave protocols. |
| PA13/PA14 | SWDIO/SWCLK | Serial Wire Debug interface - allows in-circuit programming and real-time debugging without dedicated JTAG pins. |
Key Features
| Feature | Design Value |
|---|---|
| Ultra-low-power Stop mode + RTC + 8 KB RAM retention | 0.6 µA - preserves full context including real-time clock and critical variables during extended sleep intervals. |
| Dual ultra-low-power comparators | Operate down to 1.65 V with window mode and wake-up capability - replace external comparator ICs and reduce BOM count in voltage-monitoring circuits. |
| Pre-programmed USART/SPI bootloader | Enables field firmware updates via UART or SPI without external programmer - simplifies OTA deployment and maintenance. |
| 7-channel DMA controller | Offloads ADC, SPI, I²C, USART, and timer data transfers - eliminates CPU polling and reduces active time in Run mode. |
| ECOPACK®2-compliant packaging | Meets RoHS and halogen-free requirements - supports compliance in EU, China, and global environmental regulations. |
Applications
| Smart Utility Metering | Wireless Sensor Node |
|---|---|
Use Scenario: Battery-powered gas/water meter with pulse counting, temperature compensation, and RF transmission. IC Role / Device Role / Timing Role: Main system controller managing metrology ADC sampling, RTC-based billing intervals, and low-power RF transceiver coordination. Use Value: 0.23 µA standby current and 5 µs wakeup enable >15-year battery life while meeting ANSI C12.22 and DLMS/COSEM protocol timing constraints. | Use Scenario: Industrial vibration monitor deployed on rotating machinery with MEMS accelerometer and BLE radio. IC Role / Device Role / Timing Role: Signal acquisition hub performing real-time FFT preprocessing, event-triggered wake-up, and timestamped packet assembly. Use Value: Dual comparators detect amplitude thresholds to initiate ADC capture and BLE transmission - eliminating continuous sampling and cutting average current by 87%. |
| Portable Medical Device | Asset Tracking Beacon |
Use Scenario: Handheld blood glucose meter with electrochemical sensor interface and LCD display. IC Role / Device Role / Timing Role: Sensor signal conditioner, EEPROM-based calibration storage, and USB/HID interface controller. Use Value: 1 KB EEPROM with ECC stores factory calibration coefficients and user history securely - ensuring regulatory traceability per ISO 13485. | Use Scenario: GPS-less indoor asset tracker using RSSI triangulation and motion-triggered reporting. IC Role / Device Role / Timing Role: Motion detection supervisor using LPTIM and GPIO interrupts, managing BLE advertising state and battery voltage monitoring. Use Value: 32 kHz RTC with calibration maintains ±1 ppm accuracy over temperature - enabling precise duty-cycling of BLE advertisements to extend CR2032 battery life to 3+ years. |
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 - lacks data retention capability. | Suitable for simpler sensor readout without persistent configuration storage. | Select when EEPROM is unnecessary and cost reduction outweighs future firmware scalability needs. |
| EFM32ZG108F16 | 16 KB Flash, 8 KB RAM, no EEPROM, 12-bit ADC (1 Msps), 0.5 µA deep sleep - lower Flash but higher ADC throughput. | Better for burst-sampling applications where RAM buffering replaces EEPROM logging. | Choose when high-speed analog capture dominates over long-term nonvolatile data storage. |
Compared with STM32L031G6U6, STM32L011K4T6 trades EEPROM and Flash capacity for lower unit cost, while EFM32ZG108F16 offers faster ADC sampling at the expense of programmable memory and ecosystem tooling maturity - making STM32L031G6U6 optimal for balanced, production-ready ultra-low-power designs requiring firmware extensibility and data integrity.
Availability
STM32L031G6U6 is available at Aetrix Electronics and suitable for smart metering, wireless sensor networks, portable medical devices, and asset tracking beacons requiring stable component supply across multi-year production cycles.
Supply support for STM32L031G6U6 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 components for industrial, automotive, and consumer markets.
The STM32L0 series targets ultra-low-power embedded applications demanding extended battery life, robust security features, and seamless integration with ST's CubeMX and HAL ecosystem - specifically engineered for IoT edge nodes and energy-harvesting systems.
FAQ
What is the maximum operating frequency and core type of the STM32L031G6U6?
The STM32L031G6U6 features an Arm Cortex-M0+ core with a maximum CPU frequency of 32 MHz. It delivers 0.95 DMIPS/MHz performance and supports dynamic voltage scaling to optimize power versus speed. The core includes a single-cycle multiplier, nested vectored interrupt controller (NVIC), and SysTick timer - all essential for deterministic real-time execution in resource-constrained environments.
Does the STM32L031G6U6 support hardware encryption or secure boot?
No, the STM32L031G6U6 does not integrate hardware cryptographic accelerators (AES, SHA, PKA) or secure boot functionality. It relies on software-based security measures and external secure elements for advanced authentication or encrypted firmware updates. For applications requiring built-in crypto, ST recommends the STM32L4 or STM32L5 series, which include AES-128/256 engines and secure ROM-based bootloaders.
How many I/O pins are 5V tolerant, and what is the maximum number usable simultaneously?
31 I/O pins (PA0–PA15, PB0–PB12, PC13–PC15) are 5V tolerant on the STM32L031G6U6. All 31 can be used simultaneously as general-purpose inputs/outputs, provided VDD remains within 1.65–3.6 V. This tolerance allows direct interfacing with legacy 5V logic, RS-232 level shifters, or industrial sensors without external voltage translators - reducing system complexity and bill-of-materials cost.
What debug interfaces are supported, and is SWD available on the UFQFPN28 package?
The STM32L031G6U6 supports Serial Wire Debug (SWD) only - no JTAG. On the UFQFPN28 package, SWD is implemented on pins PA13 (SWDIO) and PA14 (SWCLK), both accessible on the outer row of the 28-pin footprint. These pins are dedicated to debug and cannot be reassigned to other functions during active debugging, but may be reused as GPIO after debug initialization if SWD is disabled in software.
STM32L031G6U6 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:
- 32KB (32K 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:
STM32L031G6U6 FAQ
1.How can I place an order for STM32L031G6U6 through Aetrix?
Please submit a Request for Quotation (RFQ) for STM32L031G6U6 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 STM32L031G6U6 reliable?
The price and inventory of STM32L031G6U6 are updated periodically and may fluctuate due to market conditions. Stock and pricing data are typically refreshed every 24 hours. Quotation validity for STM32L031G6U6 is usually 5 days.
3.What payment methods are accepted for STM32L031G6U6?
We accept Wire Transfer, PayPal, Credit Card, Western Union, MoneyGram, and Escrow for STM32L031G6U6 transactions.
Note: Certain payment methods may incur a processing fee.
4.How is shipping managed for STM32L031G6U6?
STM32L031G6U6 orders can be shipped via leading logistics carriers, including DHL, UPS, FedEx, TNT, or Registered Mail.
Once your STM32L031G6U6 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 STM32L031G6U6?
For technical support, including STM32L031G6U6 datasheets, pinout diagrams, or application guidance, please contact our engineering support team. They can provide detailed documentation and assistance for your STM32L031G6U6 requirements.
6.How does Aetrix verify that STM32L031G6U6 is sourced from the original manufacturer or authorized distributors?
All STM32L031G6U6 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 STM32L031G6U6 meets industry standards.
7.What is the process for return or replacement of STM32L031G6U6?
All STM32L031G6U6 units undergo pre-shipment inspection (PSI). If there is an issue with STM32L031G6U6, 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 STM32L031G6U6 part is unused and in its original packaging.
Return procedure for STM32L031G6U6:
1.Submit a request within 90 days.
2.Obtain a Return Material Authorization (RMA) from Aetrix.
STM32L031G6U6 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…

