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

- Shipping:

Inventory:809
Please send an inquiry. Send us your inquiry, and we will respond immediately.
Product details
Overview
STM32L031F4P3 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–3.6 V across –40 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 STM32L031F4P3 datasheet, STM32L031F4P3 pinout, STM32L031F4P3 application, or STM32L031F4P3 equivalent, key selection criteria include standby current (0.23 µA), RTC-enabled Stop mode (0.6 µA with 8 KB RAM retention), 5 µs Flash wakeup time, and 31 I/Os with 5V tolerance - critical for energy-constrained industrial and IoT edge devices.
Technical Context
The STM32L031F4P3 integrates a Cortex-M0+ core 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 calibration, and PLL for CPU clock generation. Its low-power architecture includes five operational modes - Run, Sleep, Low-power Run, Stop, and Standby - each with distinct peripheral enablement and current profiles.
Memory subsystem includes ECC-protected 16 KB Flash, 8 KB SRAM, and 1 KB data EEPROM with write endurance >300k cycles and data retention >20 years at 85 °C. Analog peripherals are fully functional down to 1.65 V supply, enabling reliable operation in brownout-prone environments.
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 (ECC), 8 KB SRAM, 1 KB EEPROM (ECC) - supports robust firmware storage and nonvolatile parameter retention |
| Supply Voltage Range | 1.65 V to 3.6 V - compatible with single-cell Li-ion, coin cell, and 3.3 V rail systems |
| Ultra-Low-Power Modes | 0.23 µA Standby (2 wake pins), 0.6 µA Stop + RTC + 8 KB RAM - extends battery life to multi-year deployments |
| ADC | 12-bit, 1.14 Msps, 10-channel - provides high-resolution sensor acquisition without external signal conditioning |
| Timers & Peripherals | 8 timers (including ultra-low-power LPTIM), 1x USART, 1x UART, 2x SPI, 1x I²C, 7-channel DMA - supports mixed-signal timing, communication, and data movement |
| I/O Capability | 19 GPIOs (31 total I/Os on larger packages; F4P3 uses TSSOP20 with 19 usable pins), 31 I/Os 5V tolerant - simplifies level-shifting in mixed-voltage systems |
Pinout & Package
TSSOP20 (6.5 × 4.4 mm, 0.65 mm pitch), ECOPACK®2-compliant, surface-mount package optimized for compact industrial and portable designs.
| 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 | Dedicated analog/digital ground return; PCB layout must minimize impedance |
| NRST | Active-low reset input | Accepts external reset pulse or internal BOR/POR; 5 V tolerant with external pull-up |
| PA0–PA9 | General-purpose I/Os with alternate functions | Support ADC_IN0–IN9, USART2_TX/RX, SPI1_SCK/MOSI/MISO, I²C1_SCL/SDA - configurable per application need |
| SWDIO / SWCLK | Serial Wire Debug interface | Enables programming and real-time debugging via 2-pin SWD; no dedicated JTAG pins required |
| BOOT0 | Boot mode selection | High at reset enters system memory bootloader (USART/SPI); tied low for Flash execution |
Key Features
| Feature | Design Value |
|---|---|
| Ultra-low-power BOR | 5 selectable thresholds (1.6–2.8 V) ensure reliable reset during battery sag without external supervisor |
| Programmable voltage detector (PVD) | Monitors VDD against 8 user-selectable thresholds to trigger interrupts before brownout |
| Embedded 32 kHz RTC oscillator | Calibrated ±100 ppm over –40 to +85 °C - eliminates external crystal for timekeeping |
| Pre-programmed bootloader | Factory-loaded USART/SPI bootloader enables field firmware updates without debugger |
| 96-bit unique ID | Hardware-assigned serial number for secure device authentication and license binding |
Applications
| Smart Utility Metering | Wireless Sensor Node |
|---|---|
Use Scenario: Battery-powered gas/water meter with pulse counting, temperature sensing, and periodic RF transmission. IC Role / Device Role / Timing Role: Main controller managing sensor acquisition, RTC-based scheduling, low-power sleep/wakeup, and UART-to-Sub-GHz transceiver interface. Use Value: 0.23 µA Standby current and 5 µs wakeup from Flash enable >10-year battery life with daily reporting. | Use Scenario: Environmental monitoring node (temp/humidity/pressure) deployed in remote locations with solar charging. IC Role / Device Role / Timing Role: System-on-chip host executing sensor fusion, data logging to EEPROM, and scheduled BLE/Wi-SUN transmissions. Use Value: 1 KB ECC EEPROM retains calibration data and event logs across power cycles without external FRAM/NVRAM. |
| Industrial Predictive Maintenance | Portable Medical Device |
Use Scenario: Vibration-sensing module attached to motor bearings, analyzing FFT in real time and triggering alerts. IC Role / Device Role / Timing Role: Real-time signal processor using DMA-accelerated ADC sampling, timer-triggered FFT windows, and watchdog-monitored execution. Use Value: 76 µA/MHz efficiency and 12-bit ADC with 1.14 Msps support high-fidelity waveform capture within thermal/power limits. | Use Scenario: Handheld blood glucose meter requiring precise analog front-end, button interface, and LCD driver. IC Role / Device Role / Timing Role: Mixed-signal controller interfacing electrochemical sensor, driving segment LCD, and managing button debouncing and USB charging detection. Use Value: Dual ultra-low-power comparators operate down to 1.65 V for battery voltage monitoring and sensor threshold detection without additional ICs. |
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 |
|---|---|---|---|
| STM32L011F4P3 | Same TSSOP20 package, but only 16 KB Flash, 2 KB SRAM, no EEPROM, and no RTC calibration register | Lacks RTC accuracy and nonvolatile data storage - unsuitable for time-stamped logging or long-term calibration retention | Select when cost sensitivity outweighs EEPROM/RTC needs and firmware fits in smaller memory |
| STM32L051K8U6 | QFN32 package, 64 KB Flash, 8 KB SRAM, 2 KB EEPROM, full RTC calendar, and enhanced analog (2x ADC, 2x OPAMP) | Higher pin count and memory enable complex sensor fusion and USB connectivity - not drop-in compatible | Choose for next-generation designs requiring scalability, USB DFU, or dual ADC simultaneous sampling |
Compared with STM32L011F4P3, the STM32L031F4P3 adds calibrated RTC and 1 KB EEPROM for time-aware data integrity; versus STM32L051K8U6, it trades package size and memory for lower BOM cost and proven qualification in space-constrained metering designs.
Availability
STM32L031F4P3 is available at Aetrix Electronics and suitable for smart metering, wireless sensor networks, industrial predictive maintenance, and portable medical devices requiring stable component supply across extended product lifecycles.
Supply support for STM32L031F4P3 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, emphasizing energy efficiency, integrated peripherals, and long-term reliability in battery-operated and energy-harvesting systems.
FAQ
What is the maximum operating frequency and core type of the STM32L031F4P3?
The STM32L031F4P3 features an Arm Cortex-M0+ core rated for up to 32 MHz operation. Its 0.95 DMIPS/MHz performance delivers efficient real-time processing while maintaining ultra-low active current (76 µA/MHz). The core supports Thumb-2 instruction set and includes a single-cycle multiplier, making it suitable for deterministic control loops and sensor data preprocessing without external co-processors.
Does the STM32L031F4P3 support hardware encryption or secure boot?
No, the STM32L031F4P3 does not integrate hardware cryptographic accelerators (AES, SHA, PKA) or secure boot ROM. It lacks tamper detection, secure memory isolation, or one-time programmable (OTP) key storage. For secure firmware updates or data confidentiality, external secure elements or software-based lightweight crypto (e.g., ChaCha20) must be implemented - unlike higher-tier STM32L4/L5 series that include TRNG and AES-256.
Can the STM32L031F4P3 drive a standard 16x2 character LCD directly?
Yes - the STM32L031F4P3 supports static and 2/3/4-mux LCD driving via its built-in LCD controller (available on specific packages like LQFP48), but the TSSOP20 variant (F4P3) does not include LCD segment drivers. For this package, direct LCD driving is not supported; external LCD driver ICs or GPIO-based segment control (with appropriate voltage translation) are required for character displays.
What debug interfaces are supported, and is JTAG available?
The STM32L031F4P3 supports Serial Wire Debug (SWD) only - using SWDIO and SWCLK pins - with full breakpoint, watchpoint, and memory access capability via standard ARM CoreSight infrastructure. JTAG is not implemented on this device; the 4-pin JTAG header cannot be used. SWD requires only two signal lines plus GND, reducing PCB routing complexity and enabling debugging in space-constrained layouts.
STM32L031F4P3 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:
- 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 ~ 125°C (TA)
- Grade:
- -
- Qualification:
- -
- Mounting Type:
- Surface Mount
- Supplier Device Package:
STM32L031F4P3 FAQ
1.How can I place an order for STM32L031F4P3 through Aetrix?
Please submit a Request for Quotation (RFQ) for STM32L031F4P3 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 STM32L031F4P3 reliable?
The price and inventory of STM32L031F4P3 are updated periodically and may fluctuate due to market conditions. Stock and pricing data are typically refreshed every 24 hours. Quotation validity for STM32L031F4P3 is usually 5 days.
3.What payment methods are accepted for STM32L031F4P3?
We accept Wire Transfer, PayPal, Credit Card, Western Union, MoneyGram, and Escrow for STM32L031F4P3 transactions.
Note: Certain payment methods may incur a processing fee.
4.How is shipping managed for STM32L031F4P3?
STM32L031F4P3 orders can be shipped via leading logistics carriers, including DHL, UPS, FedEx, TNT, or Registered Mail.
Once your STM32L031F4P3 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 STM32L031F4P3?
For technical support, including STM32L031F4P3 datasheets, pinout diagrams, or application guidance, please contact our engineering support team. They can provide detailed documentation and assistance for your STM32L031F4P3 requirements.
6.How does Aetrix verify that STM32L031F4P3 is sourced from the original manufacturer or authorized distributors?
All STM32L031F4P3 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 STM32L031F4P3 meets industry standards.
7.What is the process for return or replacement of STM32L031F4P3?
All STM32L031F4P3 units undergo pre-shipment inspection (PSI). If there is an issue with STM32L031F4P3, 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 STM32L031F4P3 part is unused and in its original packaging.
Return procedure for STM32L031F4P3:
1.Submit a request within 90 days.
2.Obtain a Return Material Authorization (RMA) from Aetrix.
STM32L031F4P3 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
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…
LDO regulator guide covering low dropout voltage, power dissipation, thermal design, PSRR, output noise, capacitor stability, adjustable LDO circuits, LDO vs buck converter and datasheet selection chec…
Conditional Access Module guide covering CAM meaning, CI/CI+ interface, smart card authorization, DVB security workflow, TV and set-top box compatibility, internal electronics, ESD protection, connecto…
Guide to electronic component obsolescence covering EOL risk, PCN/PDN notices, last-time buy planning, replacement options, form-fit-function validation, counterfeit risk and BOM lifecycle management.
18650 battery guide covering lithium-ion cell basics, 3.6V/3.7V voltage, 4.2V charging, mAh and Wh capacity, protected cells, chargers, BMS, series-parallel packs, holders, welding and sourcing checks.…
Hall effect sensor guide covering working principle, linear and digital sensors, Arduino circuits, current sensing, speed detection, automotive applications, A3144 examples, signal filtering and datash…
Product Change Notification guide for electronic components, covering PCN meaning, PCN vs PDN/EOL, common change types, risk levels, form-fit-function review, engineering validation, BOM control, LTB/L…
A practical guide to blend door actuators, covering HVAC function, symptoms, location, AC and heater issues, reset and calibration, replacement cost, electrical diagnosis, compatibility checks, and rep…

