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

- Shipping:

Inventory:8,691
Please send an inquiry. Send us your inquiry, and we will respond immediately.
Product details
Overview
STM32L031G6U7 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, and a 12-bit ADC operating up to 1.14 Msps. It delivers 0.95 DMIPS/MHz at up to 32 MHz and supports industrial temperature range (−40 to +125 °C), making it suitable for battery-powered sensor nodes and smart metering endpoints.
For engineers reviewing the STM32L031G6U7 datasheet, STM32L031G6U7 pinout, STM32L031G6U7 application, or STM32L031G6U7 equivalent, key selection criteria include standby current (0.23 µA), RTC-enabled stop mode (0.6 µA), 5 µs wakeup from Flash, 31 5V-tolerant I/Os, and integrated ultra-low-power comparators with wake-up capability down to 1.65 V.
Technical Context
The STM32L031G6U7 implements a dual-voltage domain architecture with programmable voltage scaling (PVS) enabling dynamic power optimization across Run, Sleep, Low-power Run, and Stop modes. Its Cortex-M0+ core integrates a single-cycle multiplier and NVIC with up to 32 interrupt channels, tightly coupled to a 32-bit AHB bus matrix supporting concurrent peripheral access.
Power management includes five selectable BOR thresholds, independent POR/PDR, and a programmable voltage detector (PVD); clock system integrates HSI16 (±1%), LSI (37 kHz), MSI (65 kHz–4.2 MHz), HSE (1–25 MHz), LSE (32.768 kHz), and PLL for CPU frequency synthesis - all configurable via RCC registers without external components.
Key Specifications
| Parameter | Value and Actual Design Meaning |
|---|---|
| Core | Arm Cortex-M0+, 32-bit, 0.95 DMIPS/MHz, max 32 MHz operation |
| Flash Memory | 32 KB with ECC - enables field reliability and error correction in safety-critical firmware updates |
| SRAM | 8 KB - sufficient for real-time sensor fusion and protocol stack execution without external RAM |
| EEPROM | 1 KB with ECC - retains calibration data, device IDs, and configuration parameters across power cycles |
| ADC | 12-bit, 1.14 Msps, 10-channel - supports simultaneous sampling of multiple analog sensors at sub-µs intervals |
| Low-Power Modes | Standby: 0.23 µA (2 wakeup pins); Stop + RTC + 8 KB RAM retention: 0.6 µA - extends coin-cell battery life to >10 years |
| I/O Count | 25 GPIOs (22 with 5V tolerance) - enables direct interface to legacy 5V peripherals without level shifters |
| Supply Range | 1.65 V to 3.6 V - compatible with single-cell Li-ion, Li-SOCl₂, and alkaline battery systems |
Pinout & Package
STM32L031G6U7 is housed in a 28-pin Ultra Thin Fine Pitch Quad Flat No-lead (UFQFPN28) package measuring 4 × 4 mm with 0.5 mm pitch. The package supports reflow soldering, offers excellent thermal performance (θJA = 150 °C/W), and is ECOPACK®2 compliant.
| Pin/Terminal | Circuit Role | Design Meaning |
|---|---|---|
| VDD | Main power supply (1.65–3.6 V) | Supplies core logic, 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 |
| NRST | Active-low reset input | Asynchronous reset with internal pull-up; accepts 1.65–3.6 V logic levels and supports external reset button or supervisor IC |
| PA0–PA15 | General-purpose I/Os | Up to 22 pins are 5V tolerant; support alternate functions including USART, SPI, I²C, timers, and ADC inputs |
| PC13–PC15 | RTC-related pins | PC14/PC15 accept 32.768 kHz crystal; PC13 drives RTC backup domain and tamper detection |
| BOOT0 | Boot mode selection | High at reset enables system memory bootloader (USART/SPI); low selects main Flash memory execution |
| SWDIO / SWCLK | Serial Wire Debug interface | Two-pin debug port supporting full JTAG/SWD functionality for programming and real-time trace |
Key Features
| Feature | Design Value |
|---|---|
| Ultra-low-power standby | 0.23 µA with two wakeup pins enabled - enables immediate response to external events while preserving battery energy |
| RTC with calendar and alarms | Integrated 32-bit RTC with 1 KB backup register and tamper detection - maintains timekeeping during deep sleep without external components |
| Dual ultra-low-power comparators | Operate down to 1.65 V supply; support window mode and independent wake-up on rising/falling edge - replaces discrete comparator circuits |
| Pre-programmed bootloader | Factory-loaded in system memory; supports UART and SPI firmware updates without debugger - simplifies field firmware upgrades |
| ECC on Flash and EEPROM | Single-bit error correction and double-bit error detection - ensures data integrity in harsh EMI environments and long-life deployments |
| 7-channel DMA controller | Offloads CPU from ADC, SPI, I²C, USART, and timer transfers - reduces active time and improves deterministic latency |
Applications
| Smart Utility Metering | Wireless Sensor Node |
|---|---|
Use Scenario: Battery-powered gas/water meter with pulse counting, temperature compensation, and LoRaWAN backhaul. IC Role / Device Role / Timing Role: Main system controller managing sensor acquisition, metrology calculations, secure storage, and radio interface timing synchronization. Use Value: 0.6 µA Stop+RTC mode enables 15-year battery life; 1 KB EEPROM stores calibration coefficients and billing history with ECC protection. | Use Scenario: Industrial vibration monitor using MEMS accelerometer, temperature/humidity sensor, and BLE 5.0 transmission. IC Role / Device Role / Timing Role: Central data aggregator executing sensor fusion, event-triggered sampling, and low-duty-cycle BLE advertising. Use Value: 5 µs wakeup from Flash allows rapid response to vibration threshold breaches; 31 5V-tolerant I/Os simplify direct connection to legacy analog front-ends. |
| Portable Medical Device | Asset Tracking Tag |
Use Scenario: Disposable glucose monitor with electrochemical sensor, LCD driver, and NFC data readout. IC Role / Device Role / Timing Role: Signal conditioning, ADC conversion, algorithmic processing, and NFC field-powered communication controller. Use Value: 12-bit ADC with 1.14 Msps supports high-resolution amperometric current measurement; ultra-low 0.23 µA standby extends single-use battery life. | Use Scenario: GPS-denied indoor asset tracker using UWB ranging, motion detection, and NB-IoT reporting. IC Role / Device Role / Timing Role: Motion-triggered state machine coordinating UWB anchor handshaking, sensor logging, and cellular modem control. Use Value: Dual comparators detect motion onset with sub-µA quiescent current; 32 KB Flash accommodates UWB ranging firmware and secure boot code. |
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 core and low-power features | Limited firmware complexity and data logging depth due to smaller memory | Select when cost sensitivity outweighs need for EEPROM-based parameter persistence |
| EFM32HG322F64G | Silicon Labs ARM Cortex-M0+, 64 KB Flash, 8 KB RAM, no EEPROM, higher active current (120 µA/MHz) | Requires external EEPROM for persistent storage; less optimized for multi-year battery life | Choose if leveraging Simplicity Studio ecosystem or needing higher analog integration (e.g., op-amps) |
Compared with STM32L031G6U7, STM32L011K4T6 trades EEPROM and Flash capacity for lower unit cost, while EFM32HG322F64G offers larger Flash but lacks on-chip EEPROM and consumes more power in active modes - making STM32L031G6U7 optimal for applications requiring robust, long-term nonvolatile parameter storage with minimal power overhead.
Availability
STM32L031G6U7 is available at Aetrix Electronics and suitable for smart utility metering, wireless sensor nodes, portable medical devices, and asset tracking tags requiring stable component supply and long-term lifecycle assurance.
Supply support for STM32L031G6U7 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, and rich analog integration - specifically engineered for IoT edge nodes, wearables, and energy-harvesting systems.
FAQ
What is the maximum operating frequency and corresponding power consumption in Run mode?
The STM32L031G6U7 operates up to 32 MHz with dynamic voltage scaling. At 32 MHz and 3.3 V supply, typical Run mode current is 76 µA/MHz (≈2.43 mA total). This value assumes code execution from Flash with peripherals disabled; adding active peripherals increases current linearly per their datasheet specifications.
Does STM32L031G6U7 support hardware encryption or secure boot?
No, the STM32L031G6U7 does not integrate hardware cryptographic accelerators or secure boot ROM. It relies on software-based AES libraries and external secure elements for advanced security. However, its 96-bit unique ID and ECC-protected Flash/EEPROM provide foundational integrity and device identity capabilities.
Can the internal 16 MHz RC oscillator be used as the system clock without calibration?
Yes - the HSI16 oscillator is factory-trimmed to ±1% accuracy across voltage and temperature. It can serve as the default system clock immediately after reset without external components or runtime calibration, enabling fast startup and reduced BOM cost in cost-sensitive designs.
How many I/O pins support 5V tolerance, and which ones are they?
22 GPIO pins (PA0–PA15, PB0–PB1, PC6–PC7, PC10–PC11) are 5V tolerant on the STM32L031G6U7. This is confirmed in Section 6.3.13 of DS10668 Rev 6. Tolerance applies only when VDD is ≥2.0 V and pins are configured as inputs or open-drain outputs with no pull-up to 5V.
STM32L031G6U7 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 ~ 105°C (TA)
- Grade:
- -
- Qualification:
- -
- Mounting Type:
- Surface Mount
- Supplier Device Package:
STM32L031G6U7 FAQ
1.How can I place an order for STM32L031G6U7 through Aetrix?
Please submit a Request for Quotation (RFQ) for STM32L031G6U7 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 STM32L031G6U7 reliable?
The price and inventory of STM32L031G6U7 are updated periodically and may fluctuate due to market conditions. Stock and pricing data are typically refreshed every 24 hours. Quotation validity for STM32L031G6U7 is usually 5 days.
3.What payment methods are accepted for STM32L031G6U7?
We accept Wire Transfer, PayPal, Credit Card, Western Union, MoneyGram, and Escrow for STM32L031G6U7 transactions.
Note: Certain payment methods may incur a processing fee.
4.How is shipping managed for STM32L031G6U7?
STM32L031G6U7 orders can be shipped via leading logistics carriers, including DHL, UPS, FedEx, TNT, or Registered Mail.
Once your STM32L031G6U7 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 STM32L031G6U7?
For technical support, including STM32L031G6U7 datasheets, pinout diagrams, or application guidance, please contact our engineering support team. They can provide detailed documentation and assistance for your STM32L031G6U7 requirements.
6.How does Aetrix verify that STM32L031G6U7 is sourced from the original manufacturer or authorized distributors?
All STM32L031G6U7 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 STM32L031G6U7 meets industry standards.
7.What is the process for return or replacement of STM32L031G6U7?
All STM32L031G6U7 units undergo pre-shipment inspection (PSI). If there is an issue with STM32L031G6U7, 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 STM32L031G6U7 part is unused and in its original packaging.
Return procedure for STM32L031G6U7:
1.Submit a request within 90 days.
2.Obtain a Return Material Authorization (RMA) from Aetrix.
STM32L031G6U7 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…

