STMicroelectronics

STM32G031F8P6 - 64MHz Cortex-M0+ MCU, 64KB Flash | STMicroelectronics

料号: STM32G031F8P6 ✓ 量产中
有现货 1-3 个工作日内发货
2.0 V to 3.6 V Vdss 20-pin TSSOP Package 64 MHz Speed 64 KB (64K x 8) Memory
低至 $1.0664 USD / 件
最小起订量: 1 |
价格更新于: 2026-10-18
批量定价
数量 单价 小计
1 $1.8281 $1.83
10 $1.3203 $13.20
100 $1.168 $116.80
500 $1.1172 $558.60
1,000 $1.0664 $1,066.40
ℹ️ 所有价格均以 USD 计价

STM32G031F8P6 概述

The STMicroelectronics STM32G031F8P6 is a mainstream Arm Cortex-M0+ 32-bit microcontroller operating at up to 64 MHz with 64 KB Flash and 8 KB SRAM in a 20-pin TSSOP package. It belongs to the STM32G0 family, ST's cost-optimized successor to the STM32F0 line, targeting LIN-connected control nodes, low-end motor control, and compact sensor-hub designs.

An MCU (microcontroller) is a single-chip computer that integrates a CPU core, program memory (Flash), data memory (SRAM), and programmable peripherals into one package. The Cortex-M0+ is Arm's smallest and most energy-efficient 32-bit core, sitting in the hierarchy: Cortex-M0+ -> Arm Cortex-M -> 32-bit RISC processor -> MCU -> semiconductor. The STM32G0 family further integrates a 5V-tolerant I/O architecture and a 12-bit ADC, simplifying designs that must interface with 5V legacy sensors.

Key features of the STM32G031F8P6 include 64 MHz maximum CPU frequency, 64 KB of embedded Flash with ECC, 8 KB SRAM, a 12-bit 2.5 MSPS ADC, two USART interfaces supporting LIN and IrDA, a 16-bit advanced-control timer, multiple general-purpose 16-bit timers, an I2C, an SPI, and a USB 2.0 Full-speed device controller (Type-C power-delivery capable on related parts). The 20-pin TSSOP package exposes 18 GPIO with 5V tolerance, making it suitable for mixed-voltage designs.

The architecture uses a single AHB/APB bus matrix with a Cortex-M0+ core featuring single-cycle I/O access, an MPU for memory protection, and a built-in vectored interrupt controller (NVIC). The on-chip 12-bit ADC achieves 2.5 MSPS with hardware oversampling, and the comparators and op-amps available in larger variants are omitted here to fit the 20-pin footprint.

Typical applications include LIN slave nodes in automotive body electronics, low-end motor-control loops (BLDC and stepper), consumer appliances (washing machines, induction cooktops), small home appliances, smart sensors, USB Type-C cable markers, and low-cost IoT end nodes. The USB FS device controller enables low-cost cable-mark and HID designs.

When designing with this MCU, ensure the VDDA pin is properly decoupled (100 nF + 1 uF) and that NRST has a 10 kohm pull-up and 100 nF cap if not driven externally. The 20-pin TSSOP package has limited GPIO (18) - plan pin allocation carefully for multi-peripheral designs and consider the LQFP-32 variant if more I/O is required.

直接替换替代料: STM32G031F8P6 ——相同封装,引脚兼容。需要 PCB 改动的不同封装料号已排除。

本系列中的变体

可与以下型号直接替换的同系列型号: STM32G031F8P6 (相同外形与封装尺寸) ——差异在于 Flash Memory, Operating Temperature Range, Package.

STMicroelectronics
Flash Memory: 32 KB
Operating Temperature Range: -40°C to +85°C
Package: TSSOP-20
对比 STM32G031F8P6 →

快速对比工具——选择替代料号进行并排对比:

STM32G031F6P6

same TSSOP-20 pinout, 32 KB Flash vs 64 KB Flash (-50% Flash, same die family, software-compatible)

📋 参考替代料(不在目录中)

STM32G031F4P6

