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

- Shipping:

Inventory:1,054
Please send an inquiry. Send us your inquiry, and we will respond immediately.
Product details
Overview
STM32G031K8U7TR from STMicroelectronics is a 32-bit Arm® Cortex®-M0+ microcontroller in UFQFPN32 package, featuring 64 KB Flash, 8 KB SRAM, dual USARTs (one with ISO7816/LIN/IrDA), 12-bit ADC (0.4 µs conversion), and operating voltage range of 1.7–3.6 V. It targets cost-sensitive industrial control, smart sensors, and battery-powered IoT edge nodes requiring low-power operation and integrated analog peripherals.
For engineers reviewing the STM32G031K8U7TR datasheet, STM32G031K8U7TR pinout, STM32G031K8U7TR application, or STM32G031K8U7TR equivalent, key selection considerations include its 64 MHz max CPU frequency, 5 V-tolerant I/Os, RTC with periodic wakeup from Stop/Standby, dual Fast-mode Plus I²C interfaces, and SWD debug support - all validated for production use in temperature ranges up to 125°C.
Technical Context
The STM32G031K8U7TR 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 internal 16 MHz HSI (±1%) with PLL for precise timing across operating modes.
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 39 request sources including ADC, USARTs, SPIs, and timers - critical for deterministic real-time sensor data acquisition and communication offload.
Key Specifications
| Parameter | Value and Actual Design Meaning |
|---|---|
| CPU Core | Arm Cortex-M0+, 64 MHz max - enables real-time deterministic execution for motor control loops or protocol stacks without external co-processor. |
| Memory | 64 KB Flash (with securable area & HW ECC), 8 KB SRAM (with parity) - supports firmware updates with integrity checking and robust runtime data storage. |
| ADC | 12-bit, 0.4 µs conversion time, up to 16 external channels - delivers high-speed sampling for analog sensor interfacing (e.g., current sensing, temperature monitoring). |
| Timers | 11 timers: 1x 128 MHz-capable advanced timer (TIM1), 4x general-purpose 16-bit, 2x low-power 16-bit - enables PWM generation, encoder counting, and ultra-low-power periodic wakeups. |
| Communication | 2× I²C (Fast-mode Plus, 1 Mbit/s), 2× USART (ISO7816/LIN/IrDA), 2× SPI (32 Mbit/s), 1× LPUART - supports multi-protocol connectivity in constrained embedded systems. |
| Power Modes | Stop 0 (130 nA), Standby (150 nA), Shutdown (20 nA) - enables years of operation on coin-cell batteries in metering or asset tracking applications. |
| I/O Voltage | 5 V-tolerant on multiple pins - simplifies interface with legacy 5 V logic or sensors without level-shifting components. |
Pinout & Package
STM32G031K8U7TR is housed in a 5 × 5 mm UFQFPN32 (A0B8) package with 0.5 mm pitch, exposing 29 user I/Os, power, reset, and debug pins. The package complies with ECOPACK2 environmental standards and supports reflow soldering per JEDEC J-STD-020.
| Pin/Terminal | Circuit Role | Design Meaning |
|---|---|---|
| VDD, VDDA, VSS, VSSA | Power supply and ground | Dual-domain supply separation ensures clean analog reference (VDDA) and digital operation (VDD); decoupling required per datasheet layout guidelines. |
| NRST | Active-low reset input | Externally driven reset with internal pull-up; supports programmable BOR and PVD for system-level fault recovery. |
| PA13/PA14 | SWDIO/SWCLK debug interface | Serial Wire Debug pins - enable full programming, debugging, and real-time trace without dedicated JTAG header. |
| PA2/PA3 | USART1_TX/USART1_RX | Primary asynchronous serial interface - supports auto baud rate detection and wakeup from Stop mode for low-power polling. |
| PA4/PA5 | SPI1_NSS/SPI1_SCK | Master SPI interface - configurable for 4–16 bit frame length and up to 32 Mbit/s, suitable for flash memory or display driver interfacing. |
| PA0 | ADC1_IN0 / TIM2_CH1 | Shared analog input and timer capture - allows simultaneous analog sensing and timing-critical event measurement (e.g., pulse width of sensor output). |
Key Features
| Feature | Design Value |
|---|---|
| Low-power RTC with alarm | Calendar RTC powered by VBAT maintains time across Stop/Standby/Shutdown modes and triggers periodic wakeups - essential for scheduled sensor readings. |
| Hardware CRC unit | Dedicated CRC-32 engine accelerates firmware image verification and communication packet checksums - reduces CPU load and improves boot/security latency. |
| Programmable voltage detector | PVD monitors VDD and generates interrupt or reset when crossing user-defined thresholds - enables graceful shutdown before brownout-induced corruption. |
| 5-channel DMA controller | Enables zero-CPU-overhead data movement between peripherals (e.g., ADC → memory, USART → memory) - critical for deterministic real-time throughput. |
| 96-bit unique ID | Factory-programmed serial number accessible via system memory - supports device authentication, secure provisioning, and license binding in OEM deployments. |
Applications
| Smart Sensor Node | Industrial PLC I/O Module |
|---|---|
Use Scenario: Battery-powered environmental sensor collecting temperature, humidity, and motion data at 10-second intervals. IC Role / Device Role / Timing Role: Main MCU executing sensor fusion algorithm, managing RTC-triggered wakeups, and transmitting data via USART to LoRaWAN gateway. Use Value: Ultra-low Standby current (150 nA) extends 10-year battery life; integrated ADC and hardware oversampling eliminate external signal conditioning. |
Use Scenario: DIN-rail mounted remote I/O module converting 4–20 mA analog inputs to Modbus RTU over RS-485. IC Role / Device Role / Timing Role: Protocol handler and analog front-end controller - digitizing inputs via ADC, generating Modbus frames, and driving isolated RS-485 transceiver via USART. Use Value: Dual USARTs allow simultaneous host communication and transceiver control; 5 V-tolerant I/Os interface directly with industrial-level analog circuitry. |
| POS Peripheral Controller | Home Appliance Motor Control |
Use Scenario: Compact barcode scanner module requiring USB-HID emulation and laser trigger timing. IC Role / Device Role / Timing Role: Embedded controller managing laser diode timing, decoding scanned data, and emulating HID keyboard over virtual COM port. Use Value: LPUART enables always-on low-power listening; ISO7816-capable USART supports optional smart card reader integration. |
Use Scenario: Brushless DC motor driver in washing machine control board, managing hall-effect feedback and PWM generation. IC Role / Device Role / Timing Role: Real-time motor commutation controller using TIM1's advanced features (dead-time insertion, complementary outputs) and ADC for current sensing. Use Value: 128 MHz-capable timer delivers sub-microsecond PWM resolution; hardware parity on SRAM prevents runtime corruption in safety-critical motor sequencing. |
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 and peripherals but only 32 KB Flash, no securable area, and rated for -40°C to 85°C only. | Lacks RDP-based firmware protection and extended temperature support - unsuitable for secure or automotive-adjacent deployments. | Select when cost sensitivity outweighs security requirements and ambient temperature stays below 85°C. |
| NXP LPC804M101JDH20 | ARM Cortex-M0+, 32 KB Flash, 8 KB SRAM, but no hardware CRC, no RTC calendar, and only one USART with no LIN/ISO7816 support. | Missing key peripherals for time-stamped logging and industrial protocol stacks - requires external components for equivalent functionality. | Consider only if existing NXP toolchain familiarity offsets loss of integrated features and higher BOM cost. |
Compared with STM32G031K8U7TR, STM32G030K8T6 trades security and temperature margin for lower cost, while LPC804M101JDH20 lacks integrated timing, communication, and integrity features - making the G031K8U7TR the optimal balance of capability, reliability, and production readiness for mid-tier embedded designs.
Availability
STM32G031K8U7TR is available at Aetrix Electronics and suitable for industrial automation, smart metering, and consumer appliance control requiring stable component supply, long-term lifecycle assurance, and full production qualification.
Supply support for STM32G031K8U7TR 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 over 40 years of silicon innovation and manufacturing excellence.
The STM32G0 series targets cost-optimized, low-power embedded applications demanding high integration, security, and ease of certification - designed specifically for industrial control, IoT endpoints, and consumer electronics where footprint, power, and firmware robustness are critical.
FAQ
What is the maximum operating frequency and supported voltage range?
The STM32G031K8U7TR operates at up to 64 MHz and supports a supply voltage range of 1.7 V to 3.6 V. This wide range enables direct battery operation (e.g., single Li-ion or 3× AA) without external regulators, and its internal voltage regulator maintains stable core voltage across the entire range - verified per DS12992 Rev 4 Section 5.3.3.
Does it support hardware-based firmware security features?
Yes - it includes readout protection (RDP) levels, a securable flash area, and a 96-bit unique ID. These features enable secure boot, firmware IP protection, and device identity binding. The securable area can be locked independently to prevent unauthorized access to cryptographic keys or calibration data - confirmed in Section 3.3.1 of the datasheet.
Can it wake up from Stop mode using serial communication?
Yes - both USART1 and USART2 support wakeup from Stop mode via received data or start-bit detection. This feature is hardware-implemented and does not require CPU intervention, enabling immediate response to incoming commands while maintaining ultra-low power consumption (130 nA in Stop 0 mode).
What development tools are officially supported?
ST provides full support via STM32CubeMX for initialization code generation, STM32CubeG0 HAL/LL libraries, and STM32CubeIDE (Eclipse-based). Hardware debug is enabled through SWD using ST-LINK/V2-1 or compatible probes - all validated in the STM32G031K8U7TR reference design (UM2379) and AN5197 application note.
STM32G031K8U7TR Specifications
- Product attributes
- Attribute value
- Manufacturer:
- STMicroelectronics
- Package/Case:
- 32-UFQFN Exposed Pad
- Series:
- STM32G0
- Packaging:
- Tape & Reel (TR)
- 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 ~ 105°C (TA)
- Grade:
- -
- Qualification:
- -
- Mounting Type:
- Surface Mount
- Supplier Device Package:
STM32G031K8U7TR FAQ
1.How can I place an order for STM32G031K8U7TR through Aetrix?
Please submit a Request for Quotation (RFQ) for STM32G031K8U7TR 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 STM32G031K8U7TR reliable?
The price and inventory of STM32G031K8U7TR are updated periodically and may fluctuate due to market conditions. Stock and pricing data are typically refreshed every 24 hours. Quotation validity for STM32G031K8U7TR is usually 5 days.
3.What payment methods are accepted for STM32G031K8U7TR?
We accept Wire Transfer, PayPal, Credit Card, Western Union, MoneyGram, and Escrow for STM32G031K8U7TR transactions.
Note: Certain payment methods may incur a processing fee.
4.How is shipping managed for STM32G031K8U7TR?
STM32G031K8U7TR orders can be shipped via leading logistics carriers, including DHL, UPS, FedEx, TNT, or Registered Mail.
Once your STM32G031K8U7TR 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 STM32G031K8U7TR?
For technical support, including STM32G031K8U7TR datasheets, pinout diagrams, or application guidance, please contact our engineering support team. They can provide detailed documentation and assistance for your STM32G031K8U7TR requirements.
6.How does Aetrix verify that STM32G031K8U7TR is sourced from the original manufacturer or authorized distributors?
All STM32G031K8U7TR 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 STM32G031K8U7TR meets industry standards.
7.What is the process for return or replacement of STM32G031K8U7TR?
All STM32G031K8U7TR units undergo pre-shipment inspection (PSI). If there is an issue with STM32G031K8U7TR, 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 STM32G031K8U7TR part is unused and in its original packaging.
Return procedure for STM32G031K8U7TR:
1.Submit a request within 90 days.
2.Obtain a Return Material Authorization (RMA) from Aetrix.
STM32G031K8U7TR 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…

