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

- Shipping:

Inventory:1,503
Please send an inquiry. Send us your inquiry, and we will respond immediately.
Product details
Overview
STM32L021G4U6 from STMicroelectronics is an ultra-low-power 32-bit Arm® Cortex®-M0+ microcontroller featuring 16 KB Flash, 2 KB SRAM, 512 B EEPROM with ECC, 12-bit ADC (1.14 Msps), and hardware AES-128 encryption. It operates from 1.65 V to 3.6 V across –40 °C to 125 °C and delivers 0.54 µA Stop mode + RTC + 2 KB RAM retention - ideal for battery-powered sensor nodes and smart metering endpoints.
For engineers reviewing the STM32L021G4U6 datasheet, STM32L021G4U6 pinout, STM32L021G4U6 application, or STM32L021G4U6 equivalent, key selection criteria include ultra-low standby current (0.23 µA), 5 µs Flash wakeup time, 23 I/Os with 5V tolerance, and integrated AES for secure firmware updates in constrained IoT edge devices.
Technical Context
The STM32L021G4U6 implements a single-core Arm Cortex-M0+ running up to 32 MHz with 0.95 DMIPS/MHz performance and dynamic voltage scaling support. Its clock system integrates factory-trimmed 16 MHz HSI (±1%), 32 kHz LSE for RTC calibration, and PLL for CPU frequency multiplication.
Power management includes five selectable brownout reset (BOR) thresholds, programmable voltage detector (PVD), and three low-power modes (Stop, Standby, Low-power Run) with configurable RAM retention and wakeup sources - enabling sub-µA system-level sleep states while preserving cryptographic context and real-time clock accuracy.
Key Specifications
| Parameter | Value and Actual Design Meaning |
|---|---|
| Core | Arm Cortex-M0+, 32-bit, up to 32 MHz - enables deterministic real-time control with minimal power overhead |
| Memory | 16 KB Flash with ECC + 2 KB SRAM + 512 B EEPROM with ECC - supports robust firmware storage and parameter retention in harsh environments |
| ADC | 12-bit, 1.14 Msps, 10-channel, operational down to 1.65 V - allows high-resolution analog sensing without external supply boosting |
| Low-power Modes | 0.23 µA Standby (2 wakeup pins), 0.54 µA Stop + RTC + 2 KB RAM retention - extends coin-cell battery life to >10 years in periodic wake-up applications |
| Crypto Engine | Hardware AES-128 - accelerates secure boot and OTA update decryption without CPU load or timing side-channel exposure |
| I/O Voltage Tolerance | 23 pins tolerant to 5 V - simplifies interface with legacy peripherals and industrial sensors without level-shifting circuitry |
| Wakeup Time | 5 µs from Flash memory - ensures rapid response to interrupts in time-critical sensor event detection |
Pinout & Package
STM32L021G4U6 is housed in a 20-pin UFQFPN (3 × 3 mm, 0.5 mm pitch) package compliant with ECOPACK®2 environmental standards. This compact, lead-free, thermally efficient package supports reflow soldering and is optimized for space-constrained portable electronics.
| Pin/Terminal | Circuit Role | Design Meaning |
|---|---|---|
| VDD | Main power supply (1.65–3.6 V) | Primary core and I/O domain supply; decoupling required per datasheet layout guidelines |
| VSS | Ground reference | Dedicated analog/digital ground return path; separation improves ADC SNR and noise immunity |
| NRST | Active-low reset input | Asynchronous reset with internal pull-up; accepts 5 V-tolerant logic for compatibility with external supervisors |
| PA0–PA7 | General-purpose I/Os | Configurable as GPIO, ADC inputs, timer channels, or UART/SPI/I²C functions; 23 pins total are 5V tolerant |
| PA13/PA14 | SWD debug interface | Serial Wire Debug (SW-DP) pins - enable non-intrusive programming and real-time tracing without dedicated JTAG pins |
| BOOT0 | Boot mode selection | Controls startup vector source (system memory vs. Flash); pulled low by default for normal application execution |
Key Features
| Feature | Design Value |
|---|---|
| Ultra-low-power BOR | 5 selectable brownout thresholds ensure reliable reset across wide temperature and battery discharge profiles |
| Hardware AES-128 | Accelerates cryptographic operations with constant-time execution - critical for FIPS-compliant secure boot and firmware signing |
| 2x Ultra-low-power comparators | Operate down to 1.65 V with window mode and wakeup capability - enable zero-power threshold monitoring of analog sensors |
| RTC with calibration | 32 kHz LSE oscillator supports ±1 ppm accuracy after calibration - maintains precise timekeeping over full temperature range |
| Pre-programmed bootloader | Factory-loaded USART/SPI bootloader allows field firmware updates without debugger hardware |
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 sensor acquisition, AES-encrypted data packaging, RTC-scheduled transmission, and ultra-deep sleep between cycles. Use Value: 0.23 µA Standby current enables >15-year battery life using CR2477 cells; 5 µs wakeup ensures prompt response to tamper interrupts. | Use Scenario: Industrial vibration monitor mounted on rotating equipment, sampling accelerometer data every 5 seconds. IC Role / Device Role / Timing Role: Edge intelligence unit performing FFT preprocessing, anomaly detection, and encrypted BLE advertisement. Use Value: Hardware AES-128 offloads encryption from CPU, preserving 32 MHz headroom for real-time signal analysis; 2 KB SRAM retains FFT buffers during Stop mode. |
| Medical Wearable Patch | Asset Tracking Beacon |
Use Scenario: Disposable ECG patch with 7-day continuous monitoring and Bluetooth LE alert transmission on arrhythmia detection. IC Role / Device Role / Timing Role: Signal acquisition controller interfacing with analog front-end, executing low-latency digital filtering, and managing secure BLE connection handshakes. Use Value: 12-bit ADC with 1.14 Msps supports oversampling for >14 ENOB; 512 B EEPROM stores calibration coefficients and patient ID securely. | Use Scenario: GPS-denied indoor asset tag reporting location via UWB ranging and transmitting status via NB-IoT every 6 hours. IC Role / Device Role / Timing Role: System orchestrator managing UWB transceiver timing, NB-IoT modem control, and secure session key derivation. Use Value: Stop mode + RTC + 2 KB RAM retention preserves UWB timestamp context and crypto keys across 6-hour sleep intervals; 23 5V-tolerant I/Os simplify integration with diverse transceivers. |
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, 1 KB SRAM, no hardware AES, same 20-pin UFQFPN package | Lacks secure boot acceleration; suitable for cost-sensitive, non-secure sensing only | Select when cryptographic requirements are absent and memory footprint is ≤8 KB |
| STM32L031F6P6 | 32 KB Flash, 8 KB SRAM, hardware AES, 20-pin TSSOP package (6.5 × 4.4 mm) | Larger footprint but higher memory headroom; TSSOP eases prototyping and manual rework | Select when design requires >16 KB code space and prefers through-hole or larger-pitch assembly |
Compared with STM32L021G4U6, STM32L011K4T6 reduces security and memory capacity for lower BOM cost, while STM32L031F6P6 trades compactness for scalability and identical crypto capability - making the G4U6 optimal for size- and security-constrained battery endpoints.
Availability
STM32L021G4U6 is available at Aetrix Electronics and suitable for smart utility metering, wireless sensor nodes, medical wearable patches, and asset tracking beacons requiring stable component supply across multi-year production cycles.
Supply support for STM32L021G4U6 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 - delivering sub-µA sleep currents, fast wakeup, and integrated peripherals to extend battery life in IoT edge devices without sacrificing computational capability.
FAQ
What is the maximum operating frequency and corresponding power consumption in Run mode?
The STM32L021G4U6 runs up to 32 MHz with typical current consumption of 76 µA/MHz at 3.3 V. At full speed, this equates to ~2.43 mA total active current - verified in datasheet Table 21 under "Run mode, code from Flash." Dynamic voltage scaling further reduces current at lower frequencies.
Does STM32L021G4U6 support USB or CAN interfaces?
No. The STM32L021G4U6 does not integrate USB or CAN peripherals. Its communication interfaces are limited to one USART (ISO 7816/IrDA), one LPUART, one SPI (16 Mbit/s), and one I²C (SMBus/PMBus). USB and CAN require higher-series STM32L0/L4/L5 variants.
How is the 512 B EEPROM implemented and what endurance does it offer?
The 512 B EEPROM is implemented as a dedicated memory block with built-in ECC and guaranteed endurance of 100,000 write/erase cycles and data retention of 20 years at 85 °C - specified in datasheet Table 43. It supports byte-wise writes and is accessed via dedicated HAL drivers, not emulated in Flash.
Can the internal 16 MHz RC oscillator be used as the system clock without external components?
Yes. The factory-trimmed 16 MHz HSI RC oscillator achieves ±1% accuracy across voltage and temperature and can serve as the main system clock without any external crystal or capacitor. It is enabled by default after reset and supports immediate full-speed operation - eliminating BOM cost and board space for external timing components.
STM32L021G4U6 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, SPI, UART/USART
- Peripherals:
- Brown-out Detect/Reset, DMA, POR, PWM, WDT
- Number of I/O:
- 24
- Program Memory Size:
- 16KB (16K x 8)
- Program Memory Type:
- FLASH
- EEPROM Size:
- 512 x 8
- RAM Size:
- 2K 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:
STM32L021G4U6 FAQ
1.How can I place an order for STM32L021G4U6 through Aetrix?
Please submit a Request for Quotation (RFQ) for STM32L021G4U6 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 STM32L021G4U6 reliable?
The price and inventory of STM32L021G4U6 are updated periodically and may fluctuate due to market conditions. Stock and pricing data are typically refreshed every 24 hours. Quotation validity for STM32L021G4U6 is usually 5 days.
3.What payment methods are accepted for STM32L021G4U6?
We accept Wire Transfer, PayPal, Credit Card, Western Union, MoneyGram, and Escrow for STM32L021G4U6 transactions.
Note: Certain payment methods may incur a processing fee.
4.How is shipping managed for STM32L021G4U6?
STM32L021G4U6 orders can be shipped via leading logistics carriers, including DHL, UPS, FedEx, TNT, or Registered Mail.
Once your STM32L021G4U6 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 STM32L021G4U6?
For technical support, including STM32L021G4U6 datasheets, pinout diagrams, or application guidance, please contact our engineering support team. They can provide detailed documentation and assistance for your STM32L021G4U6 requirements.
6.How does Aetrix verify that STM32L021G4U6 is sourced from the original manufacturer or authorized distributors?
All STM32L021G4U6 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 STM32L021G4U6 meets industry standards.
7.What is the process for return or replacement of STM32L021G4U6?
All STM32L021G4U6 units undergo pre-shipment inspection (PSI). If there is an issue with STM32L021G4U6, 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 STM32L021G4U6 part is unused and in its original packaging.
Return procedure for STM32L021G4U6:
1.Submit a request within 90 days.
2.Obtain a Return Material Authorization (RMA) from Aetrix.
STM32L021G4U6 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…