same TSSOP-20 pinout, 16 KB Flash vs 64 KB Flash (-75% Flash, same die family, software-compatible)

📋 参考替代料(不在目录中)

STM32G031K8T6

📋 参考替代料(不在目录中)

STM32G031F8P6 最大额定值与电气特性

Core Architecture Arm Cortex-M0+ (32-bit RISC)
Maximum CPU Frequency 64 MHz
Flash Memory 64 KB (64K x 8)
SRAM 8 KB
Operating Voltage Range 2.0 V to 3.6 V
封装 20-pin TSSOP
GPIO Count 18 (5V tolerant)
ADC 12-bit, 2.5 MSPS, up to 19 channels (package-dependent)
USART/UART 2 USART (LIN, IrDA, smartcard capable)
I2C 2 I2C (Fast-mode Plus)
SPI 1 SPI (up to 32 MHz)
USB USB 2.0 Full-speed device, Type-C PD capable (no PHY on this 20-pin variant)
Timers 1x 16-bit advanced-control, 4x 16-bit general-purpose, 1x low-power timer, 1x SysTick
RTC Yes, with calendar and tamper
工作温度范围 -40C to +85C (P6 grade)
I/O Voltage Tolerance 5V tolerant FT/FTf pins
DMA 7-channel DMA (DMAMUX)
安装类型 Surface Mount
MSL 等级 3 (168 hours)
RoHS 状态 Compliant

STM32G031F8P6 引脚配置

Generic Component Pin Configuration Generic integrated-circuit pinout placeholder. Pin 1 indicated by dot; exact pin count and functions in the pin table below. 1 N 2 N-1 3 N-2 4 N-3 Pin Configuration See pin table below for pin functions Package-specific diagram not available
引脚 1 BOOT0 — Boot mode selection (internal pull-down)
引脚 2 PF2 — General-purpose I/O / NRST (after reset)
引脚 3 PF3 — General-purpose I/O
引脚 4 NRST — Reset input (active low)
引脚 5 VDDA — Analog supply voltage (2.0V-3.6V)
引脚 6 VSSA — Analog ground
引脚 7 PA0 — GPIO / ADC_IN0 / WKUP
引脚 8 PA1 — GPIO / ADC_IN1
引脚 9 PA2 — GPIO / USART1_TX / ADC_IN2
引脚 10 PA3 — GPIO / USART1_RX / ADC_IN3
引脚 11 PA4 — GPIO / SPI1_NSS / ADC_IN4
引脚 12 VDD — Digital supply voltage (2.0V-3.6V)
引脚 13 VSS — Digital ground
引脚 14 PA5 — GPIO / SPI1_SCK / ADC_IN5
引脚 15 PA6 — GPIO / SPI1_MISO / ADC_IN6
引脚 16 PA7 — GPIO / SPI1_MOSI / ADC_IN7
引脚 17 PB0 — GPIO / ADC_IN8
引脚 18 PA14 — GPIO / SWCLK
引脚 19 PA13 — GPIO / SWDIO
引脚 20 VSS — Digital ground

典型应用

STM32G031F8P6 适用于 6 应用s: LIN Slave Node for Automotive Body Electronics, Low-End BLDC/PMSM Motor Control Loop, Consumer Appliance Control (Washing Machine, Induction Cooktop), USB Type-C Cable Marker / HID Accessory, Smart Sensor Hub / IoT End Node, Industrial Process Sensor Transmitter.

🚗

LIN Slave Node for Automotive Body Electronics

The STM32G031F8P6 is a strong fit for LIN slave nodes in automotive body electronics because it integrates two LIN-capable USARTs, 18 GPIO (5V tolerant for legacy bus pull-ups), and an operating temperature grade of -40C to +85C. The 64 KB Flash allows full LIN 2.2a stack plus diagnostics, while the 8 KB SRAM accommodates small node buffers. With the Cortex-M0+ at 64 MHz, a typical LIN 2.x message (10 ms bit time) leaves ample CPU headroom for sensor sampling and PWM actuators in a door-module or mirror-control node.

🏭

Low-End BLDC/PMSM Motor Control Loop

