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

- Shipping:

Inventory:2,890
Please send an inquiry. Send us your inquiry, and we will respond immediately.
Product details
Overview
STM32G031K6T7TR from STMicroelectronics is a 32-bit Arm® Cortex®-M0+ microcontroller with 64 KB Flash, 8 KB SRAM, 1.7–3.6 V operation, and integrated peripherals including two USARTs, two I²C interfaces (one Fast-mode Plus), two SPIs, 12-bit ADC (0.4 µs conversion), and 11 timers - deployed in industrial sensor nodes, smart metering front-ends, and low-power IoT edge controllers.
For engineers reviewing the STM32G031K6T7TR datasheet, STM32G031K6T7TR pinout, STM32G031K6T7TR application, or STM32G031K6T7TR equivalent, key selection criteria include its 64 MHz max CPU frequency, 5 V-tolerant GPIOs, hardware parity on SRAM, securable flash area, and support for Stop/Standby/Shutdown low-power modes with RTC wakeup capability.
Technical Context
The device implements an Arm Cortex-M0+ core with Memory Protection Unit (MPU), enabling secure partitioning of code and data regions. It integrates a 128 MHz-capable advanced-control timer (TIM1) for motor control, plus four general-purpose 16-bit timers and two low-power 16-bit timers (LPTIM1/LPTIM2) with sub-microsecond resolution in Stop mode.
Clock architecture includes dual oscillators: a 4–48 MHz HSE crystal input and a 32 kHz LSE for RTC calibration, alongside internal 16 MHz ±1% RC (HSI16) and 32 kHz ±5% RC (LSI), all configurable via RCC registers and supported by PLL for precise system clock derivation.
Key Specifications
| Parameter | Value and Actual Design Meaning |
|---|---|
| CPU Core | Arm Cortex-M0+, 64 MHz max - enables real-time deterministic execution for time-critical firmware without cache or branch prediction overhead. |
| Memory | 64 KB Flash (with securable area & readout protection), 8 KB SRAM (HW parity) - supports firmware updates with integrity checking and secure boot partitioning. |
| ADC | 12-bit, 0.4 µs conversion, up to 16 external channels - delivers high-speed analog sensing for battery monitoring or sensor fusion at ≤1 MSPS sampling rate. |
| Timers | 11 timers: 1x 128 MHz advanced (TIM1), 4x general-purpose 16-bit, 2x low-power 16-bit, 2x watchdogs - enables motor commutation, PWM generation, and ultra-low-power periodic wakeups. |
| I/O Voltage Tolerance | Multiple 5 V-tolerant pins - allows direct interfacing with legacy 5 V logic or sensors without level-shifting circuitry. |
| Low-Power Modes | Sleep, Stop, Standby, Shutdown - achieves 190 nA shutdown current (VBAT only), enabling multi-year battery life in always-on sensor applications. |
| Communication | 2× I²C (1× Fast-mode Plus @ 1 Mbit/s), 2× USART (1× ISO7816/LIN/IrDA), 2× SPI (32 Mbit/s) - supports mixed-protocol connectivity in constrained embedded systems. |
Pinout & Package
STM32G031K6T7TR is housed in a 32-pin UFQFPN package (5 × 5 mm, 0.5 mm pitch), compliant with ECOPACK2 environmental standards and suitable for space-constrained PCB layouts.
| Pin/Terminal | Circuit Role | Design Meaning |
|---|---|---|
| VDD | Core & I/O supply | 1.7–3.6 V main power input; decoupling required per datasheet layout guidelines to ensure stable operation across temperature. |
| VSS | Ground reference | Dedicated analog/digital ground pins - must be connected to low-impedance PCB plane to minimize noise coupling into ADC/timers. |
| NRST | Active-low reset | Asynchronous reset input with internal pull-up; accepts external push-button or supervisor IC assertion for safe firmware recovery. |
| PA0–PA15 | General-purpose I/O | Up to 16 programmable GPIOs with interrupt capability, alternate function mapping, and 5 V tolerance on selected pins (e.g., PA0–PA7). |
| PA13/PA14 | SWD debug interface | Serial Wire Debug (SWDIO/SWCLK) - enables non-intrusive programming and real-time debugging without dedicated JTAG pins. |
| PC13/PC14/PC15 | RTC & oscillator | PC13 = RTC_OUT/ALARM; PC14/PC15 = 32.768 kHz crystal connections - require precise load capacitance matching for ±20 ppm RTC accuracy. |
Key Features
| Feature | Design Value |
|---|---|
| Secure Boot & Readout Protection | Configurable RDP levels (Level 0/1/2) and securable flash area - prevents unauthorized firmware extraction or modification in field-deployed devices. |
| Hardware CRC Unit | Dedicated peripheral computing CRC-32 over memory blocks - accelerates firmware image validation and data integrity checks without CPU load. |
| VBAT Supply Support | Backup domain powered independently via VBAT pin - maintains RTC calendar, alarm, and 32 backup registers during main power loss. |
| Programmable Voltage Detector | PVD with 8 selectable thresholds (2.0–2.8 V) - triggers interrupt or reset before brownout, enabling graceful state save before power collapse. |
| Temperature Sensor | Integrated calibrated sensor (±1.5°C accuracy) - provides die temperature monitoring for thermal management or compensation algorithms. |
Applications
| Smart Energy Metering | Industrial Sensor Node |
|---|---|
|
Use Scenario: Bidirectional energy measurement with tamper detection and secure data logging in residential/utility meters. IC Role / Device Role / Timing Role: Main controller executing metrology algorithms, managing RS-485/PLC communication, and maintaining secure time-stamped logs via RTC. Use Value: 64 KB Flash stores encrypted firmware + tariff tables; 5 V-tolerant UART pins interface directly with isolation transceivers; low-power Stop mode extends battery backup life. |
Use Scenario: Wireless vibration/temperature node in predictive maintenance systems, operating on coin-cell batteries for >5 years. IC Role / Device Role / Timing Role: Sensor aggregator and BLE gateway controller, waking periodically via LPTIM2 to sample ADC and transmit via UART-to-Bluetooth bridge. Use Value: 190 nA Shutdown current minimizes quiescent drain; hardware oversampling (16-bit effective) improves sensor SNR; SWD debug enables field firmware updates. |
| Home Appliance Control | Medical Wearable Interface |
|
Use Scenario: Motor control and user interface in compact appliances (e.g., smart vacuum cleaners, espresso machines). IC Role / Device Role / Timing Role: Real-time motor driver (TIM1 PWM), touch-button scanner (GPIO interrupts), and display backlight controller (PWM dimming). Use Value: 128 MHz TIM1 supports 20 kHz motor switching; 11 timers enable concurrent PWM, timing, and watchdog functions; ECOPACK2 compliance meets RoHS/REACH requirements. |
Use Scenario: Signal conditioning and low-latency data forwarding in ECG/PPG wearable patches with optical sensors. IC Role / Device Role / Timing Role: Analog front-end controller acquiring raw sensor data via ADC, applying digital filtering, and streaming via UART to host MCU or radio module. Use Value: 12-bit ADC with 0.4 µs conversion captures fast pulse waveforms; VREFBUF stabilizes reference voltage for consistent ADC linearity; SRAM parity ensures data integrity during processing. |
Equivalent & Alternatives
The following parts are listed as comparable options for similar microcontroller applications.
| Alternative Part | Technical Difference | Application Difference | Selection Advice |
|---|---|---|---|
| STM32G030F6P6TR | 32 KB Flash, no securable area, no VREFBUF, same 32-pin TSSOP package - lacks hardware parity on SRAM and RTC calibration support. | Suitable for cost-sensitive, non-secure applications like basic LED drivers or fan controllers where firmware IP protection is not required. | Select when BOM cost reduction outweighs need for secure boot, RTC precision, or analog reference stability. |
| STM32G041F8P6TR | 64 KB Flash, 12 KB SRAM, USB 2.0 FS interface, enhanced analog features (VREFBUF, VBAT monitor), same UFQFPN32 package - adds USB PHY and higher RAM density. | Preferred for USB-connected devices (e.g., configuration dongles, firmware loaders) requiring host enumeration and larger runtime buffers. | Choose when USB device functionality, additional SRAM for protocol stacks, or improved analog subsystems justify marginal cost increase. |
Compared with STM32G031K6T7TR, STM32G030F6P6TR trades security and analog precision for lower cost, while STM32G041F8P6TR extends capability with USB and richer analog resources - both retain identical pinout and core architecture for drop-in migration paths.
Availability
STM32G031K6T7TR is available at Aetrix Electronics and suitable for industrial sensor nodes, smart metering front-ends, and medical wearable interfaces requiring stable component supply, long-term lifecycle assurance, and full traceability.
Supply support for STM32G031K6T7TR 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 enhanced security, analog integration, and robust industrial qualification (−40°C to 125°C).
FAQ
What is the maximum operating temperature range for STM32G031K6T7TR?
The STM32G031K6T7TR is qualified for industrial operation from −40°C to 125°C ambient temperature. This extended range is validated per ST's specification DS12992 Rev 4, Section 5.3.1, and applies to all electrical characteristics including Flash endurance, ADC accuracy, and timer jitter - critical for under-hood automotive modules or enclosed industrial enclosures.
Does STM32G031K6T7TR support hardware encryption or secure boot?
Yes - it includes configurable Readout Protection (RDP) levels (0/1/2), securable flash area, and hardware CRC unit for firmware image verification. While it lacks dedicated AES engines, its MPU enables memory isolation for secure bootloader execution, and RDP Level 2 permanently disables debug access after programming - meeting IEC 62443-3-3 SL1 requirements for basic firmware confidentiality.
Can STM32G031K6T7TR drive 5 V logic directly?
Yes - multiple GPIOs (including PA0–PA7, PB0–PB1, and others listed in Table 12 of DS12992) are explicitly rated as 5 V-tolerant when VDD is ≥2.0 V. These pins accept 0–5.5 V inputs without damage and maintain correct logic levels, eliminating external level shifters when interfacing with legacy 5 V peripherals like RS-232 transceivers or discrete sensor outputs.
What debug interface does STM32G031K6T7TR use, and what pins are required?
It uses Serial Wire Debug (SWD) via dedicated PA13 (SWDIO) and PA14 (SWCLK) pins - requiring only two signal lines plus GND and VDD for power. No JTAG header is needed, reducing PCB footprint and simplifying production programming. SWD supports full breakpoint, register, and memory access at speeds up to 10 MHz, compatible with ST-LINK v2/v3 and OpenOCD toolchains.
STM32G031K6T7TR Specifications
- Product attributes
- Attribute value
- Manufacturer:
- STMicroelectronics
- Package/Case:
- 32-LQFP
- Series:
- STM32G0
- Packaging:
- Tape & Reel (TR)
- Product Status:
- Active
- Programmable:
- -
- Core Processor:
- ARM® Cortex®-M0+
- Core Size:
- 32-Bit
- 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:
- Internal
- Operating Temperature:
- -40°C ~ 105°C (TA)
- Grade:
- -
- Qualification:
- -
- Mounting Type:
- Surface Mount
- Supplier Device Package:
STM32G031K6T7TR FAQ
1.How can I place an order for STM32G031K6T7TR through Aetrix?
Please submit a Request for Quotation (RFQ) for STM32G031K6T7TR 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 STM32G031K6T7TR reliable?
The price and inventory of STM32G031K6T7TR are updated periodically and may fluctuate due to market conditions. Stock and pricing data are typically refreshed every 24 hours. Quotation validity for STM32G031K6T7TR is usually 5 days.
3.What payment methods are accepted for STM32G031K6T7TR?
We accept Wire Transfer, PayPal, Credit Card, Western Union, MoneyGram, and Escrow for STM32G031K6T7TR transactions.
Note: Certain payment methods may incur a processing fee.
4.How is shipping managed for STM32G031K6T7TR?
STM32G031K6T7TR orders can be shipped via leading logistics carriers, including DHL, UPS, FedEx, TNT, or Registered Mail.
Once your STM32G031K6T7TR 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 STM32G031K6T7TR?
For technical support, including STM32G031K6T7TR datasheets, pinout diagrams, or application guidance, please contact our engineering support team. They can provide detailed documentation and assistance for your STM32G031K6T7TR requirements.
6.How does Aetrix verify that STM32G031K6T7TR is sourced from the original manufacturer or authorized distributors?
All STM32G031K6T7TR 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 STM32G031K6T7TR meets industry standards.
7.What is the process for return or replacement of STM32G031K6T7TR?
All STM32G031K6T7TR units undergo pre-shipment inspection (PSI). If there is an issue with STM32G031K6T7TR, 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 STM32G031K6T7TR part is unused and in its original packaging.
Return procedure for STM32G031K6T7TR:
1.Submit a request within 90 days.
2.Obtain a Return Material Authorization (RMA) from Aetrix.
STM32G031K6T7TR 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…

