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

- Shipping:

Inventory:4,668
Please send an inquiry. Send us your inquiry, and we will respond immediately.
Product details
Overview
STM32F031G4U6 from STMicroelectronics is an ARM® Cortex®-M0 32-bit microcontroller with 16 KB Flash, 4 KB SRAM (with hardware parity), and operates at up to 48 MHz. 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, USART, SPI) for embedded control in space-constrained industrial sensors and motor drives.
For engineers reviewing the STM32F031G4U6 datasheet, STM32F031G4U6 pinout, STM32F031G4U6 application, or STM32F031G4U6 equivalent, key selection criteria include its UFQFPN28 package footprint, 5 V-tolerant I/O capability on up to 26 pins, RTC with alarm and wakeup from Stop/Standby, and support for Fast Mode Plus I²C (1 Mbit/s) with 20 mA sink current.
Technical Context
The device implements a single-cycle ARM Cortex-M0 core with Thumb-2 instruction set, coupled with tightly integrated peripherals including a CRC calculation unit and programmable voltage detector (PVD) for system-level power monitoring. Its clock tree supports multiple sources: 4–32 MHz HSE crystal, 32 kHz LSE for RTC, and internal RC oscillators (8 MHz HSI with PLL, 40 kHz LSI).
Power architecture separates digital (VDD: 2.0–3.6 V) and analog (VDDA: 2.4–3.6 V) domains, enabling precise ADC operation while supporting Sleep, Stop, and Standby low-power modes with RTC and backup register retention powered by VBAT. All 28 pins of the UFQFPN28 package are assigned to GPIO, peripheral functions, or power/ground-no dedicated test or debug-only pins.
Key Specifications
| Parameter | Value and Actual Design Meaning |
|---|---|
| Core | ARM Cortex-M0, 48 MHz max - enables real-time deterministic control in cost-sensitive applications without floating-point unit overhead. |
| Flash / SRAM | 16 KB Flash, 4 KB SRAM with HW parity - sufficient for compact firmware with error-detection integrity for safety-critical sensor nodes. |
| ADC | 12-bit, 1.0 µs conversion, 10 channels - supports simultaneous sampling of analog sensor inputs (e.g., temperature, current) with sub-microsecond latency. |
| Timers | 9 timers including TIM1 (16-bit, 7-channel advanced-control) - provides PWM generation with deadtime insertion and emergency stop for BLDC motor gate drivers. |
| I/O Voltage Tolerance | Up to 26 pins 5 V tolerant - allows direct interfacing with legacy 5 V logic or industrial I/O without level-shifting components. |
| Communication | I²C Fast Mode Plus (1 Mbit/s, 20 mA sink), USART (LIN/IrDA/ISO7816), SPI (18 Mbit/s) - enables robust fieldbus connectivity and smart-card interface in metering and access control. |
| Operating Temp | −40°C to +105°C - qualified for under-hood automotive sensors and industrial PLC modules without external thermal derating. |
Pinout & Package
STM32F031G4U6 uses the UFQFPN28 (4 × 4 mm, 0.5 mm pitch) package, optimized for high-density PCB layouts in space-constrained applications such as smart actuators and portable diagnostics tools.
| Pin/Terminal | Circuit Role | Design Meaning |
|---|---|---|
| VDD, VSS | Digital power supply and ground | Primary 2.0–3.6 V domain powering CPU, memory, and digital peripherals; decoupling required per datasheet layout guidelines. |
| VDDA, VSSA | Analog power supply and ground | Independent 2.4–3.6 V domain isolating ADC and reset circuitry from digital noise; must be filtered separately. |
| PA0–PA15, PB0–PB12 | General-purpose I/O | 28 total GPIO pins; up to 26 support 5 V tolerance and external interrupt mapping-enables flexible signal routing and wake-on-event capability. |
| NRST | Active-low reset input | Asynchronous reset pin with internal pull-up; accepts 1.65–5.5 V logic levels and supports external reset button or supervisor IC connection. |
| BOOT0 | Boot mode selection | Configures boot source (system memory or main Flash) at power-on; requires external pull-down for normal Flash execution. |
Key Features
| Feature | Design Value |
|---|---|
| Hardware CRC unit | Accelerates firmware integrity checks and communication frame validation without CPU load-critical for OTA updates and CAN/LIN message checksums. |
| RTC with alarm & wakeup | Calendar-based timekeeping with periodic interrupt and deep-sleep exit trigger-enables battery-powered data loggers with scheduled sensor reads every 10 seconds. |
| Programmable voltage detector (PVD) | Monitors VDD in real time with 4 selectable thresholds (2.2–2.9 V); generates interrupt or reset to prevent erratic operation during brown-out conditions. |
| SWD debug interface | 2-pin Serial Wire Debug (SWCLK/SWDIO) supports full JTAG-equivalent debugging and flash programming-reduces PCB footprint vs. traditional 10-pin JTAG headers. |
| 96-bit unique ID | Factory-programmed serial number accessible via memory-mapped register-enables secure device authentication and license binding in connected edge devices. |
Applications
| Industrial Sensor Node | Smart Actuator Control |
|---|---|
Use Scenario: Compact environmental monitor measuring temperature, humidity, and CO₂ in HVAC ducts with wireless telemetry. IC Role / Device Role / Timing Role: Central MCU executing sensor fusion algorithms, managing I²C sensor reads, and scheduling LoRaWAN packet transmission via USART. Use Value: 16 KB Flash accommodates lightweight MQTT-Lite stack and calibration routines; 5 V-tolerant I/O interfaces directly with legacy analog sensor outputs. | Use Scenario: Brushless DC motor driver module for automated valve positioning in water treatment plants. IC Role / Device Role / Timing Role: Real-time PWM generator using TIM1's deadtime control and emergency stop to drive 3-phase gate drivers while monitoring current feedback via ADC. Use Value: −40°C to +105°C rating ensures reliability in outdoor enclosures; RTC alarm triggers daily self-test sequences without host intervention. |
| Energy Meter Interface | Access Control Terminal |
Use Scenario: DIN-rail mounted electricity meter with pulse counting, tamper detection, and IR communication for utility readout. IC Role / Device Role / Timing Role: Pulse accumulator and ISO7816-compatible USART controller handling contactless smart card authentication and tariff switching commands. Use Value: Fast Mode Plus I²C (1 Mbit/s) supports high-speed EEPROM writes for tariff tables; VBAT-backed RTC maintains billing timestamps during mains failure. | Use Scenario: Battery-powered door lock with keypad, RFID reader, and audible feedback-requiring low standby current and secure credential storage. IC Role / Device Role / Timing Role: Secure bootloader and AES-128 encryption engine (via software library) managing credential verification and actuator timing. Use Value: 4 KB SRAM with hardware parity prevents memory corruption during power glitches; Stop mode draws <1.3 µA (typical) extending coin-cell life to >5 years. |
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, 4 KB SRAM, same Cortex-M0 core but no advanced-control timer (TIM1) or RTC calendar function. | Lacks deadtime generation and alarm-triggered wakeup-unsuitable for motor control or time-stamped logging. | Select only for basic GPIO/UART tasks where RTC and advanced PWM are unnecessary. |
| STM32F031K4T6 | Same feature set and 16 KB Flash, but in LQFP32 package (7×7 mm) with 32 pins-adds 4 extra GPIO and one more ADC channel. | Requires larger PCB area; additional pins enable dual-sensor redundancy or expanded communication options (e.g., second UART). | Choose when board layout permits larger footprint and design requires pin expansion beyond 28 I/O. |
Compared with STM32F031G4U6, the F030F4P6 sacrifices critical timing and safety features for lower cost, while the F031K4T6 trades compactness for pin scalability-making the G4U6 optimal for size-constrained, time-aware embedded control where both integration and thermal resilience matter.
Availability
STM32F031G4U6 is available at Aetrix Electronics and suitable for industrial sensor nodes, smart actuator control, energy meter interfaces, and access control terminals requiring stable component supply across extended temperature ranges and long production lifecycles.
Supply support for STM32F031G4U6 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 STM32F0 series targets cost-sensitive, resource-constrained embedded applications-emphasizing ultra-low-power operation, robust peripheral integration, and rapid time-to-market for industrial automation and consumer IoT endpoints.
FAQ
What is the maximum operating frequency of the STM32F031G4U6?
The STM32F031G4U6 achieves a maximum CPU clock frequency of 48 MHz using its internal 8 MHz HSI oscillator with x6 PLL multiplication or an external 4–32 MHz crystal. This frequency is guaranteed across the full −40°C to +105°C operating range and supports deterministic real-time task scheduling in control loops with sub-100 ns instruction timing.
Does the STM32F031G4U6 support USB or Ethernet connectivity?
No, the STM32F031G4U6 does not integrate USB or Ethernet PHY/MAC peripherals. Its communication interfaces are limited to I²C, USART (with LIN/IrDA/ISO7816 modes), and SPI. For USB connectivity, designers must use external transceivers or select higher-series STM32 variants (e.g., F072 or G0 series) with built-in USB 2.0 FS controllers.
How many ADC channels are available, and what is their resolution?
The STM32F031G4U6 features a single 12-bit successive-approximation ADC with up to 10 input channels (including internal temperature sensor and VREFINT). Conversion time is 1.0 µs at maximum clock speed, and the ADC supports scan mode, continuous conversion, and injected channel sequencing-all configurable via registers without CPU intervention.
Is the UFQFPN28 package RoHS-compliant and lead-free?
Yes, the STM32F031G4U6 in UFQFPN28 packaging complies with RoHS Directive 2011/65/EU and is fully lead-free. It carries STMicroelectronics' ECOPACK®2 environmental certification, confirming halogen-free materials, reduced hazardous substance content, and compatibility with standard Pb-free reflow soldering profiles (peak temperature ≤260°C).
STM32F031G4U6 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:
- 16KB (16K 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:
STM32F031G4U6 FAQ
1.How can I place an order for STM32F031G4U6 through Aetrix?
Please submit a Request for Quotation (RFQ) for STM32F031G4U6 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 STM32F031G4U6 reliable?
The price and inventory of STM32F031G4U6 are updated periodically and may fluctuate due to market conditions. Stock and pricing data are typically refreshed every 24 hours. Quotation validity for STM32F031G4U6 is usually 5 days.
3.What payment methods are accepted for STM32F031G4U6?
We accept Wire Transfer, PayPal, Credit Card, Western Union, MoneyGram, and Escrow for STM32F031G4U6 transactions.
Note: Certain payment methods may incur a processing fee.
4.How is shipping managed for STM32F031G4U6?
STM32F031G4U6 orders can be shipped via leading logistics carriers, including DHL, UPS, FedEx, TNT, or Registered Mail.
Once your STM32F031G4U6 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 STM32F031G4U6?
For technical support, including STM32F031G4U6 datasheets, pinout diagrams, or application guidance, please contact our engineering support team. They can provide detailed documentation and assistance for your STM32F031G4U6 requirements.
6.How does Aetrix verify that STM32F031G4U6 is sourced from the original manufacturer or authorized distributors?
All STM32F031G4U6 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 STM32F031G4U6 meets industry standards.
7.What is the process for return or replacement of STM32F031G4U6?
All STM32F031G4U6 units undergo pre-shipment inspection (PSI). If there is an issue with STM32F031G4U6, 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 STM32F031G4U6 part is unused and in its original packaging.
Return procedure for STM32F031G4U6:
1.Submit a request within 90 days.
2.Obtain a Return Material Authorization (RMA) from Aetrix.
STM32F031G4U6 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…