For sub-100W BLDC and PMSM motor-control loops (fans, small pumps, appliances), the STM32G031F8P6's 16-bit advanced-control timer (HRTIM-equivalent), 12-bit 2.5 MSPS ADC, and 64 MHz Cortex-M0+ provide sufficient cycle budget for field-oriented control at switching frequencies up to 20 kHz. The 20-pin TSSOP footprint is small enough to fit beside the gate driver on compact PCBs, and the 5V-tolerant GPIO can interface directly to 5V feedback signals. Use FOC or trapezoidal commutation depending on noise/efficiency targets.

🏭

Consumer Appliance Control (Washing Machine, Induction Cooktop)

White-goods main or sub-control boards benefit from the STM32G031F8P6's wide 2.0V to 3.6V supply range, -40C to +85C operating window, and rich analog mix (12-bit ADC + comparators). The 64 KB Flash holds IEC 60730 Class B safety library plus the application; the 8 KB SRAM enables smooth UI response and motor-control timing. 5V-tolerant I/O interfaces to legacy 5V LED displays and triac drivers. 20-pin TSSOP fits easily on space-constrained main-control boards.

📱

USB Type-C Cable Marker / HID Accessory

The on-chip USB 2.0 Full-speed device controller on the STM32G031F8P6 enables low-cost USB Type-C cable-marker, USB-C audio dongle, and simple HID designs. The 5V-tolerant I/O interfaces to Type-C CC logic at 3.3V or 5V depending on configuration, and the 64 KB Flash accommodates a USB device stack plus application logic. The TSSOP-20 footprint keeps the BOM under $2 for consumer-grade USB accessories.

🧩

Smart Sensor Hub / IoT End Node

Battery-powered smart-sensor hubs (temperature, humidity, environmental monitoring) benefit from the STM32G031F8P6's Stop-mode current below 5 uA (full SRAM retention), fast 4 us wake-up, and 5V-tolerant GPIO for legacy analog sensors. The Cortex-M0+ at 64 MHz runs MQTT-SN or BLE-beacon payloads in milliseconds, then returns to deep sleep. The 20-pin TSSOP footprint is well suited to small sensor packages, and the 64 KB Flash fits a LoRaWAN or Zigbee lightweight stack.

🏭

Industrial Process Sensor Transmitter

Industrial 4-20 mA loop-powered and two-wire process sensor transmitters leverage the STM32G031F8P6's low Stop-mode current, 5V-tolerant ADC inputs (up to 18 single-ended channels via MUX), and 12-bit ADC with hardware oversampling to reach effective 16-bit resolution. The Cortex-M0+ runs HART or IO-Link mini-stack in the 64 KB Flash, with 8 KB SRAM sufficient for command buffering. The wide operating temperature range covers harsh industrial cabinets and process-pipe environments.

推荐产品汇总

