STMicroelectronics STM32G031K8T6
- Part No.:
- STM32G031K8T6
- Manufacturer:
- STMicroelectronics
- Category:
- Microcontrollers
- Package:
- 32-LQFP
- Datasheet:
-
STM32G031K8T6.pdf
- Description:
- IC MCU 32BIT 64KB FLASH 32LQFP
- Quantity:
- Payment:

- Shipping:

Inventory:29,867
Please send an inquiry. Send us your inquiry, and we will respond immediately.
Product details
Overview
STM32G031K8T6 from STMicroelectronics is a 32-bit Arm® Cortex®-M0+ microcontroller in LQFP32 package, operating up to 64 MHz with 64 KB Flash, 8 KB SRAM, and integrated 12-bit ADC (0.4 µs conversion), dual USARTs (one with LIN/ISO7816), and RTC with alarm/wakeup. It targets cost-sensitive industrial control nodes, smart sensors, and battery-powered IoT edge devices requiring low-power operation down to Shutdown mode (200 nA).
For engineers reviewing the STM32G031K8T6 datasheet, STM32G031K8T6 pinout, STM32G031K8T6 application, or STM32G031K8T6 equivalent, key selection criteria include its 64 MHz Cortex-M0+ core with MPU, 5 V-tolerant GPIOs, dual I²C (one Fast-mode Plus), SWD debug support, and -40°C to 85°C temperature grade - all confirmed in DS12992 Rev 4.
Technical Context
The STM32G031K8T6 integrates an Arm Cortex-M0+ core with Memory Protection Unit (MPU) and executes from embedded Flash with securable area and hardware parity on SRAM. Its clock system combines 4–48 MHz HSE, 32 kHz LSE with calibration, and internal 16 MHz RC (±1 %) with PLL for precise timing control across operating modes.
Peripheral interconnect uses a dedicated AHB/APB matrix supporting concurrent DMA transfers (5-channel controller), 11 timers including one 128 MHz-capable advanced timer (TIM1), two low-power timers (LPTIM1/LPTIM2), and dual I²C interfaces - one with SMBus/PMBus and Stop-mode wakeup, the other with Fast-mode Plus (1 Mbit/s) and extra current sink.
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 for task isolation. |
| Memory | 64 KB Flash (with securable area & readout protection), 8 KB SRAM (HW parity) - supports firmware updates and robust data integrity in field-deployed systems. |
| ADC | 12-bit, 0.4 µs conversion time, up to 16 external channels - delivers high-speed analog sensing for motor current monitoring or sensor fusion. |
| Timers | 11 timers: 1x 16-bit advanced (TIM1), 4x 16-bit general-purpose, 2x 16-bit low-power, 2x watchdogs - enables motor commutation, PWM generation, and fail-safe timeout handling. |
| Communication | 2× I²C (Fast-mode Plus + SMBus), 2× USART (LIN/ISO7816 capable), 2× SPI (32 Mbit/s), 1× LPUART - supports multi-protocol connectivity in constrained-node applications. |
| Power Management | Voltage range 1.7–3.6 V; low-power modes: Sleep, Stop, Standby, Shutdown (200 nA typical); VBAT for RTC/backup registers - extends battery life in portable and energy-harvested systems. |
| GPIO | Up to 26 fast I/Os, multiple 5 V-tolerant - simplifies interface to legacy 5 V peripherals without level shifters. |
Pinout & Package
LQFP32 (7 × 7 mm, 0.8 mm pitch), ECOPACK2-compliant, with 26 user I/Os, 3 power pins (VDD, VSS, VDDA), 2 reset/debug (NRST, SWDIO/SWCLK), and dedicated VBAT supply.
| Pin/Terminal | Circuit Role | Design Meaning |
|---|---|---|
| PA0–PA15 | General-purpose I/O / Alternate function | Supports UART TX/RX, SPI SCK/MOSI/MISO, I²C SCL/SDA, ADC IN0–IN15, TIM CH1–CH4 - enables flexible peripheral mapping per board layout. |
| PB0–PB1 | General-purpose I/O / Alternate function | Configurable as ADC IN16–IN17, TIM3 CH1–CH2, or system control signals - expands analog input count and timer resources. |
| PC13–PC15 | RTC oscillator / Backup domain | Connects 32.768 kHz crystal for calendar RTC with alarm and periodic wakeup from Stop/Standby - ensures timekeeping during ultra-low-power states. |
| VDD/VSS | Main power supply / Ground | Separate analog/digital ground (VSSA/VSS) and supply (VDDA/VDD) reduce noise coupling into ADC and RTC circuits. |
| NRST | Active-low reset input | Accepts external push-button or supervisor IC reset signal; supports programmable BOR and PVD for voltage monitoring. |
Key Features
| Feature | Design Value |
|---|---|
| Secure Boot & Readout Protection | Hardware-enforced RDP Level 2 blocks Flash readout and debug access - prevents firmware reverse engineering in deployed devices. |
| Low-Power UART (LPUART) | Wakes CPU from Stop/Standby using RX line activity - enables event-driven communication without continuous polling, saving >90% runtime power. |
| Hardware CRC Unit | Dedicated 32-bit CRC engine accelerates firmware image verification and data packet integrity checks - reduces CPU load and improves boot/recovery reliability. |
| Temperature Sensor & VREFINT | Calibrated internal temperature sensor (±1.5°C accuracy) and 1.2 V reference buffer - enables self-calibration and ambient condition monitoring without external components. |
| SWD Debug Interface | 2-pin Serial Wire Debug (SWDIO/SWCLK) with traceless programming - supports in-circuit debugging and flash programming on space-constrained PCBs. |
Applications
| Industrial Motor Control | Smart Sensor Node |
|---|---|
Use Scenario: Brushless DC motor commutation in HVAC blowers or small pumps using hall-effect or encoder feedback. IC Role / Device Role / Timing Role: Real-time PWM generation via TIM1 advanced timer, ADC sampling of phase currents, and LIN bus communication to master controller. Use Value: 64 MHz core and 0.4 µs ADC enable sub-microsecond current loop closure; 5 V-tolerant GPIOs simplify interface to hall sensors. |
Use Scenario: Battery-powered environmental monitor measuring temperature, humidity, and CO₂ via I²C sensors. IC Role / Device Role / Timing Role: Host MCU managing sensor polling, data preprocessing, and LPUART transmission to gateway during periodic wakeup from Stop mode. Use Value: 200 nA Shutdown current and RTC alarm extend 10-year battery life; dual I²C interfaces allow daisy-chained sensor expansion. |
| POS Peripheral Controller | Medical Diagnostic Tool |
Use Scenario: Barcode scanner or thermal printer controller interfacing with host PC via USB-to-UART bridge and managing button/LED status. IC Role / Device Role / Timing Role: Dual USART operation: one for ISO7816 smart card interface, another for auto-baud rate detection on RS-232 link. Use Value: Integrated ISO7816 transceiver eliminates external level shifter; programmable BOR ensures reliable reset during unstable AC adapter transitions. |
Use Scenario: Portable ECG front-end acquiring analog biopotentials, filtering, and transmitting processed waveforms via Bluetooth module. IC Role / Device Role / Timing Role: High-precision ADC (12-bit, hardware oversampling to 16-bit) with VREFBUF reference, calibrated temperature sensor for gain drift compensation. Use Value: On-chip VREFINT and temperature sensor enable real-time ADC offset/gain correction; HW parity on SRAM prevents data corruption in safety-critical reads. |
Equivalent & Alternatives
The following parts are listed as comparable options for similar microcontroller applications.
| Alternative Part | Technical Difference | Application Difference | Selection Advice |
|---|---|---|---|
| STM32G041K8T6 | Same core, package, and memory size but adds USB 2.0 FS device interface and 1x additional USART. | Required where host-side USB enumeration or HID-class peripheral functionality is needed. | Select when USB connectivity is mandatory; otherwise, STM32G031K8T6 offers lower BOM cost and identical non-USB peripheral set. |
| NXP LPC812M101JDH20 | ARM Cortex-M0+, 30 MHz max, 16 KB Flash, no hardware CRC, no VBAT RTC, fewer timers and communication interfaces. | Suitable only for simpler control tasks without calendar RTC, secure boot, or high-speed ADC requirements. | Choose only if design constraints exclude ST's ecosystem tools (STM32CubeMX, HAL) and require NXP's LPCOpen support; lacks critical features for time-sensitive or secure deployments. |
Compared with STM32G031K8T6, the G041 adds USB at no Flash/SRAM penalty but increases cost and complexity, while the LPC812 sacrifices RTC, security, ADC performance, and low-power capability - making STM32G031K8T6 optimal for balanced cost, feature depth, and industrial-grade reliability.
Availability
STM32G031K8T6 is available at Aetrix Electronics and suitable for industrial motor control, smart sensor nodes, POS peripherals, and portable medical diagnostics requiring stable component supply across extended product lifecycles.
Supply support for STM32G031K8T6 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 entry-level embedded applications demanding high integration, ultra-low power, and robust security - optimized for cost-sensitive designs where Cortex-M0+ performance meets real-time control and connectivity needs without premium licensing or toolchain overhead.
FAQ
What is the maximum operating frequency and supported voltage range?
The STM32G031K8T6 operates at up to 64 MHz using its internal 16 MHz RC oscillator with PLL or external crystal sources. Its supply voltage range is strictly 1.7 V to 3.6 V - operation outside this range risks functional failure or permanent damage. The device includes programmable Brownout Reset (BOR) and Voltage Detector (PVD) to enforce safe voltage margins during brownout conditions.
Does it support hardware-based security features like secure boot or Flash protection?
Yes. The STM32G031K8T6 implements hardware-enforced Readout Protection (RDP) Level 2, which permanently disables debug access and Flash readout once activated. It also supports secure boot via option bytes and a dedicated securable Flash area, enabling cryptographic signature verification before application code execution - critical for preventing unauthorized firmware updates.
How many I/O pins are 5 V-tolerant, and what is their purpose?
Multiple GPIOs on Port A, B, and C are explicitly rated 5 V-tolerant (FT_e class), including PA0–PA15, PB0–PB1, and PC0–PC15 - totaling up to 26 pins. These tolerate 5 V inputs while powered from 1.7–3.6 V, eliminating external level shifters when interfacing with legacy 5 V logic, sensors, or industrial I/O modules - reducing BOM cost and PCB area.
What low-power modes are available, and what is the lowest achievable current draw?
The STM32G031K8T6 supports Sleep, Stop, Standby, and Shutdown modes. In Shutdown mode with RTC and backup registers disabled, typical current consumption is 200 nA at 25°C (VDD = 3.3 V). With RTC active and VBAT supplied, current rises to ~1.2 µA - verified in DS12992 Rev 4 Table 31 and Table 32 - enabling decade-long battery operation in metering and sensor applications.
STM32G031K8T6 Specifications
- Product attributes
- Attribute value
- Manufacturer:
- STMicroelectronics
- Package/Case:
- 32-LQFP
- Series:
- STM32G0
- Packaging:
- Tray
- 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:
- 30
- Program Memory Size:
- 64KB (64K 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 18x12b SAR
- Oscillator Type:
- External, Internal
- Operating Temperature:
- -40°C ~ 85°C (TA)
- Grade:
- -
- Qualification:
- -
- Mounting Type:
- Surface Mount
- Supplier Device Package:
STM32G031K8T6 FAQ
1.How can I place an order for STM32G031K8T6 through Aetrix?
Please submit a Request for Quotation (RFQ) for STM32G031K8T6 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 STM32G031K8T6 reliable?
The price and inventory of STM32G031K8T6 are updated periodically and may fluctuate due to market conditions. Stock and pricing data are typically refreshed every 24 hours. Quotation validity for STM32G031K8T6 is usually 5 days.
3.What payment methods are accepted for STM32G031K8T6?
We accept Wire Transfer, PayPal, Credit Card, Western Union, MoneyGram, and Escrow for STM32G031K8T6 transactions.
Note: Certain payment methods may incur a processing fee.
4.How is shipping managed for STM32G031K8T6?
STM32G031K8T6 orders can be shipped via leading logistics carriers, including DHL, UPS, FedEx, TNT, or Registered Mail.
Once your STM32G031K8T6 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 STM32G031K8T6?
For technical support, including STM32G031K8T6 datasheets, pinout diagrams, or application guidance, please contact our engineering support team. They can provide detailed documentation and assistance for your STM32G031K8T6 requirements.
6.How does Aetrix verify that STM32G031K8T6 is sourced from the original manufacturer or authorized distributors?
All STM32G031K8T6 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 STM32G031K8T6 meets industry standards.
7.What is the process for return or replacement of STM32G031K8T6?
All STM32G031K8T6 units undergo pre-shipment inspection (PSI). If there is an issue with STM32G031K8T6, 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 STM32G031K8T6 part is unused and in its original packaging.
Return procedure for STM32G031K8T6:
1.Submit a request within 90 days.
2.Obtain a Return Material Authorization (RMA) from Aetrix.
STM32G031K8T6 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…

