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

- Shipping:

Inventory:9,003
Please send an inquiry. Send us your inquiry, and we will respond immediately.
Product details
Overview
STM32L031F6P7 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 targets battery-powered sensor nodes and smart meters requiring sub-µA standby current (0.23 µA) and fast 5 µs wakeup from Flash.
For engineers reviewing the STM32L031F6P7 datasheet, STM32L031F6P7 pinout, STM32L031F6P7 application, or STM32L031F6P7 equivalent, key selection criteria include verified low-power mode current specs (Stop: 0.35 µA; Standby: 0.23 µA), 31 I/Os with 5V tolerance, integrated RTC with 8 KB RAM retention, and bootloader support for USART/SPI - all confirmed in DS10668 Rev 6.
Technical Context
The STM32L031F6P7 implements a single-core Arm Cortex-M0+ running at up to 32 MHz, supported by dynamic voltage scaling and multiple clock sources: HSI16 (±1%), LSE (32 kHz RTC), MSI (65 kHz–4.2 MHz), and PLL. Its interconnect matrix routes peripherals-including ADC, timers, and communication interfaces-to the CPU without bus contention.
Ultra-low-power operation is enabled by five distinct power modes (Run, Sleep, Low-power Run, Stop, Standby), each with configurable peripheral retention and wakeup sources (e.g., 16 EXTI lines in Stop mode, 2 pins in Standby). The embedded BOR offers five programmable thresholds, and the PVD supports voltage monitoring down to 1.65 V.
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 resource-constrained edge nodes. |
| Memory | 32 KB Flash (ECC), 8 KB SRAM, 1 KB EEPROM (ECC) - enables robust firmware storage, runtime data buffering, and nonvolatile parameter retention over 100k cycles. |
| ADC | 12-bit, 1.14 Msps, 10-channel - supports high-resolution analog sensing (e.g., temperature, pressure) with sampling down to 1.65 V supply. |
| Low-power Modes | Standby: 0.23 µA (2 wakeup pins); Stop: 0.35 µA (16 wakeup lines); Stop+RTC+RAM: 0.6 µA - extends coin-cell battery life to >10 years in periodic-sensing applications. |
| Timers | 8x timers including 1x 16-bit (4-channel), 2x 16-bit (2-channel), 1x ultra-low-power LPTIM - enables precise PWM generation, time-stamping, and RTC-coupled wakeups. |
| I/Os | 31 GPIOs, 5V tolerant - simplifies interface to legacy 5V logic and industrial sensors without level-shifting components. |
| Communication | 1x USART (ISO 7816/IrDA), 1x LPUART, 2x SPI (16 Mbit/s), 1x I2C (SMBus/PMBus) - supports secure smart-card comms, low-power telemetry, and multi-sensor I2C buses. |
Pinout & Package
STM32L031F6P7 uses the UFQFPN28 (4 × 4 mm, 0.5 mm pitch) package per ST's mechanical data (DS10668 Rev 6, Table 73), with 28 terminals including 25 I/Os, VDD/VSS, NRST, BOOT0, and VREF+.
| Pin/Terminal | Circuit Role | Design Meaning |
|---|---|---|
| VDD | Main power supply (1.65–3.6 V) | Primary core and I/O domain input; requires local 100 nF decoupling for stable low-power operation. |
| VSS | Ground reference | Dedicated analog/digital ground plane connection to minimize noise coupling into ADC/comparators. |
| NRST | Active-low reset input | Asynchronous hardware reset with internal pull-up; accepts 1.65–3.6 V logic levels and supports external debounced pushbutton. |
| BOOT0 | Boot mode selection | High at reset enables system memory bootloader; low selects main Flash execution - critical for field firmware updates via USART/SPI. |
| PA0–PA15 | General-purpose I/Os | 31 total GPIOs (PA0–PA15, PB0–PB15, PC13–PC15); 5V-tolerant on most pins - allows direct interfacing with 5V sensors and actuators. |
| VREF+ | Analog reference input | External reference for ADC and comparators; enables ratiometric measurements independent of VDD variation. |
Key Features
| Feature | Design Value |
|---|---|
| Ultra-low-power BOR | 5 selectable brownout thresholds (1.65–2.9 V) - ensures reliable reset during battery voltage sag without external supervisor IC. |
| Embedded RTC with calibration | 32 kHz LSE oscillator + ±1 ppm accuracy after calibration - enables decade-long timekeeping in metering and logging without external crystal trimming. |
| Hardware CRC unit | 32-bit polynomial calculation (CRC-32, CRC-16) - accelerates firmware integrity checks and secure OTA update validation in under 1 µs. |
| Pre-programmed bootloader | USART and SPI interfaces active on reset with BOOT0 high - eliminates need for SWD programmer in production programming and field recovery. |
| Temperature sensor | Calibrated output (±1.5 °C accuracy) with VREFINT reference - enables on-chip thermal monitoring for battery safety and ambient compensation without external ICs. |
Applications
| Smart Utility Metering | Wireless Sensor Node |
|---|---|
Use Scenario: Battery-powered electricity/water meter collecting pulse counts and voltage/current samples every 10 seconds. IC Role / Device Role / Timing Role: Main controller executing metrology algorithms, managing RTC-based timestamping, and initiating LoRaWAN uplinks during low-power Stop mode wakeups. Use Value: 0.35 µA Stop mode current and 5 µs wakeup enable >15-year battery life using CR2032, while 12-bit ADC ensures <0.5% energy measurement error. | Use Scenario: Indoor air quality node (CO₂, VOC, temp/humidity) transmitting data hourly via BLE or NB-IoT. IC Role / Device Role / Timing Role: System-on-chip host managing sensor I2C reads, LPUART/BLE interface, and ultra-low-power timer-triggered sleep cycles. Use Value: Dual comparators monitor threshold crossings (e.g., CO₂ > 1000 ppm) to wake CPU instantly, avoiding periodic polling and cutting average current by 40%. |
| Industrial Asset Monitor | Medical Wearable |
Use Scenario: Vibration/temperature logger attached to motor bearings, recording FFT data during scheduled maintenance windows. IC Role / Device Role / Timing Role: Data acquisition controller using DMA-driven ADC sampling, storing processed spectra in EEPROM, and waking via LPTIM for SD card writes. Use Value: 1 KB EEPROM with ECC retains 10+ years of calibration coefficients and fault logs even after 100k write cycles - eliminating external nonvolatile memory. | Use Scenario: ECG patch continuously sampling biopotentials at 250 SPS with motion artifact rejection. IC Role / Device Role / Timing Role: Analog front-end coordinator routing ADC outputs to digital filters, managing electrode biasing via GPIO-controlled switches, and triggering alerts via comparators. Use Value: 5V-tolerant I/Os interface directly with ±2.5 V op-amp rails; 1.65 V minimum ADC operation supports single-cell Li-ion (2.8–4.2 V) supply range without LDO overhead. |
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 UFQFPN28 package and core | Lacks EEPROM and reduced RAM limits firmware complexity and data logging depth | Select when cost sensitivity outweighs nonvolatile parameter storage needs and code size fits ≤16 KB. |
| STM32L051K8U6 | 64 KB Flash, 8 KB SRAM, 2 KB EEPROM, QFN32 package (5×5 mm) | Higher pin count (29 I/Os), larger footprint, and extended peripheral set (USB, more timers) | Choose for designs requiring USB connectivity or future firmware scalability beyond 32 KB Flash. |
Compared with STM32L011F4P6, the STM32L031F6P7 adds 1 KB EEPROM and doubles Flash - enabling secure parameter storage and larger OTA payloads. Versus STM32L051K8U6, it trades USB and extra I/Os for smaller size and lower cost, making it optimal for space-constrained, battery-critical nodes.
Availability
STM32L031F6P7 is available at Aetrix Electronics and suitable for smart utility metering, wireless sensor nodes, industrial asset monitors, and medical wearables requiring stable component supply across long product lifecycles.
Supply support for STM32L031F6P7 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, designing and manufacturing microcontrollers, power ICs, sensors, and analog products for industrial, automotive, and consumer markets.
The STM32L0-series targets ultra-low-power embedded applications - optimized for battery-operated devices needing sub-µA standby, fast wakeup, and integrated analog peripherals without sacrificing code density or security features.
FAQ
What is the maximum operating frequency and core type of the STM32L031F6P7?
The STM32L031F6P7 integrates an Arm Cortex-M0+ core rated for up to 32 MHz operation, delivering 0.95 DMIPS/MHz performance. Its maximum frequency is achievable across the full 1.65–3.6 V supply range, with dynamic voltage scaling maintaining efficiency at lower voltages. This is confirmed in Section 3.3 of DS10668 Rev 6.
Does the STM32L031F6P7 support hardware encryption or secure boot?
No, the STM32L031F6P7 does not include hardware cryptographic accelerators (AES, SHA, PKA) or secure boot ROM. Security relies on software-implemented protocols and Flash readout protection (RDP Level 1/2). For hardware security, ST recommends the STM32L07x or STM32L1xx series - this distinction is explicitly stated in the device summary table (Table 1) and feature comparison (Table 2).
What are the exact low-power mode current values for STM32L031F6P7 at 25°C?
At 25°C and 3.0 V supply, typical currents are: Standby mode = 0.23 µA (with 2 wakeup pins enabled), Stop mode = 0.35 µA (16 wakeup lines), and Stop mode with RTC + 8 KB RAM retention = 0.6 µA. These values are measured per Section 6.3.1 and Table 31–32 in DS10668 Rev 6, and apply specifically to the UFQFPN28 package variant.
Can the STM32L031F6P7 drive 5V logic directly without level shifters?
Yes - 31 GPIOs (PA0–PA15, PB0–PB15, PC13–PC15) are 5V tolerant when VDD is ≥2.0 V, as specified in Section 6.3.13 and Table 53 of DS10668 Rev 6. This allows direct connection to 5V UART transceivers, I2C pull-ups, or digital sensors without external level-shifting circuitry.
STM32L031F6P7 Specifications
- Product attributes
- Attribute value
- Manufacturer:
- STMicroelectronics
- Package/Case:
- 20-TSSOP (0.173", 4.40mm Width)
- 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:
- 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 ~ 105°C (TA)
- Grade:
- -
- Qualification:
- -
- Mounting Type:
- Surface Mount
- Supplier Device Package:
STM32L031F6P7 FAQ
1.How can I place an order for STM32L031F6P7 through Aetrix?
Please submit a Request for Quotation (RFQ) for STM32L031F6P7 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 STM32L031F6P7 reliable?
The price and inventory of STM32L031F6P7 are updated periodically and may fluctuate due to market conditions. Stock and pricing data are typically refreshed every 24 hours. Quotation validity for STM32L031F6P7 is usually 5 days.
3.What payment methods are accepted for STM32L031F6P7?
We accept Wire Transfer, PayPal, Credit Card, Western Union, MoneyGram, and Escrow for STM32L031F6P7 transactions.
Note: Certain payment methods may incur a processing fee.
4.How is shipping managed for STM32L031F6P7?
STM32L031F6P7 orders can be shipped via leading logistics carriers, including DHL, UPS, FedEx, TNT, or Registered Mail.
Once your STM32L031F6P7 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 STM32L031F6P7?
For technical support, including STM32L031F6P7 datasheets, pinout diagrams, or application guidance, please contact our engineering support team. They can provide detailed documentation and assistance for your STM32L031F6P7 requirements.
6.How does Aetrix verify that STM32L031F6P7 is sourced from the original manufacturer or authorized distributors?
All STM32L031F6P7 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 STM32L031F6P7 meets industry standards.
7.What is the process for return or replacement of STM32L031F6P7?
All STM32L031F6P7 units undergo pre-shipment inspection (PSI). If there is an issue with STM32L031F6P7, 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 STM32L031F6P7 part is unused and in its original packaging.
Return procedure for STM32L031F6P7:
1.Submit a request within 90 days.
2.Obtain a Return Material Authorization (RMA) from Aetrix.
STM32L031F6P7 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…

