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

- Shipping:

Inventory:1,977
Please send an inquiry. Send us your inquiry, and we will respond immediately.
Product details
Overview
STM32F031G6U6 from STMicroelectronics is an ARM® Cortex®-M0 32-bit microcontroller with 32 KB Flash, 4 KB SRAM (with hardware parity), and operating voltage range of 2.0–3.6 V. It integrates a 12-bit 1.0 µs ADC (10-channel), nine timers including one advanced-control timer with deadtime generation, and communication interfaces: I²C (Fast Mode Plus), USART (LIN/IrDA/ISO7816), and SPI (18 Mbit/s). It is used in cost-sensitive industrial control and smart sensor nodes requiring low-power operation and integrated analog peripherals.
For engineers reviewing the STM32F031G6U6 datasheet, STM32F031G6U6 pinout, STM32F031G6U6 application, or STM32F031G6U6 equivalent, key selection criteria include its 48 MHz CPU frequency, 5 V-tolerant I/O capability on up to 26 pins, RTC with alarm and periodic wakeup, SWD debug interface, and extended temperature range (–40 to +105°C) for harsh environments.
Technical Context
The STM32F031G6U6 implements a single-cycle ARM Cortex-M0 core with Thumb-2 instruction set, supporting deterministic real-time execution at up to 48 MHz. Its clock system combines internal RC oscillators (8 MHz HSI with PLL, 40 kHz LSI), external crystal options (4–32 MHz HSE, 32.768 kHz LSE), and precise calibration for RTC accuracy.
Power management includes programmable voltage detector (PVD), POR/PDR, and three low-power modes (Sleep, Stop, Standby) with fast wakeup (<5 µs from Sleep). The analog subsystem features separate VDDA supply (2.4–3.6 V), internal temperature sensor, and VREFINT reference-enabling self-calibrated measurements without external components.
Key Specifications
| Parameter | Value and Actual Design Meaning |
|---|---|
| CPU Core | ARM Cortex-M0, 48 MHz max - enables real-time deterministic control with minimal latency for motor commutation or sensor fusion. |
| Flash Memory | 32 KB - sufficient for firmware with bootloader, communication stacks (e.g., Modbus RTU), and safety routines. |
| SRAM | 4 KB with HW parity - supports error-detecting data buffers for critical control variables or communication packet handling. |
| ADC | 12-bit, 1.0 µs conversion, 10 channels - allows simultaneous sampling of multiple analog sensors (e.g., current, voltage, temperature) at ≥1 MSPS aggregate rate. |
| I/O Voltage Tolerance | 5 V tolerant on up to 26 pins - simplifies interfacing with legacy 5 V logic or industrial I/O without level shifters. |
| Timers | 9 timers including TIM1 (advanced-control, 6-channel PWM + deadtime) - supports brushless DC motor control with hardware-enforced shoot-through protection. |
| Communication | I²C (1 Mbit/s Fast Mode Plus), USART (LIN/IrDA/ISO7816), SPI (18 Mbit/s) - enables direct connection to automotive LIN networks, contactless smart cards, or high-speed sensor arrays. |
| Operating Temp | –40 to +105°C - qualified for under-hood automotive modules, industrial PLC I/O terminals, and outdoor metering equipment. |
Pinout & Package
STM32F031G6U6 is housed in a 28-pin UFQFPN package (4 × 4 mm, 0.5 mm pitch), optimized for space-constrained PCB layouts while maintaining thermal performance via exposed pad. Pin count and layout align with ST's STM32F031x6 family footprint compatibility across TSSOP20 and UFQFPN28 variants.
| Pin/Terminal | Circuit Role | Design Meaning |
|---|---|---|
| VDD, VSS | Digital power supply and ground | Core logic and I/O domain; requires local 100 nF + 4.7 µF decoupling per VDD pin for stable 48 MHz operation. |
| VDDA, VSSA | Analog power supply and ground | Independent 2.4–3.6 V supply for ADC, reset circuitry, and internal references - must be filtered separately from digital rails. |
| PA0–PA15, PB0–PB1 | General-purpose I/O | Up to 26 pins support 5 V tolerance; all configurable as EXTI sources - enables wake-from-Stop on external event (e.g., button press or sensor alert). |
| NRST | Active-low reset input | Asynchronous reset with Schmitt trigger; accepts 1.65–5.5 V logic levels - compatible with open-drain supervisors or manual reset circuits. |
| SWDIO / SWCLK | Serial Wire Debug interface | Two-pin debug port supporting full programming, breakpoint, and real-time variable monitoring - eliminates need for JTAG header space. |
| BOOT0 | Boot mode selection | High at reset forces system memory boot (for ISP via USART); tied low for normal Flash execution - enables field firmware updates without debugger. |
Key Features
| Feature | Design Value |
|---|---|
| Hardware CRC unit | Accelerates firmware integrity checks and communication frame validation (e.g., CAN/LIN message CRC) without CPU overhead. |
| Programmable voltage detector (PVD) | Configurable trip points (2.2–2.9 V) enable early brown-out detection and graceful shutdown before Flash write corruption occurs. |
| RTC with calendar and alarm | Retains time/date across Stop/Standby using VBAT; alarm triggers wakeup - supports scheduled sensor sampling or maintenance alerts in battery-powered nodes. |
| DMA controller (5-channel) | Enables zero-CPU-overhead peripheral-to-memory transfers (e.g., ADC → SRAM buffer, SPI RX → UART TX) - critical for deterministic real-time data pipelines. |
| 96-bit unique ID | Factory-programmed serial number usable for device authentication, license binding, or secure firmware update key derivation. |
Applications
| Industrial Motor Control | Smart Energy Metering |
|---|---|
Use Scenario: Brushless DC fan or pump controller in HVAC systems requiring compact size, thermal resilience, and EMI robustness. IC Role / Device Role / Timing Role: Main system controller executing FOC algorithm, generating 6-channel complementary PWM with deadtime, and monitoring current/voltage/temperature. Use Value: Integrated TIM1 with hardware deadtime prevents MOSFET shoot-through; 12-bit ADC enables precise current sensing; –40 to +105°C rating ensures reliability near heat-generating power stages. | Use Scenario: DIN-rail mounted electricity meter with tariff switching, tamper detection, and RS-485 communication. IC Role / Device Role / Timing Role: System-on-chip managing metrology ADC interface (via SPI), RTC-based billing cycles, LIN-compatible tamper alerts, and isolated RS-485 transceiver control. Use Value: 5 V-tolerant I/O directly drives optocoupler inputs; RTC alarm triggers daily energy integration; hardware CRC validates firmware updates over RS-485. |
| Automotive Body Electronics | IoT Edge Sensor Node |
Use Scenario: Door module controlling window lift, mirror adjustment, and interior lighting with LIN bus connectivity. IC Role / Device Role / Timing Role: LIN slave node implementing ISO 17987 physical layer, decoding LIN frames, and driving DC motors via PWM outputs. Use Value: USART supports LIN 2.2A with auto-baud detection and sync field processing; low-power Stop mode extends battery life during vehicle sleep; VBAT backup preserves configuration during ignition-off. | Use Scenario: Battery-powered environmental monitor logging temperature, humidity, and CO₂ in commercial buildings. IC Role / Device Role / Timing Role: Ultra-low-power host collecting sensor data via I²C, performing local threshold checks, and transmitting via BLE or LoRa gateway. Use Value: Standby current <1 µA with RTC wakeup enables multi-year battery life; 12-bit ADC resolves ±0.1°C temperature changes; SWD debug retains field-upgrade capability without test pads. |
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 VBAT support, no RTC calendar | Limited to basic control tasks without time-stamped logging or battery-backed retention | Select when cost is primary constraint and RTC/calendar, VBAT, or SRAM parity are unnecessary. |
| STM32F042F4P6 | Includes USB 2.0 FS device interface, 32 KB Flash, same 48 MHz core and peripherals | Enables direct PC connectivity for configuration, diagnostics, or firmware updates without external USB-UART bridge | Choose when USB device functionality (e.g., HID, CDC) is required alongside motor control or sensor acquisition. |
Compared with STM32F031G6U6, STM32F030F4P6 reduces BOM cost but sacrifices data integrity (no SRAM parity) and timekeeping (no RTC calendar), while STM32F042F4P6 adds USB at identical Flash/performance - making it preferable for user-facing devices needing plug-and-play configuration.
Availability
STM32F031G6U6 is available at Aetrix Electronics and suitable for industrial motor control, smart energy metering, automotive body electronics, and IoT edge sensor nodes requiring stable component supply across long production lifecycles.
Supply support for STM32F031G6U6 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 components for industrial, automotive, and consumer markets.
The STM32F0 series targets cost-sensitive, resource-constrained embedded applications demanding high integration, low power, and industrial-grade reliability - with the F031 subgroup optimized for compact packages and analog-rich control tasks.
FAQ
What is the maximum operating frequency of the STM32F031G6U6?
The STM32F031G6U6 operates at a maximum CPU frequency of 48 MHz, achieved using the internal 8 MHz HSI oscillator with x6 PLL multiplication or an external 4–32 MHz crystal. This frequency is fully supported across the entire –40 to +105°C temperature range and 2.0–3.6 V supply voltage, with timing verified per ST's production characterization data.
Does the STM32F031G6U6 support hardware-based cryptographic functions?
No, the STM32F031G6U6 does not include dedicated cryptographic accelerators (e.g., AES, SHA, PKA). It relies on software libraries for encryption, though its 96-bit unique ID and hardware CRC unit can support basic firmware authentication and integrity verification workflows in resource-limited designs.
Can the STM32F031G6U6 drive standard 5 V logic inputs directly?
Yes - up to 26 GPIO pins are 5 V tolerant when configured as inputs, meaning they safely accept 0–5.5 V signals even with VDD = 2.0–3.6 V. This eliminates external level-shifting components when interfacing with legacy 5 V sensors, switches, or industrial I/O modules.
What debug interface does the STM32F031G6U6 use, and what pins are required?
The STM32F031G6U6 uses Serial Wire Debug (SWD), requiring only two pins: SWDIO (PA13) and SWCLK (PA14). No JTAG header or additional pins are needed. SWD supports full flash programming, real-time debugging, and memory inspection - compatible with ST-LINK/V2 and other CMSIS-DAP compliant debuggers.
STM32F031G6U6 Specifications
- Product attributes
- Attribute value
- Manufacturer:
- STMicroelectronics
- Package/Case:
- 28-UFQFN
- Series:
- STM32F0
- Packaging:
- Tray
- 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 ~ 85°C (TA)
- Grade:
- -
- Qualification:
- -
- Mounting Type:
- Surface Mount
- Supplier Device Package:
STM32F031G6U6 FAQ
1.How can I place an order for STM32F031G6U6 through Aetrix?
Please submit a Request for Quotation (RFQ) for STM32F031G6U6 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 STM32F031G6U6 reliable?
The price and inventory of STM32F031G6U6 are updated periodically and may fluctuate due to market conditions. Stock and pricing data are typically refreshed every 24 hours. Quotation validity for STM32F031G6U6 is usually 5 days.
3.What payment methods are accepted for STM32F031G6U6?
We accept Wire Transfer, PayPal, Credit Card, Western Union, MoneyGram, and Escrow for STM32F031G6U6 transactions.
Note: Certain payment methods may incur a processing fee.
4.How is shipping managed for STM32F031G6U6?
STM32F031G6U6 orders can be shipped via leading logistics carriers, including DHL, UPS, FedEx, TNT, or Registered Mail.
Once your STM32F031G6U6 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 STM32F031G6U6?
For technical support, including STM32F031G6U6 datasheets, pinout diagrams, or application guidance, please contact our engineering support team. They can provide detailed documentation and assistance for your STM32F031G6U6 requirements.
6.How does Aetrix verify that STM32F031G6U6 is sourced from the original manufacturer or authorized distributors?
All STM32F031G6U6 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 STM32F031G6U6 meets industry standards.
7.What is the process for return or replacement of STM32F031G6U6?
All STM32F031G6U6 units undergo pre-shipment inspection (PSI). If there is an issue with STM32F031G6U6, 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 STM32F031G6U6 part is unused and in its original packaging.
Return procedure for STM32F031G6U6:
1.Submit a request within 90 days.
2.Obtain a Return Material Authorization (RMA) from Aetrix.
STM32F031G6U6 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…

