Send an Inquiry

To receive a quote for your project, please fill in the following information, and we’ll get back to you promptly.

Name*
Company*
Email Address*
Phone/WhatsApp
Part Number*
Quantity*
Message
Submit Inventory List

Please fill in the following information, and we’ll get back to you promptly.

Name*
Company*
Email Address*
Phone/WhatsApp
Upload My List
Message

STMicroelectronics STM32G031F6P6

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

Inventory:12,430

Please send an inquiry. Send us your inquiry, and we will respond immediately.

Part Number
Quantity*
Price
Name*
Company
Email*
Comments

Product details

Overview

STM32G031F6P6 from STMicroelectronics is a 32-bit Arm® Cortex®-M0+ microcontroller in TSSOP20 package, operating at up to 64 MHz with 32 KB Flash, 8 KB SRAM, and integrated 12-bit ADC (0.4 µs conversion), dual USARTs (one with LIN/ISO7816), and two I²C interfaces supporting Fast-mode Plus (1 Mbit/s). It targets cost-sensitive industrial control and smart sensor nodes requiring low-power operation down to 1.7 V and extended temperature support (–40°C to 125°C).

For engineers reviewing the STM32G031F6P6 datasheet, STM32G031F6P6 pinout, STM32G031F6P6 application, or STM32G031F6P6 equivalent, key selection criteria include its TSSOP20 footprint compatibility, 20 GPIOs with 5 V tolerance, dual USARTs with auto-baud detection, 125°C extended temperature rating, and hardware CRC unit for firmware integrity verification.

Technical Context

The STM32G031F6P6 implements an Arm Cortex-M0+ core with Memory Protection Unit (MPU) and supports three low-power modes-Stop, Standby, and Shutdown-with wakeup via LPUART or EXTI. Its clock system integrates dual oscillators: 4–48 MHz HSE and 32 kHz LSE with calibration, plus internal 16 MHz HSI (±1%) and 32 kHz LSI (±5%).

Peripheral interconnect uses a hierarchical AHB/APB bus matrix enabling concurrent DMA transfers and peripheral access. The 5-channel DMA controller supports flexible mapping to all major peripherals-including ADC, USART, SPI, and timers-with configurable priority and data width (8/16/32-bit).

Key Specifications

Parameter Value and Actual Design Meaning
CPU Core Arm Cortex-M0+, 64 MHz max - enables real-time deterministic control with <10 ns interrupt latency and MPU-enforced memory isolation.
Memory 32 KB Flash (securable area + readout protection), 8 KB SRAM with HW parity - supports secure boot and error-detecting RAM for safety-critical tasks.
ADC 12-bit, 0.4 µs conversion time, up to 16 external channels - delivers 2.5 MSPS sampling for motor current sensing or analog sensor digitization.
Timers 11 timers including one 128 MHz-capable advanced timer (TIM1), four 16-bit general-purpose, two low-power (LPTIM), and SysTick - enables precise PWM generation, encoder counting, and sub-millisecond timing in Stop mode.
Communication 2× I²C (Fast-mode Plus, 1 Mbit/s), 2× USART (one with LIN/ISO7816), 1× LPUART, 2× SPI (32 Mbit/s) - supports multi-protocol fieldbus connectivity and battery-backed serial communication.
Power Range 1.7–3.6 V supply with programmable BOR/PVD and VBAT backup - ensures robust operation across wide input rails and RTC retention during main power loss.
Temperature –40°C to +125°C ambient - qualified for under-hood automotive sensors, industrial PLC I/O modules, and high-ambient lighting controls.

Pinout & Package

TSSOP20 (YA) package: 20-pin thin shrink small outline package, 6.4 × 4.4 mm body, 0.65 mm pitch, ECOPACK2-compliant. Pin count and layout optimized for minimal PCB area in space-constrained applications such as smart meters and portable diagnostics.

Pin/Terminal Circuit Role Design Meaning
VDD Core & I/O supply Primary 1.7–3.6 V power input; decoupling required per datasheet section 5.1.6.
VSS Ground reference Dedicated analog/digital ground return; separate VSSA recommended for ADC accuracy.
NRST Active-low reset Asynchronous reset input with internal pull-up; accepts 1.65–5.5 V logic levels.
PA0–PA9 General-purpose I/O 10 of 20 GPIOs; PA0–PA3 support ADC1_IN0–IN3; PA2/PA3 support USART2_TX/RX.
PA13/PA14 SWD debug interface SWDIO and SWCLK pins - enable programming and real-time debugging without additional hardware.
VBAT RTC backup supply Accepts 1.65–3.6 V; powers RTC and backup registers during main power removal.

Key Features

