STMicroelectronics STM32L031F6P6
- Part No.:
- STM32L031F6P6
- Manufacturer:
- STMicroelectronics
- Category:
- Microcontrollers
- Package:
- 20-TSSOP (0.173", 4.40mm Width)
- Datasheet:
-
STM32L031F6P6.pdf
- Description:
- IC MCU 32BIT 32KB FLASH 20TSSOP
- Quantity:
- Payment:

- Shipping:

Inventory:9,605
Please send an inquiry. Send us your inquiry, and we will respond immediately.
Product details
Overview
STM32L031F6P6 from STMicroelectronics is an ultra-low-power 32-bit Arm® Cortex®-M0+ microcontroller with 32 KB Flash, 8 KB SRAM, 1 KB EEPROM, 12-bit ADC (1.14 Msps), and operating voltage range of 1.65–3.6 V. It delivers 0.95 DMIPS/MHz performance at up to 32 MHz and supports -40 to +125 °C industrial temperature operation. Used in battery-powered sensor nodes requiring long runtime and precise analog acquisition.
For engineers reviewing the STM32L031F6P6 datasheet, STM32L031F6P6 pinout, STM32L031F6P6 application, or STM32L031F6P6 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 IoT edge devices.
Technical Context
The STM32L031F6P6 integrates a Cortex-M0+ core with dynamic voltage scaling, enabling three power modes (Run, Stop, Standby) with hardware-controlled transitions. Its clock system combines factory-trimmed 16 MHz HSI (±1%), 32 kHz LSE for RTC calibration, and PLL for CPU frequency multiplication.
Analog subsystem includes two ultra-low-power comparators (wake-up capable down to 1.65 V), a 12-bit ADC with 10-channel multiplexing and hardware oversampling, and internal temperature sensor with factory calibration. Memory protection includes ECC on Flash and EEPROM plus sector write-protection.
Key Specifications
| Parameter | Value and Actual Design Meaning |
|---|---|
| CPU Core | Arm Cortex-M0+, 32 MHz max, 0.95 DMIPS/MHz - enables deterministic real-time control in compact firmware footprint |
| Memory | 32 KB Flash (ECC), 8 KB SRAM, 1 KB EEPROM (ECC) - supports robust firmware storage, data logging, and parameter retention across power cycles |
| Power Consumption | 0.23 µA Standby (2 wake pins), 0.6 µA Stop + RTC + 8 KB RAM retention - extends coin-cell battery life to >10 years in periodic-sense applications |
| ADC | 12-bit, 1.14 Msps, 10-channel, down to 1.65 V supply - captures high-fidelity sensor signals without external signal conditioning |
| Timers | 8x timers including 1x ultra-low-power LPTIM, 1x RTC, 2x watchdogs - enables precise timing, calendar functions, and fail-safe supervision |
| I/O Capability | 31 GPIOs (5V tolerant), 7-channel DMA - simplifies interface to legacy peripherals and reduces CPU load during data transfers |
| Clock Sources | HSI16 (±1%), LSE (32 kHz), MSI (65 kHz–4.2 MHz), PLL - eliminates need for external crystals in cost-sensitive designs while maintaining RTC accuracy |
Pinout & Package
STM32L031F6P6 is housed in a 20-pin TSSOP package (6.5 × 4.4 mm, 0.65 mm pitch), optimized for space-constrained PCB layouts and automated assembly. Pin count and layout align with ST's standardized TSSOP20 footprint for drop-in compatibility across L0-series variants.
| Pin/Terminal | Circuit Role | Design Meaning |
|---|---|---|
| VDD | Core & I/O power supply | 1.65–3.6 V input; powers digital logic and 5V-tolerant I/Os - enables direct connection to single Li-ion or 3×AA battery systems |
| VSS | Ground reference | Dedicated analog/digital ground return - critical for ADC accuracy and noise immunity in mixed-signal operation |
| NRST | Active-low reset input | External reset trigger with internal pull-up; supports brownout detection and programmable voltage detector (PVD) monitoring |
| PA0–PA15 | General-purpose I/O | Configurable as GPIO, ADC inputs, timer channels, or communication alternate functions - provides flexible peripheral mapping |
| PA13/PA14 | SWD debug interface | Serial Wire Debug (SW-DP) pins - enables in-circuit programming and real-time debugging without dedicated JTAG header |
| PA15 | JTDI / SPI_NSS | Shared debug/test and SPI chip select - allows dual-use pin to minimize footprint in minimal-pin-count designs |
| BOOT0 | Boot mode selection | High at reset forces system memory boot - enables field firmware recovery via USART bootloader without external programmer |
Key Features
| Feature | Design Value |
|---|---|
| Ultra-low-power standby mode | 0.23 µA with two wake-up pins active - preserves battery charge during multi-day sleep intervals in environmental monitors |
| ECC-protected memories | Hardware error correction on 32 KB Flash and 1 KB EEPROM - prevents silent data corruption in unattended remote deployments |
| 5V-tolerant I/Os | 31 pins withstand 5 V inputs while powered from 1.8 V or 3.3 V - eliminates level-shifters when interfacing with legacy 5 V sensors or logic |
| Pre-programmed USART/SPI bootloader | Factory-loaded ROM code supporting firmware updates over UART or SPI - reduces BOM cost and enables post-deployment field upgrades |
| Integrated temperature sensor | Calibrated ±1.5 °C accuracy across -40 to +125 °C - enables self-monitoring and thermal compensation without external components |
Applications
| Smart Utility Metering | Wireless Sensor Node |
|---|---|
Use Scenario: Battery-powered water/gas meter with hourly pulse counting and quarterly RF transmission. IC Role / Device Role / Timing Role: Main controller managing metrology sampling, RTC-based scheduling, and low-power radio wake-up sequencing. Use Value: 0.23 µA standby current and 5 µs Flash wakeup enable >15-year battery life with minimal duty cycling overhead. | Use Scenario: Industrial vibration monitor mounted on rotating equipment, transmitting FFT data every 2 hours. IC Role / Device Role / Timing Role: Signal acquisition hub performing ADC oversampling, FIR filtering, and burst-mode LoRaWAN transmission. Use Value: 12-bit ADC with hardware oversampling and 1.14 Msps throughput captures high-resolution waveform data without external ADC. |
| Portable Medical Device | Asset Tracking Tag |
Use Scenario: Disposable glucose patch with continuous subcutaneous sensing and Bluetooth LE alerts. IC Role / Device Role / Timing Role: Analog front-end processor handling sensor biasing, ADC conversion, and BLE event-triggered packetization. Use Value: Dual ultra-low-power comparators detect threshold breaches and wake CPU from Stop mode in <1 µs - ensures immediate response to critical glucose events. | Use Scenario: GPS-less indoor asset tag using RSSI triangulation and motion-triggered reporting. IC Role / Device Role / Timing Role: Motion-aware coordinator using accelerometer interface, RTC alarm, and ultra-low-power timer for adaptive polling. Use Value: 0.6 µA Stop mode + RTC + full RAM retention maintains context and scheduled wake-ups without capacitor backup. |
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 |
|---|---|---|---|
| STM32L011F4P6 | 16 KB Flash, 2 KB SRAM, no EEPROM, identical package and pinout | Lacks EEPROM-based parameter storage and reduced RAM for complex state machines | Select when firmware size ≤16 KB and non-volatile data storage is handled externally |
| STM32L051K8U6 | 64 KB Flash, 8 KB SRAM, 2 KB EEPROM, QFN32 package (32 pins) | Higher pin count enables more peripherals (e.g., second USART, additional timers), larger code capacity | Choose for designs needing expanded connectivity or future firmware scalability beyond 32 KB |
Compared with STM32L011F4P6, the STM32L031F6P6 adds 1 KB EEPROM and doubles Flash - enabling local calibration storage and feature-rich firmware. Versus STM32L051K8U6, it trades pin count and memory headroom for lower cost and smaller footprint in fixed-function endpoints.
Availability
STM32L031F6P6 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 industrial lifecycle support.
Supply support for STM32L031F6P6 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, specializing in microcontrollers, power management, and sensing technologies for industrial, automotive, and consumer markets.
The STM32L0 series targets ultra-low-power embedded applications where energy efficiency, integrated analog, and secure firmware execution are primary design constraints - particularly in battery-operated IoT endpoints.
FAQ
What is the maximum operating frequency and associated power consumption in Run mode?
The STM32L031F6P6 operates up to 32 MHz with dynamic voltage scaling. At 32 MHz and 3.3 V, typical Run mode current is 76 µA/MHz (≈2.43 mA total). This value scales linearly with clock speed and drops to ~1.1 mA at 16 MHz, enabling precise power/performance trade-offs per application phase.
Does the device support hardware encryption or secure boot features?
No. The STM32L031F6P6 does not integrate hardware cryptographic accelerators or secure boot ROM. It relies on software-based AES libraries and standard flash write protection. For secure firmware validation, external secure elements or higher-tier STM32L4/L5 devices with TRNG and PKA are recommended.
Can the 12-bit ADC perform simultaneous sampling across multiple channels?
No. The single 12-bit ADC supports sequential sampling across up to 10 channels via hardware multiplexer, but lacks dual ADCs or interleaved sampling capability. Simultaneous capture requires external analog multiplexing or discrete ADCs synchronized via timer triggers.
What debug interfaces are supported, and are they accessible in all low-power modes?
Serial Wire Debug (SWD) via PA13/PA14 is supported. Debug access is disabled in Stop and Standby modes but remains active in Sleep mode. To maintain debug visibility during low-power operation, developers must use SWV trace or configure wakeup events to re-enable debug before entering deeper sleep states.
STM32L031F6P6 Specifications
- Product attributes
- Attribute value
- Manufacturer:
- STMicroelectronics
- Package/Case:
- 20-TSSOP (0.173", 4.40mm Width)
- Series:
- STM32L0
- Packaging:
- Tube
- 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:
- 15
- 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:
STM32L031F6P6 FAQ
1.How can I place an order for STM32L031F6P6 through Aetrix?
Please submit a Request for Quotation (RFQ) for STM32L031F6P6 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 STM32L031F6P6 reliable?
The price and inventory of STM32L031F6P6 are updated periodically and may fluctuate due to market conditions. Stock and pricing data are typically refreshed every 24 hours. Quotation validity for STM32L031F6P6 is usually 5 days.
3.What payment methods are accepted for STM32L031F6P6?
We accept Wire Transfer, PayPal, Credit Card, Western Union, MoneyGram, and Escrow for STM32L031F6P6 transactions.
Note: Certain payment methods may incur a processing fee.
4.How is shipping managed for STM32L031F6P6?
STM32L031F6P6 orders can be shipped via leading logistics carriers, including DHL, UPS, FedEx, TNT, or Registered Mail.
Once your STM32L031F6P6 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 STM32L031F6P6?
For technical support, including STM32L031F6P6 datasheets, pinout diagrams, or application guidance, please contact our engineering support team. They can provide detailed documentation and assistance for your STM32L031F6P6 requirements.
6.How does Aetrix verify that STM32L031F6P6 is sourced from the original manufacturer or authorized distributors?
All STM32L031F6P6 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 STM32L031F6P6 meets industry standards.
7.What is the process for return or replacement of STM32L031F6P6?
All STM32L031F6P6 units undergo pre-shipment inspection (PSI). If there is an issue with STM32L031F6P6, 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 STM32L031F6P6 part is unused and in its original packaging.
Return procedure for STM32L031F6P6:
1.Submit a request within 90 days.
2.Obtain a Return Material Authorization (RMA) from Aetrix.
STM32L031F6P6 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…