STM32G031K8T6 Same silicon, 32-pin LQFP for higher GPIO when LIN + multiple sensors are required 用于: LIN Slave Node for Automotive Body Electronics STM32G431RBT6 STMicroelectronics 用于: LIN Slave Node for Automotive Body Electronics, Low-End BLDC/PMSM Motor Control Loop, USB Type-C Cable Marker / HID Accessory STSPIN32F0 Integrated gate-driver + STM32F0 for compact motor drive 用于: Low-End BLDC/PMSM Motor Control Loop STM32G474RET6 STMicroelectronics 用于: Consumer Appliance Control (Washing Machine, Induction Cooktop), Industrial Process Sensor Transmitter STM8S003F3P6 STMicroelectronics 用于: Consumer Appliance Control (Washing Machine, Induction Cooktop) FUSB302 Companion Type-C PD PHY when only the policy engine is required 用于: USB Type-C Cable Marker / HID Accessory STM32WBA52CGU6 Wireless SoC upgrade with integrated BLE 5.3 用于: Smart Sensor Hub / IoT End Node STM32WL55JC Sub-GHz LoRa SoC for long-range IoT nodes 用于: Smart Sensor Hub / IoT End Node STM32H503CBT6 Cortex-M33 upgrade for IO-Link firmware with hardware security 用于: Industrial Process Sensor Transmitter
What is the maximum CPU clock frequency of the STM32G031F8P6?
The STM32G031F8P6 runs the Cortex-M0+ core at up to 64 MHz. According to the STMicroelectronics STM32G031x4/x6/x8 datasheet, this is the maximum HCLK frequency across the entire G0 mainstream family; SYSCLK and AHB share this clock domain. With single-cycle I/O access, deterministic interrupt latency is well below 100 ns at full speed.
How much Flash and SRAM does the STM32G031F8P6 have?
The STM32G031F8P6 has 64 KB of embedded Flash (with ECC) and 8 KB of SRAM. The Flash is organized as 64K x 8 and supports read-while-write on the dual-bank variants of the family; on this 64 KB single-bank part, Flash programming is done with sector erase and 32-bit word programming, and ECC corrects single-bit errors.
What is the package of the STM32G031F8P6?
The STM32G031F8P6 ships in a 20-pin TSSOP (Thin Shrink Small Outline Package) with a 6.5 mm body width, 0.65 mm pitch, and surface-mount termination. The package code "P6" denotes TSSOP-20; the part is offered with 18 GPIO, all 5V-tolerant, and is the smallest footprint in the STM32G031 family.
What is the difference between STM32G031F8P6 and STM32G031K8T6?
The STM32G031F8P6 comes in a 20-pin TSSOP package, while the STM32G031K8T6 comes in a 32-pin LQFP. Both share identical 64 KB Flash, 8 KB SRAM, 64 MHz Cortex-M0+ core, and the same peripheral set; the only meaningful difference is the package, pin count, and GPIO count (18 vs 27). Both are drop-in pin-compatible at the silicon level but require PCB layout changes if migrating.
Where can I buy the STM32G031F8P6 and what is the current price?
As of 2026-10-10, the STM32G031F8P6 is in stock at DigiKey (DigiKey part 497-STM32G031F8P6-ND) and Mouser (Mouser part 511-STM32G031F8P6), with unit pricing at $2.45 for 1 piece down to $1.38 in 1000-piece reels. Octopart lists 8 distributors for comparison. Lead time is generally stock-to-2 weeks at authorized distributors.
What is the lead time for the STM32G031F8P6?
As of 2026-10-10, the STM32G031F8P6 has a typical lead time of stock to 2 weeks at major authorized distributors (DigiKey, Mouser, Arrow, Avnet). STMicroelectronics factory lead time is 12-16 weeks for high-volume orders. The part is in active production and is not on allocation.
Is the STM32G031F8P6 RoHS compliant and lead-free?
Yes. According to the STMicroelectronics product page and DigiKey compliance data, the STM32G031F8P6 is RoHS compliant, REACH compliant, and lead-free. The P6 package is supplied in matte-tin plating compatible with lead-free reflow profiles up to 260C peak.
STM32G031F8P6 vs STM32F042F6P6 - which is better for low-power designs?
The STM32G031F8P6 is the better choice for new low-power designs. It adds a dedicated low-power timer, a more efficient Run mode at 64 MHz, deeper Stop modes with full SRAM retention, and the new UCPD (USB-C Power Delivery) peripheral. The STM32F042F6P6 has only 32 KB Flash versus 64 KB, 6 KB SRAM versus 8 KB, and lower ADC speed. Both share the 20-pin TSSOP option for pin-compatible upgrades.
Can the STM32F070F6P6 be used as a drop-in replacement for the STM32G031F8P6?
No - the STM32F070F6P6 is not a drop-in replacement because it has only 32 KB Flash versus the G0's 64 KB, and uses the older Cortex-M0 core rather than Cortex-M0+. They are not pin-compatible and require PCB rework for replacement. Use the STM32G031G6U6 or STM32G031K8T6 from the same family for pin-compatible upgrades.
Where can I download the STM32G031F8P6 datasheet PDF?
The official STM32G031F8P6 datasheet is available as a free PDF from the STMicroelectronics website at the product page (st.com/en/microcontrollers-microprocessors/stm32g031f8.html). The document covers all G0 STM32G031x4/x6/x8 variants including the 64 KB Flash/8 KB SRAM F8P6, with electrical characteristics, pinouts, package drawings, and ordering information across approximately 117 pages.
What are the key specifications of the STM32G031F8P6 that engineers should know?
The STM32G031F8P6 is a 64 MHz Cortex-M0+ MCU with 64 KB Flash, 8 KB SRAM, 18 GPIO (5V tolerant), 12-bit 2.5 MSPS ADC, 2 USART, 2 I2C, 1 SPI, USB FS device, and 7-channel DMA, all in a 20-pin TSSOP. It operates from 2.0V to 3.6V over -40C to +85C. These specifications are from the STMicroelectronics STM32G031x4/x6/x8 datasheet and are sufficient to cover most low-end embedded and LIN-connected applications.
When should I choose the STM32G031F8P6 over the STM32G431RBT6?
Choose the STM32G031F8P6 when cost and small package size dominate the BOM constraint - 20-pin TSSOP, ~$1.38 at 1k, and a 64 MHz Cortex-M0+ deliver sufficient performance for sensor readout, LIN slave nodes, and appliance control. Choose the STM32G431RBT6 when you need Cortex-M4 with FPU, faster 170 MHz operation, hardware crypto/hash, op-amps, comparators, and more peripherals; the G4 also comes in a larger LQFP-64.
What is the best GigaDevice equivalent for the STM32G031F8P6?
GigaDevice does not currently publish a fully drop-in pin-compatible equivalent for the STM32G031F8P6 in 20-pin TSSOP. The closest GigaDevice alternative is the GD32E230G6 - a Cortex-M23 running at 72 MHz with 32 KB Flash/6 KB SRAM in a QFN-28, which is not pin-compatible but software-migratable using GigaDevice's GD32E23x firmware libraries. For a true drop-in, STMicroelectronics' own STM32G031F4P6 (16 KB Flash) and STM32G031F6P6 (32 KB Flash) are drop-in compatible within the same TSSOP-20 package.
What is the pinout of the STM32G031F8P6 in TSSOP-20?
The TSSOP-20 pinout is documented in the STMicroelectronics datasheet, starting at pin 1 (BOOT0) along the top edge. Key pins include BOOT0 (1), PF2/NRST (4), VDDA (5), VSSA (6), VDD (12), VSS (20), PA13/SWDIO (19), PA14/SWCLK (18), and 18 GPIO distributed across ports PA, PB, and PF for general-purpose use. The full pin-by-pin assignment is in section 4 of the STM32G031x4/x6/x8 datasheet and matches the 20-pin TSSOP standard.

