STMicroelectronics STM32G031K8U6
- Part No.:
- STM32G031K8U6
- Manufacturer:
- STMicroelectronics
- Category:
- Microcontrollers
- Package:
- 32-UFQFN Exposed Pad
- Datasheet:
-
STM32G031K8U6.pdf
- Description:
- IC MCU 32BIT 64KB FLASH 32UFQFPN
- Quantity:
- Payment:

- Shipping:

Inventory:53,219
Please send an inquiry. Send us your inquiry, and we will respond immediately.
Product details
Overview
STM32G031K8U6 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/IrDA/ISO7816), and RTC with alarm/wakeup-used in smart sensor nodes and industrial control edge devices.
For engineers reviewing the STM32G031K8U6 datasheet, STM32G031K8U6 pinout, STM32G031K8U6 application, or STM32G031K8U6 equivalent, key selection criteria include its 64 MHz CPU frequency, 5 V-tolerant I/Os, low-power Stop/Standby modes (down to 190 nA), and dual I²C interfaces supporting Fast-mode Plus (1 Mbit/s) with SMBus/PMBus wakeup capability.
Technical Context
The device integrates an Arm Cortex-M0+ core with MPU, supporting TrustZone-like memory protection via readout protection (RDP) levels and securable flash area. Its clock system combines 4–48 MHz HSE, 32 kHz LSE with calibration, and ±1% internal 16 MHz HSI with PLL for precise timing across temperature ranges (−40°C to 125°C).
Peripheral interconnect uses a dedicated AHB/APB matrix enabling concurrent DMA transfers (5-channel controller), flexible timer routing (11 timers including 128 MHz-capable TIM1), and hardware oversampling (up to 16-bit) on the 12-bit ADC-enabling high-accuracy analog sensing without external components.
Key Specifications
| Parameter | Value and Actual Design Meaning |
|---|---|
| CPU Core | Arm Cortex-M0+, 64 MHz max - enables real-time deterministic execution for motor control and protocol stacks. |
| Memory | 64 KB Flash (with securable area), 8 KB SRAM (HW parity) - supports firmware updates and data integrity in safety-critical logging. |
| ADC | 12-bit, 0.4 µs conversion, up to 16 external channels - delivers fast, multi-sensor acquisition for environmental monitoring. |
| Timers | 11 timers: 1x advanced (TIM1), 4x general-purpose, 2x low-power, 2x watchdogs - enables simultaneous PWM generation, time-stamping, and fail-safe timeout handling. |
| I/O Voltage | 5 V-tolerant on multiple pins - simplifies interface with legacy 5 V peripherals without level shifters. |
| Low-Power Modes | Stop 0 (430 nA), Standby (190 nA), Shutdown (20 nA) - extends battery life in wireless sensor endpoints. |
| Communication | 2× I²C (Fast-mode Plus), 2× USART (1 with ISO7816/LIN/IrDA), 2× SPI (32 Mbit/s), LPUART - supports multi-protocol fieldbus and secure card reader integration. |
Pinout & Package
STM32G031K8U6 is housed in a 32-pin Ultra-Fine Pitch Quad Flat No-lead (UFQFPN32) package, 5 × 5 mm, 0.5 mm pitch, ECOPACK2-compliant, with exposed thermal pad for enhanced thermal dissipation in compact industrial modules.
| Pin/Terminal | Circuit Role | Design Meaning |
|---|---|---|
| VDD | Core & I/O supply | 1.7–3.6 V input; powers CPU, peripherals, and 5 V-tolerant I/Os-requires local decoupling per datasheet layout guidelines. |
| VSS | Ground reference | Digital ground plane connection; separate analog ground (VSSA) required for ADC accuracy. |
| PA0–PA15 | General-purpose I/O | Configurable as GPIO, EXTI, or alternate functions (e.g., USART2_TX, TIM2_CH1); PA0 supports wake-up from Stop mode. |
| PB0–PB15 | General-purpose I/O | Includes I²C1_SCL/SDA, SPI1_SCK/MOSI/MISO; PB6/PB7 support SMBus/PMBus wakeup from Stop. |
| NRST | Active-low reset | Asynchronous reset input; internal pull-up; accepts 1.65–5.5 V logic-compatible with external push-button or supervisor ICs. |
| BOOT0 | Boot mode select | High at power-on selects system memory bootloader; tied low for normal Flash execution-critical for field firmware recovery. |
Key Features
| Feature | Design Value |
|---|---|
| Hardware CRC unit | Accelerates firmware image verification and communication frame checksums-reduces CPU load in OTA update routines. |
| Programmable BOR & PVD | Configurable brownout reset thresholds and voltage detection alerts-prevents erratic operation during battery sag or supply transients. |
| VBAT supply path | Dedicated VBAT pin powers RTC and backup registers independently-maintains timekeeping and non-volatile state during main power loss. |
| 96-bit unique ID | Factory-programmed serial number-enables device authentication, license binding, and secure provisioning in IoT deployments. |
| SWD debug interface | 2-pin Serial Wire Debug (SWCLK/SWDIO) - supports full JTAG-equivalent debugging and programming without extra pins or headers. |
Applications
| Smart Metering Node | Industrial PLC I/O Module |
|---|---|
Use Scenario: Compact electricity/water meter with pulse counting, tamper detection, and RF mesh backhaul. IC Role / Device Role / Timing Role: Main controller managing metrology ADC sampling, RTC-based billing intervals, and UART-to-LoRaWAN gateway bridging. Use Value: Integrated 12-bit ADC with hardware oversampling eliminates external sigma-delta converter; Stop mode current <500 nA extends 10-year battery life. | Use Scenario: DIN-rail mounted digital input/output expansion module for factory automation. IC Role / Device Role / Timing Role: Protocol translator between Modbus RTU (via USART1) and local isolated GPIO banks with timestamped event capture. Use Value: 5 V-tolerant I/Os directly interface with 24 V industrial sensors; programmable PVD triggers safe shutdown before supply collapse. |
| Wireless Sensor Hub | Medical Diagnostic Handheld |
Use Scenario: BLE-connected environmental monitor aggregating temperature, humidity, and CO₂ via I²C sensors. IC Role / Device Role / Timing Role: Central hub managing sensor polling, data fusion, and LPUART-to-BLE SoC handoff with periodic wakeup from Standby. Use Value: Dual I²C interfaces allow concurrent sensor reads and SMBus battery gauge monitoring; 190 nA Standby current enables >2-year coin-cell operation. | Use Scenario: Portable ECG/SpO₂ analyzer requiring clinical-grade signal acquisition and USB HID reporting. IC Role / Device Role / Timing Role: Signal processor running real-time filtering on ADC inputs, driving OLED display via SPI, and managing USB CDC virtual COM port. Use Value: 128 MHz-capable TIM1 enables precise ECG sampling synchronization; VREFBUF stabilizes ADC reference for <1% gain error over temperature. |
Equivalent & Alternatives
The following parts are listed as comparable options for similar microcontroller applications.
| Alternative Part | Technical Difference | Application Difference | Selection Advice |
|---|---|---|---|
| STM32G030K8T6 | Same core/peripherals but only 32 KB Flash, no securable area, no VREFBUF | Lacks hardware voltage reference buffer and secure boot features-unsuitable for medical or certified firmware environments | Select when cost sensitivity outweighs secure firmware requirements and Flash headroom is sufficient |
| STM32G041K8U6 | Identical package and pinout; adds USB 2.0 FS device, 128 KB Flash, and enhanced crypto (AES-128) | Enables direct USB HID/DFU connectivity and larger firmware images-adds ~$0.15 BOM cost | Choose when USB interface or extended Flash is mandatory; otherwise G031 offers optimal cost/performance balance |
Compared with STM32G030K8T6, the G031K8U6 provides critical security and analog precision features (VREFBUF, securable Flash) absent in the G030; versus STM32G041K8U6, it trades USB and extra Flash for lower unit cost and identical footprint-ideal for cost-constrained, non-USB edge nodes.
Availability
STM32G031K8U6 is available at Aetrix Electronics and suitable for smart metering nodes, industrial PLC I/O modules, wireless sensor hubs, and medical diagnostic handhelds requiring stable component supply across long-lifecycle deployments.
Supply support for STM32G031K8U6 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 management ICs, MEMS, and automotive-grade components since 1987.
The STM32G0 series targets cost-sensitive, ultra-low-power embedded applications-delivering Cortex-M0+ performance with advanced analog integration, robust security primitives, and industrial temperature range support in compact packages.
FAQ
What is the maximum operating temperature rating for STM32G031K8U6?
The STM32G031K8U6 is qualified for operation from −40°C to +125°C ambient temperature, validated per ST's industrial grade specification. This rating applies to all core functions, ADC, timers, and communication peripherals-no derating required up to 125°C, making it suitable for under-hood automotive sensors and enclosed industrial enclosures.
Does STM32G031K8U6 support hardware encryption or secure boot?
STM32G031K8U6 includes readout protection (RDP) levels and a securable Flash area to prevent unauthorized firmware extraction, but lacks dedicated cryptographic accelerators (AES, PKA) or true secure boot ROM. Secure boot must be implemented in user code using RDP and Flash lock bits-suitable for basic IP protection, not FIPS-level compliance.
Can the internal 16 MHz RC oscillator be used as the system clock without calibration?
Yes-the internal 16 MHz HSI oscillator operates at ±1% accuracy without calibration and supports full 64 MHz CPU operation via PLL. Calibration is optional and improves accuracy to ±0.5%, but is unnecessary for most timing-critical applications like UART baud generation or PWM control where jitter tolerance exceeds ±2%.
How many I/O pins support external interrupt capability?
All 26 general-purpose I/O pins (PA0–PA15, PB0–PB11) are mappable to external interrupt vectors via the EXTI controller. Each pin can trigger rising/falling/both-edge interrupts independently, and up to 16 EXTI lines are available-enabling simultaneous wake-up from Stop mode on multiple sensor alert signals without polling.
STM32G031K8U6 Specifications
- Product attributes
- Attribute value
- Manufacturer:
- STMicroelectronics
- Package/Case:
- 32-UFQFN Exposed Pad
- 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:
STM32G031K8U6 FAQ
1.How can I place an order for STM32G031K8U6 through Aetrix?
Please submit a Request for Quotation (RFQ) for STM32G031K8U6 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 STM32G031K8U6 reliable?
The price and inventory of STM32G031K8U6 are updated periodically and may fluctuate due to market conditions. Stock and pricing data are typically refreshed every 24 hours. Quotation validity for STM32G031K8U6 is usually 5 days.
3.What payment methods are accepted for STM32G031K8U6?
We accept Wire Transfer, PayPal, Credit Card, Western Union, MoneyGram, and Escrow for STM32G031K8U6 transactions.
Note: Certain payment methods may incur a processing fee.
4.How is shipping managed for STM32G031K8U6?
STM32G031K8U6 orders can be shipped via leading logistics carriers, including DHL, UPS, FedEx, TNT, or Registered Mail.
Once your STM32G031K8U6 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 STM32G031K8U6?
For technical support, including STM32G031K8U6 datasheets, pinout diagrams, or application guidance, please contact our engineering support team. They can provide detailed documentation and assistance for your STM32G031K8U6 requirements.
6.How does Aetrix verify that STM32G031K8U6 is sourced from the original manufacturer or authorized distributors?
All STM32G031K8U6 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 STM32G031K8U6 meets industry standards.
7.What is the process for return or replacement of STM32G031K8U6?
All STM32G031K8U6 units undergo pre-shipment inspection (PSI). If there is an issue with STM32G031K8U6, 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 STM32G031K8U6 part is unused and in its original packaging.
Return procedure for STM32G031K8U6:
1.Submit a request within 90 days.
2.Obtain a Return Material Authorization (RMA) from Aetrix.
STM32G031K8U6 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…