Feature Design Value
Hardware CRC unit 32-bit polynomial calculation engine - accelerates firmware image validation and data packet integrity checks without CPU overhead.
5 V-tolerant I/Os Up to 16 pins tolerant to 5.5 V - simplifies level-shifting in mixed-voltage systems interfacing with legacy 5 V peripherals.
Low-power UART (LPUART) Wakeup from Stop/Standby using only LSE (32 kHz) clock - enables ultra-low-power sensor polling at <1 µA active current.
Programmable voltage detector (PVD) Configurable trip points (2.2–2.9 V in 0.1 V steps) - triggers interrupt or reset before brownout-induced state corruption.
Embedded temperature sensor Calibrated ±1.5°C accuracy over –40°C to 125°C - provides on-chip thermal monitoring without external components.

Applications

Industrial Sensor Node Smart Lighting Controller

Use Scenario: Compact environmental monitor measuring temperature, humidity, and CO₂ with wireless telemetry.

IC Role / Device Role / Timing Role: Main system controller executing sensor fusion, UART-based Modbus RTU communication, and periodic LPUART wakeup for battery-efficient reporting.

Use Value: 125°C rating allows enclosure mounting near heat sources; 32 KB Flash accommodates OTA update stack and sensor calibration tables.

Use Scenario: DALI-2 compliant LED driver managing dimming profiles, thermal derating, and fault logging.

IC Role / Device Role / Timing Role: DALI transceiver controller with dual USART (one configured for DALI physical layer), ADC for LED junction temperature monitoring, and TIM1 for precise PWM dimming.

Use Value: Hardware CRC ensures DALI command integrity; 5 V-tolerant I/Os interface directly with DALI bus without external level shifters.

Automotive Body Control Module Portable Medical Diagnostic Tool

Use Scenario: Door module controlling window lift, mirror adjustment, and interior lighting with LIN communication.

IC Role / Device Role / Timing Role: LIN slave node using USART2 with built-in LIN phy support, ADC for potentiometer feedback, and LPTIM for timeout supervision.

Use Value: Integrated LIN capability eliminates external transceiver; 125°C rating meets AEC-Q100 Grade 1 requirements for cabin-mounted modules.

Use Scenario: Handheld pulse oximeter acquiring analog PPG signals, computing SpO₂, and displaying results via SPI-driven OLED.

IC Role / Device Role / Timing Role: Signal acquisition controller running ADC oversampling at 16-bit effective resolution, processing FFT in SRAM, and driving display via SPI.

Use Value: 0.4 µs ADC conversion enables >2 MSPS sampling for motion artifact rejection; 8 KB SRAM with parity supports reliable real-time signal buffering.

Equivalent & Alternatives

The following parts are listed as comparable options for similar microcontroller applications.

Alternative Part Technical Difference Application Difference Selection Advice
STM32G031K6T6 LQFP32 package (32-pin), adds 4 more GPIOs and 1 extra USART channel vs. TSSOP20. Better suited for designs needing expanded peripheral routing or future I/O scalability. Select when board layout allows larger footprint and additional serial interfaces are required.
STM32G041F6P6 Same TSSOP20 package but includes USB 2.0 FS device interface and 64 KB Flash. Enables host-less firmware updates via USB mass storage class or CDC ACM virtual COM port. Choose when USB connectivity is mandatory and higher Flash density supports feature-rich firmware.

Compared with STM32G031K6T6, the F6P6 offers smaller footprint and lower assembly cost; versus STM32G041F6P6, it trades USB and extra Flash for lower BOM cost and reduced EMI sensitivity in noise-prone environments.

Availability

STM32G031F6P6 is available at Aetrix Electronics and suitable for industrial sensor nodes, smart lighting controllers, automotive body electronics, and portable medical diagnostics requiring stable component supply across extended temperature ranges and long production lifecycles.

Supply support for STM32G031F6P6 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 devices for industrial, automotive, and consumer markets.

The STM32G0 series targets cost-optimized, energy-efficient embedded applications with enhanced security features and simplified development - specifically engineered for smart sensors, IoT edge nodes, and resource-constrained control systems.

FAQ

Does STM32G031F6P6 support hardware encryption or secure boot?

No. The STM32G031F6P6 lacks dedicated cryptographic accelerators (AES, PKA) and does not implement secure boot with immutable root-of-trust. It provides readout protection (RDP) Level 1 and securable Flash area for basic IP protection, but secure firmware authentication requires external components or software-based solutions verified against ST's AN5029 guidelines.

What is the maximum achievable ADC sampling rate with hardware oversampling?

With 16× hardware oversampling enabled, the STM32G031F6P6 achieves 16-bit effective resolution at up to 156 kSPS. This is derived from its base 12-bit ADC's 2.5 MSPS rate, where oversampling ratio (OSR) of 16 reduces noise by √16 = 4×, extending resolution while maintaining usable throughput for precision sensor applications.

