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

- Shipping:

Inventory:2,455
Please send an inquiry. Send us your inquiry, and we will respond immediately.
Product details
Overview
STM32L031G6U3 from STMicroelectronics is an ultra-low-power 32-bit Arm® Cortex®-M0+ microcontroller in a 28-pin UFQFPN (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 delivers 76 µA/MHz in Run mode - ideal for battery-powered sensor nodes and smart metering endpoints.
For engineers reviewing the STM32L031G6U3 datasheet, STM32L031G6U3 pinout, STM32L031G6U3 application, or STM32L031G6U3 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 - all critical for energy-constrained embedded designs requiring long-term autonomy and robust peripheral integration.
Technical Context
The STM32L031G6U3 integrates a Cortex-M0+ core running up to 32 MHz with dynamic voltage scaling, supported by multiple clock sources: 16 MHz factory-trimmed HSI (±1%), 32 kHz LSE for RTC calibration, and PLL for CPU clock generation. Its low-power architecture includes five operational modes - Run, Sleep, Low-power Run, Stop, and Standby - each with distinct power/performance trade-offs validated down to 1.65 V supply.
Peripheral interconnect is managed via an AHB/APB matrix supporting concurrent DMA transfers (7-channel controller) to ADC, USART, SPI, I2C, and timers. Analog subsystem includes two independent comparators with window mode and wake-up capability, plus temperature sensor and internal voltage reference (VREFINT) - all functional at minimum supply voltage.
Key Specifications
| Parameter | Value and Actual Design Meaning |
|---|---|
| Core | Arm Cortex-M0+, 32 MHz max - enables deterministic real-time control with <1-cycle branch penalty and Thumb-2 instruction set. |
| Memory | 32 KB Flash (ECC-protected), 8 KB SRAM, 1 KB EEPROM (ECC-protected) - supports firmware updates and data logging with error resilience. |
| Power Consumption | 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 intermittent-sensing applications. |
| ADC | 12-bit, 1.14 Msps, 10 channels, min. 1.65 V operation - captures high-fidelity analog signals (e.g., thermistor, battery voltage) without external regulators. |
| Timers | 8x timers including 1x 16-bit with 4 channels, 1x ultra-low-power LPTIM, RTC, SysTick, and 2 watchdogs - enables precise timing, pulse generation, and safety-critical timeout monitoring. |
| 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 systems. |
| Clock Sources | HSI16 (±1%), LSE (32 kHz RTC), MSI (65 kHz–4.2 MHz), PLL - eliminates need for external crystals in cost-sensitive designs while maintaining RTC accuracy. |
Pinout & Package
STM32L031G6U3 uses a 28-pin Ultra-Fine Pitch Quad Flat No-lead (UFQFPN) package measuring 4 × 4 mm with 0.5 mm pitch. The package is RoHS-compliant and ECOPACK®2 certified, optimized for space-constrained PCB layouts and automated assembly.
| Pin/Terminal | Circuit Role | Design Meaning |
|---|---|---|
| VDD | Main power supply | 1.65–3.6 V input; powers digital core, memories, and most peripherals - requires local 100 nF decoupling. |
| VSS | Ground reference | Digital ground plane connection; must be low-impedance and tied to analog ground at single point near VREF+. |
| NRST | Active-low reset input | Asynchronous reset trigger; internal pull-up enables standalone operation without external reset IC. |
| PA0–PA15 | General-purpose I/O | Configurable as GPIO, ADC inputs, timer channels, or communication alternate functions - PA0 supports wake-up from Stop/Standby. |
| PC13–PC15 | RTC-related I/O | PC14/PC15 accept 32.768 kHz crystal; PC13 drives RTC backup domain - enables calendar/timekeeping with battery backup. |
| VREF+ | Analog reference input | Optional external reference for ADC; if unconnected, internal VREFINT (1.22 V ±3%) is used - ensures stable conversion across voltage/temp range. |
| VBAT | Battery backup supply | Provides power to RTC and 20-byte backup registers during main power loss - accepts 1.65–3.6 V coin cell or supercap. |
Key Features
| Feature | Design Value |
|---|---|
| Ultra-low-power BOR | 5 selectable brownout thresholds (1.6–2.8 V) - prevents erratic operation during battery sag without external supervisor IC. |
| Pre-programmed bootloader | Supports USART and SPI firmware updates - enables field reprogramming without debug probe, reducing service costs. |
| Serial wire debug (SW-DP) | 2-pin debug interface with full SWD protocol support - allows non-intrusive real-time tracing and breakpoint debugging in low-power modes. |
| ECC memory protection | Hardware ECC on Flash and EEPROM - detects/corrects single-bit errors and detects double-bit errors, enhancing firmware/data integrity in harsh environments. |
| 5V-tolerant I/Os | 31 pins withstand 5.5 V regardless of VDD - eliminates level shifters when interfacing with 5V sensors, displays, or logic families. |
Applications
| Smart Utility Metering | Wireless Sensor Node |
|---|---|
Use Scenario: Battery-powered gas/water meter with hourly pressure/temperature sampling and LoRaWAN transmission every 12 hours. IC Role / Device Role / Timing Role: Main system controller managing ADC acquisition, RTC-triggered sleep/wake cycles, LPUART for modem interface, and CRC-secured firmware updates. Use Value: 0.23 µA Standby current extends AA battery life beyond 15 years; 5 µs wakeup ensures rapid response to tamper interrupts without missing sensor events. | Use Scenario: Indoor air quality monitor using CO₂, VOC, and humidity sensors, transmitting data via BLE to gateway every 5 minutes. IC Role / Device Role / Timing Role: Central data aggregator executing sensor fusion algorithms, driving I²C sensor reads, and managing BLE stack timing via LPTIM and RTC alarms. Use Value: Dual comparators enable hardware-based threshold detection (e.g., smoke alarm trigger), waking CPU only on event - cutting average current to <1 µA. |
| Industrial Predictive Maintenance | Medical Wearable Patch |
Use Scenario: Vibration sensor node on motor housing capturing accelerometer waveforms, performing FFT edge inference, and alerting via RS-485 on anomaly detection. IC Role / Device Role / Timing Role: Real-time signal processor running fixed-point FFT on 8 KB SRAM, synchronizing ADC sampling with timer triggers, and managing UART-to-RS485 transceiver enable timing. Use Value: 76 µA/MHz efficiency allows 32 MHz processing bursts within thermal/power budget; 1 KB EEPROM stores calibration coefficients and fault logs with ECC protection. | Use Scenario: Disposable ECG patch recording heart rate and R-R intervals for 7-day continuous monitoring on single CR2032 cell. IC Role / Device Role / Timing Role: Biopotential front-end controller acquiring from instrumentation amplifier, filtering via digital FIR in SRAM, and storing encrypted data in EEPROM before Bluetooth upload. Use Value: 0.6 µA Stop mode + RTC + full RAM retention preserves context across sleep intervals; 125 °C rating validates reliability under skin-contact thermal stress. |
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 28-pin UFQFPN package | Lacks EEPROM and reduced RAM limits firmware complexity and data logging depth | Select when application requires minimal code footprint and no persistent non-volatile data storage. |
| STM32L051K8U6 | 64 KB Flash, 8 KB SRAM, 2 KB EEPROM, same pinout but 32-pin UFQFPN | Higher memory capacity and additional peripherals (e.g., USB, more timers) require PCB redesign | Choose for future-proofing or when migrating to feature-rich firmware with USB CDC or enhanced crypto acceleration. |
Compared with STM32L011K4T6, the STM32L031G6U3 adds EEPROM and doubles Flash for secure OTA updates; versus STM32L051K8U6, it trades package size and memory for lower BOM cost and smaller board area - making it optimal for compact, cost-sensitive, long-life battery devices.
Availability
STM32L031G6U3 is available at Aetrix Electronics and suitable for smart metering, wireless sensor networks, industrial predictive maintenance, and medical wearable patches requiring stable component supply across extended product lifecycles.
Supply support for STM32L031G6U3 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 series targets ultra-low-power embedded applications, emphasizing energy efficiency, security, and integration for battery-operated IoT endpoints - with the L031 variant optimized for cost-sensitive, space-constrained designs needing robust analog peripherals and ECC memory.
FAQ
What is the maximum operating frequency of the STM32L031G6U3, and how is it achieved?
The STM32L031G6U3 achieves a maximum CPU frequency of 32 MHz using its internal 16 MHz HSI oscillator multiplied by the integrated PLL. Dynamic voltage scaling adjusts the core voltage based on frequency, enabling full-speed operation down to 1.65 V supply. External crystal oscillators (up to 25 MHz) may also feed the PLL for higher precision timing.
Does the STM32L031G6U3 support hardware encryption or secure boot features?
No, the STM32L031G6U3 does not include hardware cryptographic accelerators (AES, SHA, PKA) or secure boot ROM. It relies on software-based encryption libraries and standard flash write protection mechanisms. For secure firmware updates, developers must implement authenticated bootloaders using external secure elements or leverage ST's STM32L07x/L08x series which integrate AES-128 and public-key acceleration.
Can the STM32L031G6U3 drive an external 32.768 kHz crystal for RTC accuracy?
Yes, the STM32L031G6U3 supports external 32.768 kHz crystals connected to PC14 (OSC32_IN) and PC15 (OSC32_OUT) pins. The LSE oscillator circuit includes automatic gain control and calibration registers to compensate for crystal aging and temperature drift, achieving ±20 ppm accuracy over –40 to +85 °C when paired with a suitable crystal and load capacitors.
How many I/O pins support wake-up from Stop or Standby mode?
The STM32L031G6U3 supports wake-up from Stop mode on up to 16 lines (all GPIOs configurable as EXTI sources), and from Standby mode on 2 dedicated pins (PA0 and PC13). Wake-up latency is 5 µs from Flash and sub-10 µs from SRAM, verified per DS10668 Rev 6 Section 6.3.36, enabling rapid response to external events without sacrificing ultra-low-power sleep states.
STM32L031G6U3 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.8V ~ 3.6V
- Data Converters:
- A/D 10x12b
- Oscillator Type:
- Internal
- Operating Temperature:
- -40°C ~ 125°C (TA)
- Grade:
- -
- Qualification:
- -
- Mounting Type:
- Surface Mount
- Supplier Device Package:
STM32L031G6U3 FAQ
1.How can I place an order for STM32L031G6U3 through Aetrix?
Please submit a Request for Quotation (RFQ) for STM32L031G6U3 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 STM32L031G6U3 reliable?
The price and inventory of STM32L031G6U3 are updated periodically and may fluctuate due to market conditions. Stock and pricing data are typically refreshed every 24 hours. Quotation validity for STM32L031G6U3 is usually 5 days.
3.What payment methods are accepted for STM32L031G6U3?
We accept Wire Transfer, PayPal, Credit Card, Western Union, MoneyGram, and Escrow for STM32L031G6U3 transactions.
Note: Certain payment methods may incur a processing fee.
4.How is shipping managed for STM32L031G6U3?
STM32L031G6U3 orders can be shipped via leading logistics carriers, including DHL, UPS, FedEx, TNT, or Registered Mail.
Once your STM32L031G6U3 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 STM32L031G6U3?
For technical support, including STM32L031G6U3 datasheets, pinout diagrams, or application guidance, please contact our engineering support team. They can provide detailed documentation and assistance for your STM32L031G6U3 requirements.
6.How does Aetrix verify that STM32L031G6U3 is sourced from the original manufacturer or authorized distributors?
All STM32L031G6U3 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 STM32L031G6U3 meets industry standards.
7.What is the process for return or replacement of STM32L031G6U3?
All STM32L031G6U3 units undergo pre-shipment inspection (PSI). If there is an issue with STM32L031G6U3, 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 STM32L031G6U3 part is unused and in its original packaging.
Return procedure for STM32L031G6U3:
1.Submit a request within 90 days.
2.Obtain a Return Material Authorization (RMA) from Aetrix.
STM32L031G6U3 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…

