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

- Shipping:

Inventory:607
Please send an inquiry. Send us your inquiry, and we will respond immediately.
Product details
Overview
STM32L031G6U6S 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 delivers 76 µA/MHz in Run mode - deployed in battery-powered sensor nodes and smart utility meters requiring long-term autonomous operation.
For engineers reviewing the STM32L031G6U6S datasheet, STM32L031G6U6S pinout, STM32L031G6U6S application, or STM32L031G6U6S 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 control designs.
Technical Context
The STM32L031G6U6S 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, Standby), each with distinct peripheral enablement and retention policies.
Peripheral interconnect is managed via an AHB/APB matrix supporting concurrent DMA transfers to ADC, USART, SPI, I²C, and timers. The device implements hardware ECC on Flash and EEPROM, 96-bit unique ID, CRC calculation unit, and serial wire debug (SW-DP) - enabling secure, traceable, and field-upgradable firmware deployment in industrial edge nodes.
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), 8 KB SRAM, 1 KB EEPROM (ECC) - enables robust code execution, data logging, and parameter storage without external nonvolatile memory. |
| ADC | 12-bit, 1.14 Msps, 10-channel - supports high-resolution analog sensing (e.g., temperature, pressure) down to 1.65 V supply. |
| Low-power Modes | 0.23 µA Standby (2 wake pins), 0.6 µA Stop + RTC + 8 KB RAM - extends coin-cell battery life to >10 years in periodic-sense applications. |
| Timers | 8x timers including 1x 16-bit ultra-low-power timer, 1x RTC, 2x watchdogs - provides precise timing, calendar functions, and fail-safe supervision without external components. |
| 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. |
| Communication | 1x USART (ISO 7816/IrDA), 1x LPUART, 2x SPI (16 Mbit/s), 1x I²C (SMBus/PMBus) - enables secure smart-card comms, low-power telemetry, and sensor bus integration. |
Pinout & Package
STM32L031G6U6S uses the UFQFPN28 (4 × 4 mm, 0.5 mm pitch) package with 28 terminals, optimized for space-constrained PCB layouts in wearables and IoT endpoints. Pin functions are validated per STMicroelectronics DS10668 Rev 6, Section 4 "Pin descriptions".
| Pin/Terminal | Circuit Role | Design Meaning |
|---|---|---|
| VDD, VSS | Power supply and ground | Dual VDD/VSS pairs ensure stable core and I/O domain operation; decoupling required per layout guidelines (Section 7.5). |
| PA0–PA15, PB0–PB12 | General-purpose I/O | 31 of 38 I/Os mapped to these ports; PA0–PA3 support ADC channels and comparator inputs - enables direct analog front-end integration. |
| NRST | Active-low reset input | Asynchronous reset with internal pull-up; accepts 1.65–3.6 V logic - eliminates need for external reset IC in cost-sensitive designs. |
| BOOT0 | Boot mode selection | Configures boot source (system memory or main Flash); sampled at reset - enables field firmware recovery via USART bootloader. |
| SWDIO / SWCLK | Serial Wire Debug interface | 2-pin debug port supporting programming and real-time trace - reduces test/debug footprint vs JTAG while maintaining full development visibility. |
Key Features
| Feature | Design Value |
|---|---|
| Ultra-low-power BOR | 5 selectable brownout thresholds (1.65–2.9 V) - ensures reliable reset across wide battery discharge curves without external supervisor. |
| Programmable voltage detector (PVD) | Monitors VDD against 8 programmable levels - triggers interrupt or reset before critical undervoltage, enabling graceful shutdown in energy harvesting systems. |
| Embedded EEPROM | 1 KB with ECC and 100 k-cycle endurance - stores calibration data, device IDs, or configuration parameters with guaranteed integrity over 20-year retention. |
| Temperature sensor | Calibrated ±1.5 °C accuracy (–40 to 125 °C) - enables self-monitoring of MCU junction temperature for thermal throttling or ambient sensing without external sensors. |
| Pre-programmed bootloader | USART and SPI interfaces supported - allows firmware updates over existing communication links, eliminating need for dedicated programming hardware in production or field service. |
Applications
| Smart Utility Metering | Wireless Sensor Node |
|---|---|
Use Scenario: Battery-powered gas/water meter with hourly pressure/flow readings and LoRaWAN transmission. IC Role / Device Role / Timing Role: Main system controller managing ADC sampling, RTC-triggered wakeups, LPUART-to-LoRa bridge, and EEPROM-based consumption history. Use Value: 0.6 µA Stop mode + RTC enables precise hourly wakeups; 5 µs Flash wakeup minimizes active time, extending 2xAA battery life beyond 15 years. | Use Scenario: Industrial vibration monitor mounted on rotating machinery, transmitting FFT data every 5 minutes via BLE. IC Role / Device Role / Timing Role: Edge signal processor executing FFT on ADC samples, managing BLE connection intervals, and storing peak amplitude history in EEPROM. Use Value: 12-bit ADC with 10-channel multiplexing captures multi-axis accelerometer data; 31 5V-tolerant I/Os simplify connection to legacy analog sensor outputs. |
| Portable Medical Device | Asset Tracking Tag |
Use Scenario: Disposable glucose monitor with electrochemical sensor interface and NFC data readout. IC Role / Device Role / Timing Role: Analog front-end controller handling sensor biasing, ADC conversion, NFC field detection, and secure data encryption. Use Value: Dual ultra-low-power comparators operate down to 1.65 V and support window mode - detect sensor activation and power-on events with sub-µA quiescent current. | Use Scenario: GPS-less indoor asset tag using RSSI triangulation via BLE beacons, logging location history. IC Role / Device Role / Timing Role: Low-duty-cycle host managing beacon scanning windows, accelerometer wake triggers, and EEPROM-based movement log. Use Value: 0.23 µA Standby mode with 2 dedicated wakeup pins enables motion-triggered logging; 96-bit unique ID provides tamper-resistant device identity for cloud registration. |
Equivalent & Alternatives
The following parts are listed as comparable options for similar ultra-low-power microcontroller 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 and analog channel count. | Suitable for simpler sensor polling without local data history; not viable for metering or calibration-critical use cases. | Select when firmware size <12 KB and EEPROM-free operation is acceptable - reduces BOM cost by ~18%. |
| EFM32ZG222F32 | ARM Cortex-M0+, 32 KB Flash, 4 KB RAM, no EEPROM, 12-bit ADC (1 Msps), 0.5 µA Stop mode - lower analog integration and no hardware ECC. | Targeted at short-duration BLE beacons; lacks RTC+RAM retention and failsafe memory protection needed for decade-long deployments. | Choose only if SW-based ECC and external FRAM are acceptable - increases firmware complexity and validation burden. |
Compared with STM32L031G6U6S, STM32L011K4T6 trades EEPROM and ADC channels for lower cost and smaller Flash, while EFM32ZG222F32 omits hardware memory protection and RTC-extended retention - making STM32L031G6U6S the sole option meeting simultaneous requirements for 10-year battery life, on-chip data integrity, and calibrated analog sensing.
Availability
STM32L031G6U6S is available at Aetrix Electronics and suitable for smart metering, portable medical devices, wireless sensor networks, and asset tracking tags requiring stable component supply across extended product lifecycles.
Supply support for STM32L031G6U6S 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, integrated analog peripherals, and long-term reliability - specifically engineered for battery-operated and energy-harvesting systems where microamp-level quiescent current and memory resilience are non-negotiable.
FAQ
What is the maximum operating frequency and corresponding power consumption of STM32L031G6U6S?
The STM32L031G6U6S runs at up to 32 MHz with dynamic voltage scaling. At 32 MHz and 3.3 V, typical Run-mode current is 1.2 mA (37.5 µA/MHz). This value scales linearly with frequency and voltage - e.g., at 16 MHz/3.0 V, consumption drops to ~0.55 mA. All values are measured with code executing from Flash and verified per DS10668 Rev 6 Table 24.
Does STM32L031G6U6S support hardware encryption or secure boot?
No, the STM32L031G6U6S does not integrate hardware cryptographic accelerators (AES, SHA, PKA) or secure boot ROM. It relies on software-based encryption libraries and external secure elements for advanced security. However, its 96-bit unique ID and ECC-protected Flash/EEPROM provide foundational integrity for firmware signing and parameter storage.
Can the internal 32 kHz LSE oscillator be used for precise RTC timekeeping without an external crystal?
No - the 32 kHz RTC clock source requires an external LSE crystal (typically 32.768 kHz) for accurate timekeeping. The internal LSI (37 kHz RC) is not calibrated and drifts significantly with temperature/voltage; it is only suitable for approximate wake timing or watchdog reference, not calendar functions.
How many ADC channels are accessible in the UFQFPN28 package, and which pins support them?
The UFQFPN28 package exposes 10 ADC channels: ADC_IN0–ADC_IN9 mapped to PA0–PA7, PB0, and PB1. All channels operate down to 1.65 V supply and support single-ended or differential acquisition. Channel mapping and alternate function configurations are defined in DS10668 Rev 6 Table 15 and Section 3.11.
STM32L031G6U6S 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 ~ 85°C (TA)
- Grade:
- -
- Qualification:
- -
- Mounting Type:
- Surface Mount
- Supplier Device Package:
STM32L031G6U6S FAQ
1.How can I place an order for STM32L031G6U6S through Aetrix?
Please submit a Request for Quotation (RFQ) for STM32L031G6U6S 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 STM32L031G6U6S reliable?
The price and inventory of STM32L031G6U6S are updated periodically and may fluctuate due to market conditions. Stock and pricing data are typically refreshed every 24 hours. Quotation validity for STM32L031G6U6S is usually 5 days.
3.What payment methods are accepted for STM32L031G6U6S?
We accept Wire Transfer, PayPal, Credit Card, Western Union, MoneyGram, and Escrow for STM32L031G6U6S transactions.
Note: Certain payment methods may incur a processing fee.
4.How is shipping managed for STM32L031G6U6S?
STM32L031G6U6S orders can be shipped via leading logistics carriers, including DHL, UPS, FedEx, TNT, or Registered Mail.
Once your STM32L031G6U6S 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 STM32L031G6U6S?
For technical support, including STM32L031G6U6S datasheets, pinout diagrams, or application guidance, please contact our engineering support team. They can provide detailed documentation and assistance for your STM32L031G6U6S requirements.
6.How does Aetrix verify that STM32L031G6U6S is sourced from the original manufacturer or authorized distributors?
All STM32L031G6U6S 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 STM32L031G6U6S meets industry standards.
7.What is the process for return or replacement of STM32L031G6U6S?
All STM32L031G6U6S units undergo pre-shipment inspection (PSI). If there is an issue with STM32L031G6U6S, 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 STM32L031G6U6S part is unused and in its original packaging.
Return procedure for STM32L031G6U6S:
1.Submit a request within 90 days.
2.Obtain a Return Material Authorization (RMA) from Aetrix.
STM32L031G6U6S 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…

