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

- Shipping:

Inventory:828
Please send an inquiry. Send us your inquiry, and we will respond immediately.
Product details
Overview
STM32G051F8P6 from STMicroelectronics is a 32-bit Arm® Cortex®-M0+ microcontroller in TSSOP20 package, operating up to 64 MHz with 64 KB Flash, 18 KB SRAM, and integrated peripherals including two USARTs, two SPIs, two I²C interfaces, 12-bit ADC (16-channel), dual 12-bit DACs, RTC, and low-power timers - deployed in industrial sensor nodes requiring compact size, battery longevity, and real-time control.
For engineers reviewing the STM32G051F8P6 datasheet, STM32G051F8P6 pinout, STM32G051F8P6 application, or STM32G051F8P6 equivalent, key selection criteria include TSSOP20 footprint compatibility, 1.7–3.6 V supply range, 64 MHz max CPU frequency, 12-bit ADC accuracy (±1 LSB INL), and support for SWD debug interface in space-constrained embedded designs.
Technical Context
The STM32G051F8P6 implements an Arm Cortex-M0+ core with Memory Protection Unit (MPU), supporting TrustZone-like secure execution isolation and hardware-based securable flash area. It integrates a 128 MHz-capable advanced timer (TIM1) for motor control and two low-power timers (LPTIM1/LPTIM2) enabling sub-microamp wake-up from Stop/Standby modes.
Clock architecture includes dual oscillators: 4–48 MHz HSE crystal input and 32 kHz LSE with calibration, plus internal 16 MHz HSI and 32 kHz LSI RC sources - all feeding a programmable PLL for precise system clock derivation and dynamic voltage scaling coordination across Run, Sleep, Stop, and Shutdown power modes.
Key Specifications
| Parameter | Value and Actual Design Meaning |
|---|---|
| CPU Core | Arm Cortex-M0+, 64 MHz max - enables deterministic real-time task scheduling in resource-constrained firmware. |
| Flash / RAM | 64 KB Flash (with securable area), 18 KB SRAM (16 KB with HW parity) - supports robust firmware updates and data integrity in industrial logging. |
| ADC | 12-bit, 0.4 µs conversion, up to 16 external channels - delivers high-resolution analog sensing for temperature, pressure, or current monitoring. |
| DACs | Two 12-bit DACs with sample-and-hold - enables simultaneous analog output generation for calibration signals or actuator biasing. |
| Timers | 14 timers including TIM1 (128 MHz capable), LPTIM1/LPTIM2, SysTick, WWDG/IWDG - provides flexible timing for PWM, pulse counting, watchdog supervision, and RTC alarm wakeup. |
| Communication | 2× I²C (Fast-mode Plus, 1 Mbit/s), 2× USART (LIN/ISO7816/IrDA), 1× LPUART, 2× SPI (32 Mbit/s) - supports mixed-speed wired protocols in smart metering and sensor fusion systems. |
| Supply Range | 1.7 V to 3.6 V - allows direct integration with Li-ion, coin-cell, or regulated 3.3 V rails without external level-shifting. |
Pinout & Package
TSSOP20 (6.4 × 4.4 mm) package with 18 general-purpose I/Os, all mappable to external interrupt vectors; 5 V-tolerant on selected pins (PA0–PA15, PB0–PB1, PF0–PF1); VDD/VSS pairs distributed for noise suppression; dedicated NRST, BOOT0, SWDIO/SWCLK pins for programming and debug.
| Pin/Terminal | Circuit Role | Design Meaning |
|---|---|---|
| VDD, VSS | Power supply inputs | Dual VDD/VSS pairs ensure stable core and I/O rail decoupling in noisy industrial environments. |
| NRST | Active-low reset input | Asynchronous reset with internal pull-up; accepts external push-button or supervisor IC assertion. |
| BOOT0 | Boot mode selection | High at power-on forces system memory boot; used for factory recovery or bootloader entry. |
| SWDIO / SWCLK | Serial Wire Debug interface | 2-pin debug path enables firmware flashing and real-time trace without JTAG overhead. |
| PA0–PA15, PB0–PB1, PF0–PF1 | General-purpose I/Os | Up to 18 GPIOs with interrupt capability; multiple pins support 5 V tolerance for legacy peripheral interfacing. |
Key Features
| Feature | Design Value |
|---|---|
| Low-power operation | Shutdown mode draws ≤100 nA (typ.) with RTC + backup registers active - extends battery life in wireless sensor endpoints. |
| Hardware CRC unit | Dedicated CRC-32 engine accelerates firmware image validation and communication packet integrity checks. |
| Programmable BOR/PVD | Brownout reset threshold adjustable in 4 levels; voltage detector triggers interrupt or reset below user-defined VDD threshold. |
| Secure flash area | Configurable securable memory region prevents unauthorized readout or modification of bootloader or cryptographic keys. |
| 96-bit unique ID | Factory-programmed serial number enables device authentication and secure provisioning in IoT deployments. |
Applications
| Industrial Sensor Node | Smart Meter Interface |
|---|---|
Use Scenario: Compact environmental monitor measuring temperature, humidity, and CO₂ using analog sensors and UART-connected gas modules. IC Role / Device Role / Timing Role: Main controller executing sensor fusion, local decision logic, and RS-485/UART data aggregation. Use Value: Dual DACs generate reference voltages for sensor excitation; LPUART enables ultra-low-power periodic wake-up and transmission. | Use Scenario: Sub-metering module interfacing with energy meter ICs via SPI and communicating over PLC or RF mesh networks. IC Role / Device Role / Timing Role: Protocol bridge and data concentrator managing time-synchronized sampling and encrypted payload packaging. Use Value: RTC with calendar alarm ensures precise 15-min interval readings; 64 KB Flash stores firmware and historical logs securely. |
| Portable Medical Device | Home Automation Controller |
Use Scenario: Battery-powered pulse oximeter acquiring analog PPG signals and driving OLED display via SPI. IC Role / Device Role / Timing Role: Signal acquisition controller with real-time ADC sampling, digital filtering, and display timing management. Use Value: 12-bit ADC achieves <1% measurement error at 100 kSPS; low-power Stop mode reduces idle current to 1.3 µA. | Use Scenario: Zigbee/Z-Wave edge gateway aggregating BLE sensor data and translating to IP-based cloud protocols. IC Role / Device Role / Timing Role: Peripheral hub coordinating concurrent UART (BLE), SPI (flash), and I²C (sensor) traffic with deterministic latency. Use Value: Two Fast-mode Plus I²C interfaces support multi-sensor daisy-chaining; 18 KB SRAM buffers burst data before encryption. |
Equivalent & Alternatives
The following parts are listed as comparable options for similar microcontroller applications.
| Alternative Part | Technical Difference | Application Difference | Selection Advice |
|---|---|---|---|
| STM32G031F8P6 | 32 KB Flash, 8 KB SRAM, same peripherals and pinout - reduced memory capacity only. | Suitable for simpler firmware with no OTA update or extended logging requirements. | Select when code size remains under 28 KB and no secure boot partitioning is needed. |
| STM32G071F8P6 | 128 KB Flash, 36 KB SRAM, added USB 2.0 FS, more timers and DMA channels - larger die, same TSSOP20 package. | Required for USB-CDC virtual COM port, larger RTOS workloads, or dual-bank firmware updates. | Choose when USB connectivity or >64 KB application code is mandatory; shares identical pinout and layout. |
Compared with STM32G031F8P6, the STM32G051F8P6 offers double Flash/RAM for field-upgradable firmware and enhanced security features; versus STM32G071F8P6, it trades USB and extra memory for lower cost and identical footprint where USB is unnecessary.
Availability
STM32G051F8P6 is available at Aetrix Electronics and suitable for industrial sensor nodes, smart meter interfaces, portable medical devices, and home automation controllers requiring stable component supply, long-term lifecycle assurance, and ECOPACK2-compliant packaging.
Supply support for STM32G051F8P6 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 STM32G0 series targets cost-sensitive, power-efficient embedded applications - delivering Cortex-M0+ performance with advanced low-power modes, secure boot, and rich analog integration in minimal-footprint packages.
FAQ
What is the maximum operating frequency and voltage range of the STM32G051F8P6?
The STM32G051F8P6 operates at up to 64 MHz CPU frequency across a supply voltage range of 1.7 V to 3.6 V. Its internal voltage regulator supports dynamic scaling between Run, Sleep, and Low-power Run modes, with guaranteed timing performance down to 1.7 V - enabling direct use with single-cell Li-ion or alkaline batteries without external regulators.
Does the STM32G051F8P6 support hardware encryption or secure boot features?
Yes - it includes a securable flash area configurable via option bytes to prevent readout or execution of protected regions, and supports secure firmware installation through its hardware CRC unit and programmable readout protection (RDP) levels. While it lacks dedicated AES engines, the MPU enforces memory access isolation, and the 96-bit unique ID enables device binding in external cryptographic workflows.
Can the STM32G051F8P6 drive 5 V logic peripherals directly?
Yes - up to 16 GPIO pins (PA0–PA15, PB0–PB1, PF0–PF1) are explicitly rated as 5 V-tolerant in the datasheet, allowing direct connection to 5 V UART transceivers, I²C pull-ups, or legacy SPI peripherals without level shifters. However, VDD must remain within 1.7–3.6 V, and output drive strength is specified for 3.3 V logic levels only.
What debug interface does the STM32G051F8P6 use, and how many pins are required?
The STM32G051F8P6 uses Serial Wire Debug (SWD), requiring only two physical pins: SWDIO (bidirectional data) and SWCLK (clock). This 2-pin interface supports full programming, real-time debugging, and trace capabilities via standard ST-LINK v2/v3 probes - eliminating the need for larger JTAG headers in space-constrained PCB layouts.
STM32G051F8P6 Specifications
- Product attributes
- Attribute value
- Manufacturer:
- STMicroelectronics
- Package/Case:
- 20-TSSOP (0.173", 4.40mm Width)
- Series:
- STM32G0
- Packaging:
- Bulk
- Product Status:
- Active
- Programmable:
- -
- Core Processor:
- ARM® Cortex®-M0+
- Core Size:
- 32-Bit Single-Core
- Speed:
- 64MHz
- Connectivity:
- I2C, IrDA, LINbus, SPI, SmartCard, UART/USART
- Peripherals:
- Brown-out Detect/Reset, DMA, I2S, POR, PWM, WDT
- Number of I/O:
- 18
- Program Memory Size:
- 64KB (64K x 8)
- Program Memory Type:
- FLASH
- EEPROM Size:
- -
- RAM Size:
- 18K x 8
- Voltage - Supply (Vcc/Vdd):
- 1.7V ~ 3.6V
- Data Converters:
- A/D 16x12b SAR; D/A 2x12b
- Oscillator Type:
- External, Internal
- Operating Temperature:
- -40°C ~ 85°C (TA)
- Grade:
- -
- Qualification:
- -
- Mounting Type:
- Surface Mount
- Supplier Device Package:
STM32G051F8P6 FAQ
1.How can I place an order for STM32G051F8P6 through Aetrix?
Please submit a Request for Quotation (RFQ) for STM32G051F8P6 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 STM32G051F8P6 reliable?
The price and inventory of STM32G051F8P6 are updated periodically and may fluctuate due to market conditions. Stock and pricing data are typically refreshed every 24 hours. Quotation validity for STM32G051F8P6 is usually 5 days.
3.What payment methods are accepted for STM32G051F8P6?
We accept Wire Transfer, PayPal, Credit Card, Western Union, MoneyGram, and Escrow for STM32G051F8P6 transactions.
Note: Certain payment methods may incur a processing fee.
4.How is shipping managed for STM32G051F8P6?
STM32G051F8P6 orders can be shipped via leading logistics carriers, including DHL, UPS, FedEx, TNT, or Registered Mail.
Once your STM32G051F8P6 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 STM32G051F8P6?
For technical support, including STM32G051F8P6 datasheets, pinout diagrams, or application guidance, please contact our engineering support team. They can provide detailed documentation and assistance for your STM32G051F8P6 requirements.
6.How does Aetrix verify that STM32G051F8P6 is sourced from the original manufacturer or authorized distributors?
All STM32G051F8P6 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 STM32G051F8P6 meets industry standards.
7.What is the process for return or replacement of STM32G051F8P6?
All STM32G051F8P6 units undergo pre-shipment inspection (PSI). If there is an issue with STM32G051F8P6, 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 STM32G051F8P6 part is unused and in its original packaging.
Return procedure for STM32G051F8P6:
1.Submit a request within 90 days.
2.Obtain a Return Material Authorization (RMA) from Aetrix.
STM32G051F8P6 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…

