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

- Shipping:

Inventory:14,217
Please send an inquiry. Send us your inquiry, and we will respond immediately.
Product details
Overview
STM32L031F4P6 from STMicroelectronics is an ultra-low-power 32-bit Arm® Cortex®-M0+ microcontroller in TSSOP20 package, featuring 16 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 V to 3.6 V across –40 °C to 125 °C and delivers 76 µA/MHz in Run mode - ideal for battery-powered sensor nodes and smart metering endpoints.
For engineers reviewing the STM32L031F4P6 datasheet, STM32L031F4P6 pinout, STM32L031F4P6 application, or STM32L031F4P6 equivalent, key selection criteria include standby current (0.23 µA), RTC + 8 KB RAM retention in Stop mode (0.6 µA), 5 µs Flash wakeup time, and 31 I/Os with 5V tolerance - critical for energy-constrained industrial and IoT edge devices.
Technical Context
The STM32L031F4P6 integrates a single-core Arm Cortex-M0+ 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, and PLL for CPU clock multiplication. Its low-power architecture includes five operational modes (Run, Sleep, Low-power Run, Low-power Sleep, Stop, Standby) with hierarchical wakeup capability via 16 lines or 2 pins.
Analog subsystem includes a 12-bit ADC with 10-channel multiplexing (down to 1.65 V supply), two independent comparators with window mode and wake-up capability, and internal temperature sensor with calibration data stored in system memory. Memory protection covers sector-level Flash/ECC and EEPROM write/erase lock.
Key Specifications
| Parameter | Value and Actual Design Meaning |
|---|---|
| Core | Arm Cortex-M0+, 32 MHz max - enables deterministic real-time control with 0.95 DMIPS/MHz efficiency |
| Flash / SRAM / EEPROM | 16 KB Flash with ECC, 8 KB SRAM, 1 KB EEPROM with ECC - supports robust firmware storage and parameter retention |
| ADC | 12-bit, 1.14 Msps, 10 channels - sufficient for multi-sensor acquisition at ≤10 ksps with <±1 LSB INL |
| Low-power modes | 0.23 µA Standby (2 wakeup pins), 0.6 µA Stop + RTC + 8 KB RAM retention - extends coin-cell battery life to >10 years |
| Supply range | 1.65 V to 3.6 V - compatible with single-cell Li-ion, Li-SOCl₂, and alkaline battery systems |
| I/O count & tolerance | 17 GPIOs (15 general-purpose + NRST + BOOT0), 31 I/Os 5V tolerant - simplifies level-shifting in mixed-voltage designs |
| Timers | 8 timers including 1x 16-bit advanced, 2x 16-bit general-purpose, 1x ultra-low-power LPTIM, RTC, SysTick - supports precise timing, PWM, and calendar functions |
Pinout & Package
TSSOP20 (20-lead, 6.5 × 4.4 mm, 0.65 mm pitch) - RoHS-compliant, ECOPACK®2 certified, optimized for compact PCB layouts in space-constrained modules.
| Pin/Terminal | Circuit Role | Design Meaning |
|---|---|---|
| VDD | Main power supply (1.65–3.6 V) | Supplies core, analog, and I/O domains; requires local 100 nF decoupling |
| VSS | Ground reference | Digital and analog ground return; must be low-impedance and star-connected |
| NRST | Active-low reset input | Asynchronous reset with internal pull-up; accepts 5V-tolerant external signal |
| BOOT0 | Boot mode selection | High at power-on selects system memory bootloader (USART/SPI); tied low for Flash execution |
| PA0–PA9 | General-purpose I/Os | 10 configurable pins with alternate functions (ADC_IN0–IN9, USART, SPI, etc.) |
| PA13/PA14 | SWD debug interface | Serial Wire Debug (SW-DP) pins - enable programming and real-time debugging without JTAG overhead |
| OSC_IN / OSC_OUT | External crystal oscillator terminals | Support 1–25 MHz crystals; optional for high-accuracy timing or RTC calibration |
| VREF+ | ADC reference voltage input | Accepts external reference or connects to internal VREFINT (1.22 V ±3%) for ratiometric measurements |
Key Features
| Feature | Design Value |
|---|---|
| Ultra-low-power BOR | 5 selectable brownout thresholds (1.65–2.9 V) - ensures reliable reset during battery sag without external supervisor |
| Programmable voltage detector (PVD) | Monitors VDD against 8 programmable thresholds - enables early warning of supply degradation before BOR triggers |
| ECC-enabled memories | Flash and EEPROM protected by hardware ECC - prevents silent corruption in field-deployed firmware and calibration data |
| Pre-programmed bootloader | Factory-loaded USART/SPI bootloader - eliminates need for external programmer during field firmware updates |
| Temperature sensor | Calibrated sensor with 1.5 °C accuracy (–40 to 125 °C) - enables self-monitoring in sealed enclosures without external sensors |
Applications
| Smart Utility Metering | Wireless Sensor Node |
|---|---|
Use Scenario: Battery-powered gas/water meter with pulse counting, pressure sensing, and LoRaWAN backhaul. IC Role / Device Role / Timing Role: Main controller executing metrology algorithms, managing RTC-corrected timestamping, and coordinating low-duty-cycle radio transmission. Use Value: 0.6 µA Stop + RTC + 8 KB RAM retention enables 15-year battery life while preserving meter state and timekeeping between hourly reads. | Use Scenario: Industrial vibration monitor mounted on rotating equipment, sampling accelerometer data every 5 seconds. IC Role / Device Role / Timing Role: Data acquisition engine triggering ADC conversions, filtering samples in SRAM, and waking RF transceiver only upon threshold breach. Use Value: Dual comparators with wake-up capability detect amplitude excursions directly in analog domain - avoids continuous CPU polling and saves >90% active time. |
| Portable Medical Device | Asset Tracking Tag |
Use Scenario: Disposable ECG patch with electrode contact detection, lead-off monitoring, and Bluetooth LE telemetry. IC Role / Device Role / Timing Role: Analog front-end supervisor using comparators for lead-off detection, ADC for biopotential sampling, and BLE interface controller. Use Value: 12-bit ADC operating down to 1.65 V allows direct use of single CR2032 cell without boost converter - reducing BOM cost and board area. | Use Scenario: GPS-denied indoor asset tag logging temperature/humidity and reporting via NB-IoT when motion detected. IC Role / Device Role / Timing Role: System manager handling motion-triggered wakeup (via comparator), sensor readout, secure data logging to EEPROM, and cellular modem control. Use Value: 1 KB EEPROM with ECC stores tamper-proof event logs across 100k write cycles - meets industrial traceability requirements without external FRAM. |
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 | Same TSSOP20 package, but 16 KB Flash / 2 KB SRAM / no EEPROM - lacks data retention capability | Suitable for simpler control-only tasks without persistent parameter storage | Select when EEPROM is unnecessary and cost sensitivity outweighs long-term data integrity needs |
| STM32L051K8U6 | QFN32 package, 64 KB Flash / 8 KB SRAM / 2 KB EEPROM - higher memory, different footprint and pinout | Enables richer firmware (e.g., OTA update stack, TLS crypto) but requires PCB redesign | Choose when future scalability or enhanced security features justify layout change and higher BoM cost |
Compared with STM32L011F4P6, the STM32L031F4P6 adds 1 KB EEPROM with ECC and dual comparators - essential for field-deployed devices requiring nonvolatile configuration and analog event detection. Versus STM32L051K8U6, it trades package size and memory headroom for drop-in compatibility in legacy TSSOP20 designs.
Availability
STM32L031F4P6 is available at Aetrix Electronics and suitable for smart metering, wireless sensor networks, portable medical devices, and asset tracking tags requiring stable component supply across extended product lifecycles.
Supply support for STM32L031F4P6 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 ICs, sensors, and analog components for industrial, automotive, and consumer markets.
The STM32L0 series targets ultra-low-power embedded applications, emphasizing sub-µA standby operation, integrated analog peripherals, and robust memory integrity - specifically engineered for battery-operated edge devices with multi-year deployment requirements.
FAQ
What is the maximum operating frequency of the STM32L031F4P6?
The STM32L031F4P6 runs at up to 32 MHz using its internal 16 MHz HSI oscillator with PLL multiplication or an external crystal. This frequency is achievable across the full 1.65–3.6 V supply range and –40 to 125 °C temperature span, with dynamic voltage scaling maintaining performance while minimizing current draw in Run mode.
Does the STM32L031F4P6 support hardware encryption or secure boot?
No - the STM32L031F4P6 does not include hardware cryptographic accelerators (AES, SHA, PKA) or secure boot ROM. It relies on software-based security implementations. For secure firmware updates or data confidentiality, pairing with an external secure element (e.g., STSAFE-A) is recommended per ST's AN4821 guidelines.
Can the STM32L031F4P6 drive 5V logic interfaces directly?
Yes - up to 31 I/Os (including all PAx pins in TSSOP20) are 5V tolerant when configured as inputs, allowing direct connection to 5V UART, I²C, or digital sensors without level shifters. However, output voltage is limited to VDD (max 3.6 V), so external pull-ups to 5V are required for open-drain interfaces like I²C.
Is there a built-in temperature sensor, and how accurate is it?
Yes - the STM32L031F4P6 integrates a calibrated temperature sensor with ±1.5 °C accuracy over –40 to 125 °C. Calibration values are factory-programmed into system memory (addresses 0x1FF8 007A–0x1FF8 007F), enabling software compensation. It draws <1 µA during conversion and is typically used for die temperature monitoring rather than ambient measurement.
STM32L031F4P6 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:
- 16KB (16K 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:
STM32L031F4P6 FAQ
1.How can I place an order for STM32L031F4P6 through Aetrix?
Please submit a Request for Quotation (RFQ) for STM32L031F4P6 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 STM32L031F4P6 reliable?
The price and inventory of STM32L031F4P6 are updated periodically and may fluctuate due to market conditions. Stock and pricing data are typically refreshed every 24 hours. Quotation validity for STM32L031F4P6 is usually 5 days.
3.What payment methods are accepted for STM32L031F4P6?
We accept Wire Transfer, PayPal, Credit Card, Western Union, MoneyGram, and Escrow for STM32L031F4P6 transactions.
Note: Certain payment methods may incur a processing fee.
4.How is shipping managed for STM32L031F4P6?
STM32L031F4P6 orders can be shipped via leading logistics carriers, including DHL, UPS, FedEx, TNT, or Registered Mail.
Once your STM32L031F4P6 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 STM32L031F4P6?
For technical support, including STM32L031F4P6 datasheets, pinout diagrams, or application guidance, please contact our engineering support team. They can provide detailed documentation and assistance for your STM32L031F4P6 requirements.
6.How does Aetrix verify that STM32L031F4P6 is sourced from the original manufacturer or authorized distributors?
All STM32L031F4P6 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 STM32L031F4P6 meets industry standards.
7.What is the process for return or replacement of STM32L031F4P6?
All STM32L031F4P6 units undergo pre-shipment inspection (PSI). If there is an issue with STM32L031F4P6, 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 STM32L031F4P6 part is unused and in its original packaging.
Return procedure for STM32L031F4P6:
1.Submit a request within 90 days.
2.Obtain a Return Material Authorization (RMA) from Aetrix.
STM32L031F4P6 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…

