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

- Shipping:

Inventory:4,830
Please send an inquiry. Send us your inquiry, and we will respond immediately.
Product details
Overview
STM32G031K8T6U from STMicroelectronics is a 32-bit Arm® Cortex®-M0+ microcontroller in UFQFPN32 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 and smart sensor nodes requiring low-power operation down to Shutdown mode (200 nA) and robust 5 V-tolerant I/Os.
For engineers reviewing the STM32G031K8T6U datasheet, STM32G031K8T6U pinout, STM32G031K8T6U application, or STM32G031K8T6U equivalent, key selection criteria include its 64 MHz CPU frequency, 64 KB securable Flash with ROP support, 11 timers (including two low-power LPTIMs), dual Fast-mode Plus I²C interfaces, and SWD debug interface - all validated for operation across -40°C to 125°C ambient.
Technical Context
The STM32G031K8T6U implements an Arm Cortex-M0+ core with Memory Protection Unit (MPU), supporting TrustZone-like isolation via readout protection (RDP) levels and secure boot configuration. Its clock system integrates four oscillators: 4–48 MHz HSE, 32 kHz LSE with calibration, 16 MHz HSI (±1%), and 32 kHz LSI (±5%), enabling precise timing for RTC and low-power wakeups.
Peripheral interconnect uses a hierarchical AHB/APB bus matrix with DMA controller (5 channels) and DMAMUX for flexible peripheral-to-memory transfers. Analog subsystem includes calibrated temperature sensor, VREFINT reference, VBAT monitoring, and VREFBUF - all accessible via dedicated ADC channels and usable in Stop/Standby modes.
Key Specifications
| Parameter | Value and Actual Design Meaning |
|---|---|
| CPU Core | Arm Cortex-M0+, 64 MHz max - delivers deterministic real-time response for motor control and protocol stacks. |
| Memory | 64 KB Flash (with securable area & ROP), 8 KB SRAM (HW parity) - enables firmware updates with integrity checking and data logging resilience. |
| ADC | 12-bit, 0.4 µs conversion, 16 external channels - supports fast sampling of analog sensors without external oversampling hardware. |
| Timers | 11 timers: 1x advanced-control (TIM1), 4x general-purpose (16-bit), 2x low-power (LPTIM1/2), 2x watchdogs - covers PWM generation, pulse counting, and fail-safe timeout in ultra-low-power states. |
| Communication | 2× I²C (Fast-mode Plus, 1 Mbit/s), 2× USART (LIN/ISO7816 capable), 2× SPI (32 Mbit/s), 1× LPUART - meets industrial fieldbus, smart metering, and battery-backed communication needs. |
| Power Range | 1.7–3.6 V supply, -40°C to 125°C operation - suitable for automotive under-hood and industrial PLC modules without external voltage regulation. |
| Low-Power Modes | Sleep, Stop, Standby, Shutdown (200 nA typical) - enables multi-year battery life in wireless sensor endpoints with periodic RTC wakeup. |
Pinout & Package
STM32G031K8T6U is housed in a 5 × 5 mm UFQFPN32 (A0B8) package with 32 pins, 29 user I/Os (including 25 5 V-tolerant), and exposed thermal pad for enhanced thermal dissipation in compact PCB layouts.
| Pin/Terminal | Circuit Role | Design Meaning |
|---|---|---|
| VDD, VSS | Power supply and ground | Dual VDD/VSS pairs ensure stable core and I/O domain operation; decoupling required per datasheet layout guidelines. |
| NRST | Active-low reset input | Asynchronous reset with internal pull-up; accepts external push-button or supervisor IC assertion. |
| PA0–PA15, PB0–PB15, PF0–PF1 | General-purpose I/Os | 29 configurable GPIOs with interrupt capability, remappable alternate functions (USART/I²C/SPI), and 5 V tolerance on most pins. |
| BOOT0 | Boot mode selection | High at power-on selects system memory bootloader; tied low for normal Flash execution. |
| SWDIO / SWCLK | Debug interface signals | Serial Wire Debug (SWD) interface enables full programming, debugging, and trace without JTAG pins. |
Key Features
| Feature | Design Value |
|---|---|
| Secure Boot & ROP | Readout Protection Level 2 prevents Flash dump and disables debug access - critical for firmware IP protection in OEM deployments. |
| Low-Power RTC | Calendar RTC with alarm and periodic wakeup from Stop/Standby/Shutdown using 32 kHz LSE - enables time-triggered sensor sampling without MCU wake-up overhead. |
| Hardware CRC Unit | Dedicated CRC-32 engine accelerates firmware image verification and data packet integrity checks - reduces CPU load in communication protocols. |
| VBAT Supply Support | Separate VBAT pin powers RTC and 32 backup registers during main supply loss - ensures timekeeping continuity and state retention in power-fail scenarios. |
| Temperature Sensor | Calibrated on-chip sensor (±1.5°C accuracy) with ADC channel - eliminates external thermistor for ambient temperature monitoring in enclosure thermal management. |
Applications
| Industrial Motor Control | Smart Energy Metering |
|---|---|
Use Scenario: Brushless DC motor commutation in HVAC blowers and pump drives with current sensing and Hall-effect feedback. IC Role / Device Role / Timing Role: Real-time PWM generation via TIM1 with dead-time insertion, ADC-sampled phase currents, and LIN-based host communication. Use Value: 64 MHz CPU and hardware-accelerated ADC oversampling enable sub-microsecond current loop control without external DSP. |
Use Scenario: Electricity meter with tariff switching, tamper detection, and optical/IR communication interface. IC Role / Device Role / Timing Role: Metrology data acquisition (ADC + VREFINT), RTC-based billing intervals, ISO7816-compliant USART for secure metrology IC interface. Use Value: Integrated 12-bit ADC with hardware oversampling and calibrated VREFINT eliminate external precision references, reducing BOM count by 2 components. |
| Wireless Sensor Node | Automotive Body Control Module |
Use Scenario: Battery-powered environmental sensor node transmitting temperature/humidity via BLE gateway using UART-to-BLE bridge firmware. IC Role / Device Role / Timing Role: Low-power sensor polling (LPTIM2 wakeup), ADC reading, data formatting, and LPUART transmission with auto-baud detection. Use Value: Shutdown mode current of 200 nA extends CR2032 battery life beyond 5 years for 1-minute wakeup intervals. |
Use Scenario: Door module controlling window lift, mirror fold, and interior lighting with LIN slave interface to body ECU. IC Role / Device Role / Timing Role: LIN physical layer interface (USART1 in LIN mode), GPIO-driven H-bridge control, and VBAT-backed RTC for event timestamping. Use Value: 5 V-tolerant I/Os interface directly with 12 V automotive signals without level-shifter components, simplifying PCB routing and cost. |
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 peripherals but adds USB 2.0 FS device interface and 128 KB Flash. | Required where USB-CDC virtual COM port or DFU firmware update is needed; increases die size and cost. | Select when USB connectivity is mandatory; otherwise STM32G031K8T6U offers lower cost and identical non-USB functionality. |
| NXP LPC804UK | ARM Cortex-M0+, 30 MHz, 32 KB Flash, no securable Flash or ROP, single I²C/USART, no RTC calendar. | Limited to basic control tasks without time-stamping, secure firmware, or industrial comms; lacks LPTIM and VBAT support. | Only suitable for cost-constrained, non-secure, non-time-critical applications; not drop-in compatible due to pinout and peripheral mismatch. |
Compared with STM32G031K8T6U, STM32G041K8T6 adds USB but increases BOM cost and power consumption, while LPC804UK sacrifices security, timing fidelity, and peripheral richness - making STM32G031K8T6U optimal for balanced industrial edge nodes demanding security, low power, and rich analog/digital integration.
Availability
STM32G031K8T6U is available at Aetrix Electronics and suitable for industrial motor control, smart energy metering, wireless sensor nodes, and automotive body electronics requiring stable component supply across extended temperature ranges and long product lifecycles.
Supply support for STM32G031K8T6U 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, specializing in microcontrollers, power management, sensors, and automotive ICs with vertical manufacturing and broad industrial certification coverage.
The STM32G0 series targets entry-level embedded applications demanding high integration, ultra-low power, and robust security at minimal cost - designed specifically for smart industrial peripherals, consumer IoT endpoints, and automotive cabin electronics.
FAQ
What is the maximum operating temperature for STM32G031K8T6U?
The STM32G031K8T6U is qualified for operation from -40°C to +125°C ambient temperature, verified per ST's industrial-grade qualification standards (AEC-Q100 not applicable, but meets extended industrial temp requirements). This rating applies to all package variants including UFQFPN32, and is confirmed in Section 5.3.1 of DS12992 Rev 4.
Does STM32G031K8T6U support hardware encryption or secure boot?
Yes - it supports secure boot via Readout Protection (RDP) Level 2, which permanently disables SWD debug access and prevents Flash memory readout. While it lacks dedicated AES/SHA accelerators, its securable Flash area and MPU enable software-based secure boot chains compliant with IEC 62443-3-3 Annex A.3 for industrial firmware integrity.
Can STM32G031K8T6U drive 5 V logic directly?
Yes - up to 25 of its 29 GPIOs are 5 V-tolerant (FT_e class) when powered from 1.7–3.6 V VDD, allowing direct interfacing with legacy 5 V peripherals like RS-232 transceivers or industrial PLC I/O without level shifters. Tolerance is specified in Table 51 and confirmed in electrical characteristics section 5.3.14.
What debug interface does STM32G031K8T6U use?
It uses Serial Wire Debug (SWD) via dedicated SWDIO and SWCLK pins - a 2-pin ARM-standard interface supporting full flash programming, real-time variable inspection, and breakpoint debugging. No JTAG pins are required, reducing PCB footprint and simplifying probe connection compared to legacy 20-pin JTAG headers.
STM32G031K8T6U 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:
STM32G031K8T6U FAQ
1.How can I place an order for STM32G031K8T6U through Aetrix?
Please submit a Request for Quotation (RFQ) for STM32G031K8T6U 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 STM32G031K8T6U reliable?
The price and inventory of STM32G031K8T6U are updated periodically and may fluctuate due to market conditions. Stock and pricing data are typically refreshed every 24 hours. Quotation validity for STM32G031K8T6U is usually 5 days.
3.What payment methods are accepted for STM32G031K8T6U?
We accept Wire Transfer, PayPal, Credit Card, Western Union, MoneyGram, and Escrow for STM32G031K8T6U transactions.
Note: Certain payment methods may incur a processing fee.
4.How is shipping managed for STM32G031K8T6U?
STM32G031K8T6U orders can be shipped via leading logistics carriers, including DHL, UPS, FedEx, TNT, or Registered Mail.
Once your STM32G031K8T6U 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 STM32G031K8T6U?
For technical support, including STM32G031K8T6U datasheets, pinout diagrams, or application guidance, please contact our engineering support team. They can provide detailed documentation and assistance for your STM32G031K8T6U requirements.
6.How does Aetrix verify that STM32G031K8T6U is sourced from the original manufacturer or authorized distributors?
All STM32G031K8T6U 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 STM32G031K8T6U meets industry standards.
7.What is the process for return or replacement of STM32G031K8T6U?
All STM32G031K8T6U units undergo pre-shipment inspection (PSI). If there is an issue with STM32G031K8T6U, 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 STM32G031K8T6U part is unused and in its original packaging.
Return procedure for STM32G031K8T6U:
1.Submit a request within 90 days.
2.Obtain a Return Material Authorization (RMA) from Aetrix.
STM32G031K8T6U 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 and sourcing framework covering lifecycle verification, lifetime-buy calculations, replacement qualification, supplier checks and counterfeit-risk controls.
TTL and CMOS logic families differ in thresholds, loading, output drive, power and timing. This engineering guide compares 74HC and 74HCT, calculates noise margins and checks 3.3 V/5 V compatibility.
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…