Can PA11 and PA12 be used as USB pins on this part?

No. PA11/PA12 are not routed to USB functionality on the STM32G031F6P6. USB is not implemented in the G031 subfamily; only the G041 and G071 variants include USB 2.0 FS peripheral. On this device, PA11/PA12 default to GPIO or alternate functions like TIM1_CH4 and TIM1_BKIN, respectively.

Is the TSSOP20 package RoHS and REACH compliant?

Yes. The STM32G031F6P6 in TSSOP20 (YA) package is ECOPACK2-compliant, meeting RoHS Directive 2011/65/EU and REACH Regulation (EC) No. 1907/2006, including full disclosure of SVHC substances below threshold limits and lead-free termination (matte tin plating).

STM32G031F6P6 Specifications

Product attributes
Attribute value
Manufacturer:
STMicroelectronics
Package/Case:
20-TSSOP (0.173", 4.40mm Width)
Series:
STM32G0
Packaging:
Tube
Product Status:
Active
Programmable:
Not Verified
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:
32KB (32K x 8)
Program Memory Type:
FLASH
EEPROM Size:
-
RAM Size:
8K x 8
Voltage - Supply (Vcc/Vdd):
1.7V ~ 3.6V
Data Converters:
A/D 17x12b SAR
Oscillator Type:
External, Internal
Operating Temperature:
-40°C ~ 85°C (TA)
Grade:
-
Qualification:
-
Mounting Type:
Surface Mount
Supplier Device Package:

STM32G031F6P6 FAQ

1.How can I place an order for STM32G031F6P6 through Aetrix?

Please submit a Request for Quotation (RFQ) for STM32G031F6P6 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 STM32G031F6P6 reliable?

The price and inventory of STM32G031F6P6 are updated periodically and may fluctuate due to market conditions. Stock and pricing data are typically refreshed every 24 hours. Quotation validity for STM32G031F6P6 is usually 5 days.

3.What payment methods are accepted for STM32G031F6P6?

We accept Wire Transfer, PayPal, Credit Card, Western Union, MoneyGram, and Escrow for STM32G031F6P6 transactions.

Note: Certain payment methods may incur a processing fee.

4.How is shipping managed for STM32G031F6P6?

STM32G031F6P6 orders can be shipped via leading logistics carriers, including DHL, UPS, FedEx, TNT, or Registered Mail.

Once your STM32G031F6P6 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 STM32G031F6P6?

For technical support, including STM32G031F6P6 datasheets, pinout diagrams, or application guidance, please contact our engineering support team. They can provide detailed documentation and assistance for your STM32G031F6P6 requirements.

6.How does Aetrix verify that STM32G031F6P6 is sourced from the original manufacturer or authorized distributors?

All STM32G031F6P6 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 STM32G031F6P6 meets industry standards.

7.What is the process for return or replacement of STM32G031F6P6?

All STM32G031F6P6 units undergo pre-shipment inspection (PSI). If there is an issue with STM32G031F6P6, 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 STM32G031F6P6 part is unused and in its original packaging.

Return procedure for STM32G031F6P6:

1.Submit a request within 90 days.

2.Obtain a Return Material Authorization (RMA) from Aetrix.

STM32G031F6P6 Tags

  • STM32G031F6P6
  • STM32G031F6P6 PDF
  • STM32G031F6P6 Datasheet
  • STM32G031F6P6 Specifications
  • STM32G031F6P6 Images
  • STMicroelectronics
  • STMicroelectronics STM32G031F6P6
  • Buy STM32G031F6P6
  • STM32G031F6P6 Price
  • STM32G031F6P6 Distributor
  • STM32G031F6P6 Supplier
  • STM32G031F6P6 Wholesale
Related Products
ATTINY4-TSHR
ATTINY4-TSHR

Microchip Technology

ATTINY10-TSHR
ATTINY10-TSHR

Microchip Technology

ATTINY10-TS8R
ATTINY10-TS8R

Microchip Technology

ATTINY202-SSNR
ATTINY202-SSNR

Microchip Technology

ATTINY202-SSFR
ATTINY202-SSFR

Microchip Technology

ATTINY402-SSNR
ATTINY402-SSNR

Microchip Technology

PIC16F15213T-I/MF
PIC16F15213T-I/MF

Microchip Technology

PIC16F15213-E/MF
PIC16F15213-E/MF

Microchip Technology

PIC10F200T-I/OT
PIC10F200T-I/OT

Microchip Technology

ATTINY412-SSNR
ATTINY412-SSNR

Microchip Technology

PIC10F202T-I/OT
PIC10F202T-I/OT

Microchip Technology

ATTINY404-SSNR
ATTINY404-SSNR

Microchip Technology

Tech Hub

Search

Search

PRODUCT

PRODUCT

PHONE

PHONE

USER

USER