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

- Shipping:

Inventory:4,625
Please send an inquiry. Send us your inquiry, and we will respond immediately.
Product details
Overview
STM32G031K6U6 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 ISO7816/LIN/IrDA), and two I²C interfaces supporting Fast-mode Plus (1 Mbit/s). It serves as a cost-optimized main controller in smart sensors and industrial edge nodes requiring low-power operation and secure firmware execution.
For engineers reviewing the STM32G031K6U6 datasheet, STM32G031K6U6 pinout, STM32G031K6U6 application, or STM32G031K6U6 equivalent, key selection criteria include its 64 MHz CPU frequency, 1.7–3.6 V supply range, -40°C to 85°C temperature grade, 5-channel DMA, and support for SWD debug - all critical for battery-powered IoT endpoints and programmable logic controllers.
Technical Context
The STM32G031K6U6 integrates an Arm Cortex-M0+ core with Memory Protection Unit (MPU) and supports three low-power modes (Stop, Standby, Shutdown) with sub-µA RTC backup current. Its clock system combines internal 16 MHz RC (±1 %) and 32 kHz RC (±5 %) oscillators with external 4–48 MHz crystal and 32.768 kHz LSE options, enabling precise timing control across power states.
Peripheral interconnect uses a dedicated AHB/APB matrix supporting concurrent access to ADC, timers, and communication interfaces. The 11-timer suite includes one 128 MHz-capable advanced-control timer (TIM1), four general-purpose 16-bit timers, two low-power 16-bit timers (LPTIM1/2), and dual watchdogs (IWDG/WWDG) - enabling motor control, sensor sampling, and system safety monitoring in a single chip.
Key Specifications
| Parameter | Value and Actual Design Meaning |
|---|---|
| CPU Core | Arm Cortex-M0+, 64 MHz max - delivers deterministic real-time response for control loops and protocol stacks. |
| Flash / SRAM | 64 KB Flash with securable area + 8 KB SRAM with hardware parity - enables secure boot and robust data handling in field-deployed devices. |
| ADC | 12-bit, 0.4 µs conversion time, up to 16 external channels - supports high-speed analog sensing in motor feedback or environmental monitoring. |
| Timers | 11 timers including TIM1 (128 MHz capable), LPTIM1/2, SysTick, and dual watchdogs - provides flexible timing for PWM generation, RTC, and fail-safe recovery. |
| Communication | 2× I²C (Fast-mode Plus), 2× USART (one with ISO7816/LIN/IrDA), 2× SPI (32 Mbit/s), 1× LPUART - meets requirements for industrial bus interfacing and ultra-low-power wake-up. |
| Power Range | 1.7–3.6 V supply with programmable BOR/PVD and VBAT RTC support - ensures stable operation across wide battery discharge curves. |
| Package | UFQFPN32 (5 × 5 mm, 0.5 mm pitch) - compact footprint suitable for space-constrained PCB layouts in portable equipment. |
Pinout & Package
STM32G031K6U6 is housed in a 32-pin Ultra-Fine Pitch Quad Flat No-lead (UFQFPN32) package with exposed thermal pad, compliant with ECOPACK2 environmental standards. Pin pitch is 0.5 mm; body dimensions are 5.0 × 5.0 mm.
| Pin/Terminal | Circuit Role | Design Meaning |
|---|---|---|
| VDD | Main power supply (1.7–3.6 V) | Supplies core and I/O domains; requires local decoupling per datasheet layout guidelines. |
| VSS | Ground reference | Dedicated analog/digital ground pins ensure noise isolation for ADC and clock circuits. |
| PA0–PA15 | General-purpose I/Os | Up to 28 5 V-tolerant GPIOs with interrupt capability and alternate function mapping for peripherals. |
| NRST | Active-low reset input | Accepts external reset pulses; internal POR/PDR/BOR ensures reliable startup under varying supply conditions. |
| SWDIO / SWCLK | Serial Wire Debug interface | Enables non-intrusive programming and real-time debugging without dedicated JTAG pins. |
| VBAT | Backup power supply | Connects to coin cell to maintain RTC and backup registers during main power loss. |
Key Features
| Feature | Design Value |
|---|---|
| Secure Boot & ROP | Readout protection (ROP) Level 1/2 and securable Flash area prevent unauthorized firmware extraction and cloning. |
| Low-Power Operation | Shutdown mode draws ≤100 nA; Stop 0 mode consumes 0.32 µA with RTC active - extends battery life in wireless sensors. |
| High-Reliability Clocking | Internal 16 MHz RC calibrated to ±1 % and 32 kHz RC to ±5 % eliminate need for external crystals in cost-sensitive designs. |
| Robust I/O Architecture | Multiple 5 V-tolerant pins with configurable pull-up/down and Schmitt-trigger inputs tolerate noisy industrial environments. |
| Integrated Analog Peripherals | On-chip temperature sensor, VREFINT, and VBAT monitor enable self-calibration and battery health tracking without external components. |
Applications
| Smart Sensor Node | Industrial PLC I/O Module |
|---|---|
Use Scenario: Battery-powered environmental sensor collecting temperature, humidity, and CO₂ via I²C sensors and transmitting data over UART to gateway. IC Role / Device Role / Timing Role: Main MCU executing sensor fusion algorithm, managing low-power sleep/wake cycles, and driving UART/LPUART for burst transmission. Use Value: Sub-µA shutdown current and fast wakeup (<10 µs from Stop mode) minimize average power, extending 10-year battery life. |
Use Scenario: DIN-rail mounted digital I/O expansion module with 8-channel isolated inputs and 4-channel relay outputs controlled by fieldbus. IC Role / Device Role / Timing Role: Central controller handling Modbus RTU over USART, reading optocoupled inputs, and driving relay drivers via GPIO and PWM. Use Value: Dual USARTs with LIN/IrDA capability allow direct integration into legacy industrial networks; 5 V-tolerant I/Os interface directly with 24 V PLC logic levels. |
| USB-C Power Monitor | White Goods Motor Control |
Use Scenario: USB-C PD sink side monitor measuring VBUS voltage/current and negotiating power contracts using CC logic. IC Role / Device Role / Timing Role: Real-time ADC sampling of shunt resistor and voltage divider, coupled with USB-C CC line state machine implemented in firmware. Use Value: 12-bit ADC with hardware oversampling (up to 16-bit effective resolution) achieves ±0.5% current measurement accuracy at 100 kHz sampling rate. |
Use Scenario: Compact BLDC motor driver in washing machine drum control, requiring six-step commutation and fault detection. IC Role / Device Role / Timing Role: Timing-critical PWM generator using TIM1's complementary outputs with dead-time insertion and emergency shutdown on overcurrent. Use Value: Advanced-control timer (TIM1) supports 128 MHz counter resolution for precise 20 kHz PWM carrier frequency with <10 ns jitter tolerance. |
Equivalent & Alternatives
The following parts are listed as comparable options for similar microcontroller applications.
| Alternative Part | Technical Difference | Application Difference | Selection Advice |
|---|---|---|---|
| STM32G030F6P6 | 20-pin TSSOP, 32 KB Flash, no securable area, no VREFBUF | Limited peripheral count and memory; lacks hardware voltage reference buffer for precision ADC calibration | Choose for ultra-low-cost, space-constrained applications where security and analog accuracy are secondary. |
| STM32G041F8P6 | 20-pin TSSOP, 64 KB Flash, 12-bit ADC, enhanced security (AES-128, TRNG), higher temp grade (105°C) | Includes cryptographic acceleration and wider temperature range but fewer I/Os (16 vs 28) | Select when firmware integrity and extended ambient operation are required, accepting reduced GPIO count. |
Compared with STM32G031K6U6, STM32G030F6P6 trades security and analog features for lower cost and smaller footprint, while STM32G041F8P6 adds crypto and thermal resilience at the expense of I/O availability - making the G031K6U6 optimal for balanced cost-performance-security in mid-tier industrial edge nodes.
Availability
STM32G031K6U6 is available at Aetrix Electronics and suitable for smart sensor nodes, industrial I/O modules, USB-C power monitors, and white goods motor control systems requiring stable component supply, long-term lifecycle support, and consistent parametric performance across production batches.
Supply support for STM32G031K6U6 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 products for industrial, automotive, and consumer markets.
The STM32G0 series targets cost-sensitive, energy-efficient embedded applications with Arm Cortex-M0+ cores, emphasizing security, low-power operation, and rapid time-to-market for entry-level IoT and industrial control designs.
FAQ
What is the maximum operating frequency and supported voltage range?
The STM32G031K6U6 operates at up to 64 MHz with a supply voltage range of 1.7 V to 3.6 V. Its internal 16 MHz RC oscillator is factory-calibrated to ±1 % accuracy, and the PLL allows full-speed operation without external crystal dependency. Voltage regulation includes programmable brownout reset (BOR) and voltage detector (PVD) for robust power management.
Does it support secure firmware updates and code protection?
Yes. The device implements Readout Protection (ROP) Levels 1 and 2, a securable Flash area, and hardware-based write protection. These features prevent unauthorized readout of firmware and protect critical bootloader sections. Secure boot is enabled via option byte configuration, and the 96-bit unique ID supports device authentication in over-the-air update schemes.
How many I/O pins are 5 V tolerant, and what interfaces do they support?
Up to 28 GPIOs are 5 V tolerant, including all pins in Port A and Port B. These support alternate functions such as USART TX/RX, I²C SCL/SDA, SPI MOSI/MISO/SCK, and timer channels. The 5 V tolerance allows direct interfacing with legacy 5 V logic and industrial sensors without level-shifting circuitry.
What debug interface is available, and does it require additional pins?
The STM32G031K6U6 supports Serial Wire Debug (SWD) using only two pins: SWDIO and SWCLK. No JTAG header or additional pins are needed. SWD enables full flash programming, real-time variable inspection, and breakpoint debugging through standard tools like ST-LINK/V2 and OpenOCD-compatible probes.
STM32G031K6U6 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:
- 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 18x12b SAR
- Oscillator Type:
- External, Internal
- Operating Temperature:
- -40°C ~ 85°C (TA)
- Grade:
- -
- Qualification:
- -
- Mounting Type:
- Surface Mount
- Supplier Device Package:
STM32G031K6U6 FAQ
1.How can I place an order for STM32G031K6U6 through Aetrix?
Please submit a Request for Quotation (RFQ) for STM32G031K6U6 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 STM32G031K6U6 reliable?
The price and inventory of STM32G031K6U6 are updated periodically and may fluctuate due to market conditions. Stock and pricing data are typically refreshed every 24 hours. Quotation validity for STM32G031K6U6 is usually 5 days.
3.What payment methods are accepted for STM32G031K6U6?
We accept Wire Transfer, PayPal, Credit Card, Western Union, MoneyGram, and Escrow for STM32G031K6U6 transactions.
Note: Certain payment methods may incur a processing fee.
4.How is shipping managed for STM32G031K6U6?
STM32G031K6U6 orders can be shipped via leading logistics carriers, including DHL, UPS, FedEx, TNT, or Registered Mail.
Once your STM32G031K6U6 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 STM32G031K6U6?
For technical support, including STM32G031K6U6 datasheets, pinout diagrams, or application guidance, please contact our engineering support team. They can provide detailed documentation and assistance for your STM32G031K6U6 requirements.
6.How does Aetrix verify that STM32G031K6U6 is sourced from the original manufacturer or authorized distributors?
All STM32G031K6U6 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 STM32G031K6U6 meets industry standards.
7.What is the process for return or replacement of STM32G031K6U6?
All STM32G031K6U6 units undergo pre-shipment inspection (PSI). If there is an issue with STM32G031K6U6, 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 STM32G031K6U6 part is unused and in its original packaging.
Return procedure for STM32G031K6U6:
1.Submit a request within 90 days.
2.Obtain a Return Material Authorization (RMA) from Aetrix.
STM32G031K6U6 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…