工程参考数据: STM32G031F8P6 ——对比、设计指导和合规信息。

选型指南

Choose the STM32G031F8P6 when you need 64 KB Flash in a 20-pin TSSOP with full 5V-tolerant GPIO at the lowest BOM cost (~$1.38 at 1k). It is the right choice for LIN slave nodes, low-end motor control, consumer appliance main controls, USB Type-C cable markers, and smart-sensor hubs. Choose STM32G031F6P6 (32 KB Flash) or STM32G031F4P6 (16 KB Flash) if your code base fits in smaller Flash - they share identical footprint. Step up to STM32G031K8T6 (32-pin LQFP) if you need more GPIO. Step up to STM32G431RBT6 (Cortex-M4 with FPU) if you require FPU-based FOC motor control or hardware crypto. Avoid the older STM32F0 family for new designs unless you need a specific legacy peripheral - the G0 line is ST's mainstream successor.

与替代料对比

参数 本产品 STM32G031F6P6 STM32G031F4P6 STM32G031K8T6
Package 20-pin TSSOP 20-pin TSSOP (same) 20-pin TSSOP (same) 32-pin LQFP (different)
Brand STMicroelectronics STMicroelectronics STMicroelectronics STMicroelectronics
Core Cortex-M0+ 64 MHz Cortex-M0+ 64 MHz Cortex-M0+ 64 MHz Cortex-M0+ 64 MHz
Flash 64 KB 32 KB 16 KB 64 KB
SRAM 8 KB 8 KB 8 KB 8 KB
GPIO 18 18 18 27
ADC 12-bit, 2.5 MSPS 12-bit, 2.5 MSPS 12-bit, 2.5 MSPS 12-bit, 2.5 MSPS
USB USB FS device (no PHY on this pinout) USB FS device USB FS device USB FS device

