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

- Shipping:

Inventory:4,912
Please send an inquiry. Send us your inquiry, and we will respond immediately.
Product details
Overview
STM32F031G6U7TR from STMicroelectronics is a 32-bit ARM Cortex-M0 microcontroller in UFQFPN32 (5 × 5 mm) package, featuring 32 KB Flash, 4 KB SRAM with hardware parity, 48 MHz max CPU frequency, 12-bit ADC (1.0 µs conversion), and integrated peripherals including I²C (Fast Mode Plus), USART (LIN/IrDA/ISO7816), SPI/I²S, and nine timers - deployed in industrial motor control, smart sensor nodes, and battery-powered IoT edge devices.
For engineers reviewing the STM32F031G6U7TR datasheet, STM32F031G6U7TR pinout, STM32F031G6U7TR application, or STM32F031G6U7TR equivalent, key selection criteria include its 5 V-tolerant I/Os (up to 26 pins), programmable voltage detector (PVD), RTC with alarm/wakeup from Stop/Standby, SWD debug interface, and extended temperature range (–40 to +105 °C).
Technical Context
The device implements an ARM Cortex-M0 core with Harvard architecture, supporting Thumb-2 instruction set and NVIC for deterministic interrupt handling. Its clock system integrates multiple sources: 4–32 MHz HSE crystal, 32 kHz LSE for RTC, 8 MHz HSI with PLL (×6), and 40 kHz LSI for watchdogs - enabling flexible low-power operation with precise timing control.
Peripherals are tightly coupled via AHB/APB buses: DMA controller (5 channels) offloads data movement between ADC, USART, SPI, and memory; advanced-control timer TIM1 delivers 6-channel PWM with deadtime insertion and emergency stop - critical for BLDC motor gate driving; ADC supports up to 10 channels with internal reference (VREFINT) and temperature sensor calibration.
Key Specifications
| Parameter | Value and Actual Design Meaning |
|---|---|
| CPU Core | ARM Cortex-M0, 48 MHz max - enables real-time deterministic execution of control loops and protocol stacks. |
| Flash / SRAM | 32 KB Flash, 4 KB SRAM with HW parity - sufficient for compact firmware with error-detection safety compliance. |
| ADC | 12-bit, 1.0 µs conversion, 10-channel - supports fast sampling of analog sensors (e.g., current/voltage feedback in motor drives). |
| I/O Voltage Tolerance | Up to 26 pins 5 V tolerant - simplifies interfacing with legacy 5 V logic without level shifters. |
| Operating Temp | –40 to +105 °C - qualified for industrial environments including motor drives and outdoor metering. |
| Power Modes | Sleep, Stop, Standby with RTC wakeup - enables sub-µA standby current for battery-operated endpoints. |
| Communication | I²C Fast Mode Plus (1 Mbit/s), USART (LIN/IrDA/ISO7816), SPI (18 Mbit/s) - covers automotive diagnostics, IR remote control, and sensor aggregation. |
Pinout & Package
STM32F031G6U7TR uses a 32-pin Ultra-Fine Pitch Quad Flat No-lead (UFQFPN32) package, 5 × 5 mm, 0.5 mm pitch, with exposed thermal pad. Pin functions conform to STM32F031x6 family layout per ST DocID025743 Rev 6, Figure 5.
| Pin/Terminal | Circuit Role | Design Meaning |
|---|---|---|
| VDD, VSS | Digital power supply / ground | 2.0–3.6 V digital domain; dual VSS pins improve noise immunity and current return path integrity. |
| VDDA, VSSA | Analog power supply / ground | Separate 2.4–3.6 V analog rail isolates ADC/RTC from digital switching noise. |
| PA0–PA15, PB0–PB9 | General-purpose I/Os | 39 total GPIOs; up to 26 support 5 V tolerance - enables mixed-voltage system integration. |
| NRST | Active-low reset input | Externally driven reset with internal pull-up; supports programmable PVD-triggered reset. |
| SWDIO / SWCLK | Serial Wire Debug interface | 2-pin debug port for programming and real-time trace - eliminates JTAG pin overhead. |
| BOOT0 | Boot mode selection | High at reset forces boot from system memory (for bootloader updates); tied low for Flash execution. |
Key Features
| Feature | Design Value |
|---|---|
| Hardware CRC unit | Accelerates firmware integrity checks and communication frame validation (e.g., Modbus CRC-32). |
| Advanced-control timer (TIM1) | 6-channel complementary PWM with programmable deadtime and emergency stop - essential for inverter gate drive safety. |
| RTC with calendar & alarm | Accurate timekeeping with periodic wakeup from Stop/Standby - enables scheduled sensor sampling without MCU wake. |
| Programmable voltage detector (PVD) | Configurable threshold monitoring of VDD - triggers interrupt or reset before brownout affects Flash/SRAM reliability. |
| Temperature sensor & VREFINT | Calibrated on-chip sensor (±1.5 °C accuracy) and internal reference (1.22 V ±2.5%) - eliminates external components for thermal monitoring and ADC scaling. |
Applications
| Industrial Motor Control | Smart Sensor Node |
|---|---|
Use Scenario: Brushless DC (BLDC) motor commutation in HVAC blowers or small pumps. IC Role / Device Role / Timing Role: Real-time PWM generation, current sensing via ADC, fault detection, and closed-loop speed regulation. Use Value: TIM1's deadtime control prevents shoot-through; 5 V-tolerant I/Os interface directly with Hall-effect sensors and gate drivers. |
Use Scenario: Battery-powered environmental monitor measuring temperature, humidity, and air quality. IC Role / Device Role / Timing Role: Sensor data acquisition, low-power scheduling, wireless transmission coordination (e.g., via UART to BLE module). Use Value: RTC alarm wakes MCU every 30 s for measurement; Stop mode draws <1.5 µA - extends 2xAA battery life beyond 2 years. |
| Energy Metering Interface | Home Appliance Control Panel |
Use Scenario: Pulse counting and tariff switching in DIN-rail electricity meters. IC Role / Device Role / Timing Role: Isolated pulse input capture, secure time-stamped logging, tamper detection via GPIO interrupts. Use Value: High-accuracy RTC with calibration ensures billing compliance; PVD monitors supply dips during load switching. |
Use Scenario: Keypad scanning, LED backlight dimming, and buzzer control in washing machine UI. IC Role / Device Role / Timing Role: GPIO matrix scan, PWM-driven LED brightness control, and UART-based communication with main MCU. Use Value: 39 fast I/Os eliminate external port expanders; SWD allows field firmware updates without disassembly. |
Equivalent & Alternatives
The following parts are listed as comparable options for similar microcontroller applications.
| Alternative Part | Technical Difference | Application Difference | Selection Advice |
|---|---|---|---|
| STM32F030F4P6 | 16 KB Flash, no hardware parity on SRAM, no TIM1 advanced timer, TSSOP20 package (20-pin) | Limited peripheral count and no deadtime-capable PWM - unsuitable for motor control, only basic I/O/UART tasks | Select when cost sensitivity outweighs safety-critical PWM or memory integrity requirements. |
| STM32F042F4P6 | 32 KB Flash, USB 2.0 FS device interface, same UFQFPN20 package, lacks 5 V-tolerant I/Os | USB connectivity enables direct PC interface but removes compatibility with 5 V sensors/peripherals | Choose for USB-enabled diagnostic tools where 5 V tolerance is unnecessary and board space is constrained. |
Compared with STM32F031G6U7TR, STM32F030F4P6 trades safety features and motor control capability for lower cost and smaller footprint, while STM32F042F4P6 adds USB at the expense of 5 V I/O compatibility - making the G6U7TR optimal for industrial edge nodes requiring robust analog/motor interfaces and extended temperature operation.
Availability
STM32F031G6U7TR is available at Aetrix Electronics and suitable for industrial motor control, smart sensor nodes, energy metering interfaces, and home appliance control panels requiring stable component supply across long-lifecycle production programs.
Supply support for STM32F031G6U7TR 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.
This part belongs to the STM32F0 mainstream Arm Cortex-M0 microcontroller line, engineered for cost-sensitive, resource-constrained embedded applications demanding high integration, low power, and industrial-grade reliability - especially where motor control, sensor fusion, or secure timekeeping are central.
FAQ
What is the maximum operating frequency and supported clock sources?
The STM32F031G6U7TR operates at up to 48 MHz using its internal 8 MHz HSI oscillator with PLL (×6), or external 4–32 MHz crystal (HSE). It also supports 32 kHz LSE for RTC and 40 kHz LSI for watchdogs - all configurable via RCC registers without external components.
Does this MCU support hardware error detection in memory?
Yes - it includes hardware parity checking on the entire 4 KB SRAM block. Any parity error triggers a HardFault exception, enabling fail-safe response in safety-aware designs. Flash memory supports read-while-write and has 10K write/erase cycle endurance per sector.
How many I/O pins are 5 V tolerant, and which ones?
Up to 26 I/Os are 5 V tolerant, covering most pins in GPIOA and GPIOB (e.g., PA0–PA15, PB0–PB9 except PB10/PB11). Tolerance is valid only when VDD is ≥ 2.0 V; full functionality requires VDD within 2.0–3.6 V per datasheet Section 6.3.14.
Can the device wake from Stop mode using the RTC alarm?
Yes - the integrated calendar RTC supports alarm events and periodic wakeup from both Stop and Standby modes. Wakeup latency is typically 6 µs (from Stop) and does not require Flash or SRAM retention, enabling ultra-low-power operation with precise scheduling.
STM32F031G6U7TR Specifications
- Product attributes
- Attribute value
- Manufacturer:
- STMicroelectronics
- Package/Case:
- 28-UFQFN
- Series:
- STM32F0
- Packaging:
- Tape & Reel (TR)
- Product Status:
- Active
- Programmable:
- Not Verified
- Core Processor:
- ARM® Cortex®-M0
- Core Size:
- 32-Bit Single-Core
- Speed:
- 48MHz
- Connectivity:
- I2C, IrDA, LINbus, SPI, UART/USART
- Peripherals:
- DMA, I2S, POR, PWM, WDT
- Number of I/O:
- 23
- Program Memory Size:
- 32KB (32K x 8)
- Program Memory Type:
- FLASH
- EEPROM Size:
- -
- RAM Size:
- 4K x 8
- Voltage - Supply (Vcc/Vdd):
- 2V ~ 3.6V
- Data Converters:
- A/D 13x12b
- Oscillator Type:
- Internal
- Operating Temperature:
- -40°C ~ 105°C (TA)
- Grade:
- -
- Qualification:
- -
- Mounting Type:
- Surface Mount
- Supplier Device Package:
STM32F031G6U7TR FAQ
1.How can I place an order for STM32F031G6U7TR through Aetrix?
Please submit a Request for Quotation (RFQ) for STM32F031G6U7TR 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 STM32F031G6U7TR reliable?
The price and inventory of STM32F031G6U7TR are updated periodically and may fluctuate due to market conditions. Stock and pricing data are typically refreshed every 24 hours. Quotation validity for STM32F031G6U7TR is usually 5 days.
3.What payment methods are accepted for STM32F031G6U7TR?
We accept Wire Transfer, PayPal, Credit Card, Western Union, MoneyGram, and Escrow for STM32F031G6U7TR transactions.
Note: Certain payment methods may incur a processing fee.
4.How is shipping managed for STM32F031G6U7TR?
STM32F031G6U7TR orders can be shipped via leading logistics carriers, including DHL, UPS, FedEx, TNT, or Registered Mail.
Once your STM32F031G6U7TR 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 STM32F031G6U7TR?
For technical support, including STM32F031G6U7TR datasheets, pinout diagrams, or application guidance, please contact our engineering support team. They can provide detailed documentation and assistance for your STM32F031G6U7TR requirements.
6.How does Aetrix verify that STM32F031G6U7TR is sourced from the original manufacturer or authorized distributors?
All STM32F031G6U7TR 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 STM32F031G6U7TR meets industry standards.
7.What is the process for return or replacement of STM32F031G6U7TR?
All STM32F031G6U7TR units undergo pre-shipment inspection (PSI). If there is an issue with STM32F031G6U7TR, 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 STM32F031G6U7TR part is unused and in its original packaging.
Return procedure for STM32F031G6U7TR:
1.Submit a request within 90 days.
2.Obtain a Return Material Authorization (RMA) from Aetrix.
STM32F031G6U7TR 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…