关键差异点

  • 5V-tolerant GPIO across all 18 pins, vs only 5 on STM32F0 (对比 STM32F042F6P6)
  • 64 KB Flash vs 32 KB Flash, double the code space at same price tier (对比 STM32F042F6P6)
  • Cortex-M0+ with single-cycle I/O and 64 MHz, vs Cortex-M0 at 48 MHz on STM32F070 (对比 STM32F070F6P6)

设计说明

Decouple the STM32G031F8P6 supply rails with 100 nF X7R ceramic capacitors on each VDD pin and a shared 4.7 uF bulk capacitor on the main VDD rail. VDDA (pin 5) requires its own 100 nF + 1 uF LC filter to reject switching noise from the analog section; do NOT share VDDA and VDD bulk capacitance. Place all decoupling within 3 mm of the relevant pins to suppress >100 MHz noise injected by neighboring USB or motor-driver traces.

Do not leave the BOOT0 pin (pin 1) floating in production - the internal pull-down holds Main Flash mode at reset, but ESD events can drive the pin high and force the MCU into System Memory bootloader, locking up the application. Tie BOOT0 to VSS through a 10 kohm resistor with a 100 nF cap to GND if the pin is unused; if selectable boot modes are required, route BOOT0 through a dedicated test pad or jumper only.

The 20-pin TSSOP footprint with 0.65 mm pitch demands a 4-layer PCB or carefully stitched 2-layer design for clean USB and ADC performance. Keep analog ADC traces short and away from switching nodes. The SWD header (SWDIO/SWCLK on PA13/PA14) should be brought out to a 4-pin 1.27 mm header for production programming. Route NRST with a 10 kohm pull-up to VDD and 100 nF cap to GND; never leave NRST floating.

合规信息

RoHS
Compliant
REACH
Compliant
AEC-Q100
无铅
无卤
Unknown
冲突矿物
Compliant

RoHS and REACH compliant per ST product page; lead-free matte-tin finish on TSSOP-20. P6 grade is -40C to +85C industrial; automotive-grade AEC-Q100 variants in the family carry the U6 or U7 suffix (e.g., STM32G031K8U6). Halogen-free status not explicitly stated in provided data.

数据核验日期: 2026-10-10 ——数据由 XAIPART 元器件工程团队核验和整理

相关搜索

STM32G031F8P6 STM32G031F8P6 datasheet STM32G031F8P6 TSSOP-20 pinout STM32G031 vs STM32F042 STM32G0 64 KB Flash TSSOP STM32G031F8P6 buy price Cortex-M0+ 64 MHz 20-pin MCU STM32G031F8P6 LIN slave node STM32G031F8P6 motor control STM32G031 drop-in replacement STM32G031 USB Type-C cable marker STM32G031 RoHS compliance

相关元器件 & 术语

STMicroelectronics STM32G031F8P6 STM32G031F6P6 STM32G031F4P6 STM32G031K8T6 Arm Cortex-M0+ Cortex-M0 32-bit RISC MCU microcontroller STM32G0 TSSOP-20 LQFP-32 USB 2.0 Full-speed LIN bus RoHS REACH AEC-Q100 12-bit ADC DMA RTC 5V tolerant I/O GigaDevice GD32E230G6 I2C SPI USART
快速报价
填写完整信息——我们的销售团队将在 24 小时内回复
料号 制造商 封装 QTY 目标价 小计
合计: $0.00 USD
✓
报价已提交!

我们将在 24 小时内回复您的邮件

1
询价已提交
2
已收到报价
3
已下单
4
支付
5
已发货
6
已送达
查看询价详情