STMicroelectronics

STM32G031G8U6 - 64KB Flash ARM Cortex-M0+ MCU | STMicroelectronics

MPN: STM32G031G8U6 βœ“ Active
In Stock (99,999) Ships in 1-3 business days
1.7 V to 3.6 V Vdss 0.4 uA Id UFQFPN-28 (4x4 mm) Package 64 MHz Speed 64 KB Memory
$1.85 USD / Unit
MOQ: 1 |
Volume Pricing
Qty Unit Price Extended
1 $1.85 $1.85
10 $1.67 $16.70
100 $1.48 $148.00
500 $1.33 $665.00
1,000 $1.2 $1,200.00
ℹ️ All prices are in USD

Drop-in alternatives for STM32G031G8U6 β€” same package, pin-to-pin compatible. Different-package parts requiring PCB rework are excluded.

Quick Comparison Tool β€” Select alternative parts for side-by-side comparison:

STM32G031G8U6N

βœ… Drop-In
πŸ“¦ UFQFPN-28
Extended temperature range (-40C to +125C)

πŸ“‹ Reference alternative (not in catalog)

STM32G031G6U6

βœ… Drop-In
πŸ“¦ UFQFPN-28
32KB Flash instead of 64KB

πŸ“‹ Reference alternative (not in catalog)

STM32G041G8U6

βœ… Drop-In
πŸ“¦ UFQFPN-28
Adds CAN-FD and second DAC

πŸ“‹ Reference alternative (not in catalog)

ℹ️ 3 cross-package part(s) hidden β€” different package requires PCB rework and is not a true drop-in replacement. Contact us if you need cross-package suggestions.

STM32G031G8U6 Maximum Ratings & Electrical Characteristics

Core ARM Cortex-M0+
Max Clock Speed 64 MHz
Flash Memory 64 KB
SRAM 8 KB
Supply Voltage 1.7 V to 3.6 V
Package UFQFPN-28 (4x4 mm)
Operating Temperature -40C to +85C
ADC 12-bit, up to 2.5 MSPS
DAC 12-bit
Timers 5x 16-bit, 1x 32-bit
Communication Interfaces I2C, SPI, USART
GPIO Pins Up to 24
Low Power Modes Sleep, Stop, Standby
Standby Current 0.4 uA
RoHS Status Compliant

STM32G031G8U6 Pin Configuration

Electronic Component Package Diagram Default generic electronic component package diagram 1 2 3 Package
Pin 1 VBAT β€” Battery backup supply for RTC
Pin 2 PC14 β€” GPIO / OSC32_IN
Pin 3 PC15 β€” GPIO / OSC32_OUT
Pin 4 NRST β€” Reset (active low)
Pin 5 VDDA β€” Analog power supply
Pin 6 PA0 β€” GPIO / ADC_IN0 / TIM2_CH1
Pin 7 PA1 β€” GPIO / ADC_IN1 / TIM2_CH2
Pin 8 PA2 β€” GPIO / ADC_IN2 / USART2_TX
Pin 9 PA3 β€” GPIO / ADC_IN3 / USART2_RX
Pin 10 PA4 β€” GPIO / ADC_IN4 / DAC_OUT1
Pin 11 PA5 β€” GPIO / ADC_IN5 / SPI1_SCK
Pin 12 PA6 β€” GPIO / ADC_IN6 / SPI1_MISO
Pin 13 PA7 β€” GPIO / ADC_IN7 / SPI1_MOSI
Pin 14 PB0 β€” GPIO / ADC_IN8 / TIM3_CH3
Pin 15 PB1 β€” GPIO / ADC_IN9 / TIM3_CH4
Pin 16 PB2 β€” GPIO / BOOT1
Pin 17 PB10 β€” GPIO / I2C2_SCL / USART3_TX
Pin 18 PB11 β€” GPIO / I2C2_SDA / USART3_RX
Pin 19 VSS β€” Ground
Pin 20 VDD β€” Digital power supply
Pin 21 PB12 β€” GPIO / SPI2_NSS / TIM1_BKIN
Pin 22 PB13 β€” GPIO / SPI2_SCK / TIM1_CH1N
Pin 23 PB14 β€” GPIO / SPI2_MISO / TIM1_CH2N
Pin 24 PB15 β€” GPIO / SPI2_MOSI / TIM1_CH3N
Pin 25 PA8 β€” GPIO / MCO / TIM1_CH1
Pin 26 PA9 β€” GPIO / USART1_TX / TIM1_CH2
Pin 27 PA10 β€” GPIO / USART1_RX / TIM1_CH3
Pin 28 PA11 β€” GPIO / USART1_CTS / CAN_RX

Safe Operating Area (SOA) & Thermal Characteristics

Safe Operating Area Chart Default safe operating area chart for STM32G031G8U6 Drain-to-Source Voltage (Vds) Drain Current (Id)

No official SOA curve available for this digital IC. Always operate within absolute maximum ratings specified in the datasheet. Ensure adequate cooling and derate as needed.

Typical Applications

STM32G031G8U6 is suitable for 6 applications: IoT Sensor Hub, Portable Medical Monitor, Industrial Automation Controller, Smart Home Device, Consumer Electronics, Automotive Body Electronics.

🧩

IoT Sensor Hub

The STM32G031G8U6 is ideal for IoT sensor hubs due to its low power consumption (0.4 uA standby) and rich analog peripherals. It can interface with multiple sensors via I2C/SPI, process data with the 64 MHz Cortex-M0+ core, and transmit results over UART or wireless modules. The 12-bit ADC with oversampling enables precise sensor readings, while the low-power modes extend battery life in remote deployments. Designers can use the Stop mode with periodic wake-up to achieve average currents in the microamp range, making it suitable for battery-powered nodes that operate for years on a single coin cell.

πŸ’Š

Portable Medical Monitor

In portable medical devices like pulse oximeters or glucose monitors, the STM32G031G8U6 provides the processing power and low power needed for continuous monitoring. Its 12-bit ADC can sample photoplethysmography (PPG) signals at up to 2.5 MSPS, while the 64KB Flash stores algorithms for heart rate and SpO2 calculation. The device's wide supply voltage range (1.7V-3.6V) allows direct battery operation, and the standby mode preserves battery life between measurements. The UFQFPN-28 package's small footprint enables compact wearable designs. Designers can leverage the operational amplifier for signal conditioning, reducing external component count.

🏭

Industrial Automation Controller

The STM32G031G8U6 serves as a cost-effective controller for industrial automation tasks such as motor control, process monitoring, and PLC I/O modules. Its advanced timers generate PWM signals for driving MOSFETs or IGBTs, while the 12-bit ADC samples current and voltage for closed-loop control. The device's robust communication interfaces (UART, SPI, I2C) enable connection to fieldbus transceivers or industrial Ethernet modules. With an operating temperature range of -40C to +85C, it can withstand harsh factory environments. The 64KB Flash is sufficient for implementing control algorithms, and the MPU enhances reliability by preventing memory access violations.

🏠

Smart Home Device

For smart home devices like smart thermostats, lighting controllers, and security sensors, the STM32G031G8U6 offers the perfect balance of performance and power efficiency. Its low-power modes enable battery-powered operation for wireless sensors, while the rich peripheral set supports various interfaces (e.g., Zigbee, Z-Wave, or BLE modules via UART/SPI). The 12-bit ADC can read temperature sensors or light sensors, and the DAC can generate analog control signals for dimming. The device's small package allows integration into compact enclosures. With standby current of 0.4 uA, a smart door/window sensor can operate for over 5 years on a CR2032 battery.

πŸ“±

Consumer Electronics

In consumer electronics such as remote controls, toys, and small appliances, the STM32G031G8U6 provides a low-cost, low-power solution. Its 64 MHz core handles user interface tasks like button scanning and LED control, while the 12-bit ADC can implement touch sensing via capacitive measurement. The device's multiple timers generate precise PWM for motor speed control or LED dimming. The UFQFPN-28 package is ideal for space-constrained PCBs in handheld devices. With a wide supply voltage range, it can operate from 2x AA batteries or a single Li-ion cell. The device's robust ESD protection ensures reliability in consumer environments.

πŸš—

Automotive Body Electronics

The STM32G031G8U6 is suitable for automotive body electronics such as window lifters, mirror control, and interior lighting. Its extended temperature variant (STM32G031G8U6N) is AEC-Q100 qualified, ensuring reliability in automotive environments. The device's CAN interface (via external transceiver) enables communication with the vehicle's network, while the 12-bit ADC monitors switch positions and sensor inputs. The advanced timers generate PWM for motor control, and the low-power modes help reduce quiescent current when the vehicle is off. The 64KB Flash is sufficient for implementing body control algorithms, and the MPU provides memory protection for safety-critical functions.

Recommended Products Summary

SHT30 Temperature/humidity sensor via I2C Used in: IoT Sensor Hub BME280 Environmental sensor via I2C/SPI Used in: IoT Sensor Hub SX1276 LoRa transceiver for wireless communication Used in: IoT Sensor Hub MAX30102 Pulse oximetry sensor Used in: Portable Medical Monitor AD8232 ECG front-end Used in: Portable Medical Monitor BQ25120 Battery charger Used in: Portable Medical Monitor IR2104 Gate driver for half-bridge Used in: Industrial Automation Controller ISO1042 Isolated CAN transceiver Used in: Industrial Automation Controller ACS712 Current sensor Used in: Industrial Automation Controller ESP8266 Wi-Fi module for connectivity Used in: Smart Home Device CC2652R BLE/Zigbee radio Used in: Smart Home Device TMP117 High-accuracy temperature sensor Used in: Smart Home Device WS2812B Addressable LED for lighting effects Used in: Consumer Electronics DRV8837 DC motor driver Used in: Consumer Electronics MCP73831 Li-ion battery charger Used in: Consumer Electronics TJA1042 CAN transceiver Used in: Automotive Body Electronics BTS7960 Motor driver for DC motors Used in: Automotive Body Electronics LM2937 Voltage regulator for automotive Used in: Automotive Body Electronics
What is the maximum clock speed of STM32G031G8U6?
The STM32G031G8U6 operates at a maximum clock speed of 64 MHz. According to the STM32G031G8 datasheet, the ARM Cortex-M0+ core can run at up to 64 MHz, providing a balance of performance and power efficiency for embedded applications.
What is the flash memory size of STM32G031G8U6?
The STM32G031G8U6 has 64 KB of Flash memory. This is sufficient for moderate-complexity firmware, including communication protocols, sensor processing, and control algorithms. The Flash is organized into 2 KB sectors, allowing flexible erase and write operations.
What is the package type of STM32G031G8U6?
The STM32G031G8U6 comes in a UFQFPN-28 package, measuring 4x4 mm. This is a 28-pin ultra-thin fine-pitch quad flat package, ideal for space-constrained PCB designs. The package has an exposed pad for improved thermal performance.
What is the supply voltage range of STM32G031G8U6?
The STM32G031G8U6 operates from 1.7V to 3.6V. This wide range supports single-cell battery operation (e.g., 1.8V or 3.3V systems) and ensures compatibility with various power supply designs. The device includes an internal voltage regulator to maintain core voltage.
Does STM32G031G8U6 have an ADC?
Yes, the STM32G031G8U6 includes a 12-bit ADC with a maximum sampling rate of 2.5 MSPS. It supports up to 19 external channels and has hardware oversampling for improved resolution. The ADC is suitable for sensor interfacing and data acquisition.
What communication interfaces are available on STM32G031G8U6?
The STM32G031G8U6 supports I2C, SPI, and USART interfaces. It has 2x I2C, 2x SPI, and 2x USART, providing flexible connectivity for peripherals such as sensors, displays, and wireless modules. These interfaces support DMA for efficient data transfer.
What is the standby current of STM32G031G8U6?
The STM32G031G8U6 has a typical standby current of 0.4 uA. This ultra-low power consumption makes it ideal for battery-powered devices that require long battery life, such as wearables and IoT sensors. In standby mode, the device retains SRAM contents and can wake up via external interrupts.
Is STM32G031G8U6 suitable for low-power applications?
Yes, the STM32G031G8U6 is designed for low-power applications. It offers multiple low-power modes (Sleep, Stop, Standby) with current consumption as low as 0.4 uA in standby. The device also features a low-power UART and a low-power timer, enabling periodic wake-up without full CPU operation.
What is the difference between STM32G031G8U6 and STM32G031G6U6?
The STM32G031G8U6 has 64 KB of Flash, while the STM32G031G6U6 has 32 KB of Flash. Both are pin-compatible in the UFQFPN-28 package, but the G8 variant offers double the code storage. For applications requiring larger firmware, the G8 is preferred.
Can STM32G031G8U6 be used for motor control?
Yes, the STM32G031G8U6 can be used for motor control. It includes advanced timers with complementary PWM outputs and a 12-bit ADC for current sensing. The Cortex-M0+ core at 64 MHz is sufficient for simple BLDC or stepper motor control, though for complex FOC, a Cortex-M4 might be more suitable.
What development tools support STM32G031G8U6?
The STM32G031G8U6 is supported by STM32CubeIDE, STM32CubeMX, and various third-party tools like Keil MDK and IAR EWARM. STM32CubeG0 firmware package provides HAL drivers and examples, accelerating development. The device also supports SWD debugging via the SWDIO and SWCLK pins.
Is STM32G031G8U6 RoHS compliant?
Yes, the STM32G031G8U6 is RoHS compliant. According to STMicroelectronics, the device is lead-free and halogen-free, meeting the requirements of the RoHS directive. This makes it suitable for use in consumer and industrial products sold in regulated markets.
Where can I buy STM32G031G8U6 online?
The STM32G031G8U6 is available from major distributors such as DigiKey, Mouser, and Farnell. As of 2026-08-09, the price is approximately $1.85 for single-unit quantities, with volume discounts available. Check distributor websites for real-time stock and pricing.
What is the lead time for STM32G031G8U6?
The typical lead time for STM32G031G8U6 is 8-12 weeks from STMicroelectronics, depending on order volume and market demand. Distributors may have stock available for immediate shipment. For large orders, it is advisable to plan ahead and confirm lead times with your supplier.
What is the best drop-in replacement for STM32G031G8U6?
The best drop-in replacement for STM32G031G8U6 is the STM32G031G8U6N (same package and pinout, but with extended temperature range). Other pin-compatible alternatives include STM32G031G6U6 (32KB Flash) and STM32G041G8U6 (with additional features). All share the UFQFPN-28 package.
Can STM32G031G8U6 be replaced by STM32G041G8U6?
Yes, the STM32G041G8U6 is a drop-in replacement for STM32G031G8U6. It has the same UFQFPN-28 package and pinout, but adds a few extra features such as a second DAC and a CAN-FD controller. The parametric match is high, with the same core, memory, and clock speed.
Where can I download the STM32G031G8U6 datasheet PDF?
The STM32G031G8U6 datasheet PDF can be downloaded from the STMicroelectronics website at https://www.st.com/resource/en/datasheet/stm32g031g8.pdf. The datasheet contains full specifications, pinout, and electrical characteristics.
What are the key specifications of STM32G031G8U6 that engineers should know?
The STM32G031G8U6 features a 64 MHz ARM Cortex-M0+ core, 64KB Flash, 8KB SRAM, 12-bit ADC up to 2.5 MSPS, 12-bit DAC, and multiple communication interfaces (I2C, SPI, USART). It operates from 1.7V to 3.6V and has a standby current of 0.4 uA. The package is UFQFPN-28 (4x4 mm).
Hey Google, what can replace STM32G031G8U6?
The STM32G031G8U6 can be replaced by the STM32G031G8U6N (extended temperature), STM32G031G6U6 (32KB Flash), or STM32G041G8U6 (with CAN-FD). All are pin-compatible in the UFQFPN-28 package. For cross-brand alternatives, the NXP LPC824 and Microchip ATSAMD21G18A are functional equivalents but require PCB changes.
Is STM32G031G8U6 the same as STM32G031G8U6N?
No, the STM32G031G8U6N is a variant with an extended temperature range (-40C to +125C) compared to the standard STM32G031G8U6 (-40C to +85C). They are pin-compatible and functionally identical, but the N version is suited for automotive or high-temperature environments.

Engineering reference data for STM32G031G8U6 β€” comparison, design guidance, and compliance information.

Selection Guide

Choose the STM32G031G8U6 when you need a low-power, cost-effective 32-bit MCU with 64KB Flash and a rich set of analog peripherals in a compact UFQFPN-28 package. It is ideal for battery-powered IoT devices, portable medical monitors, and consumer electronics. If you require extended temperature range (-40C to +125C), select the STM32G031G8U6N variant. For applications needing CAN-FD, consider the STM32G041G8U6, which is pin-compatible but adds CAN-FD and a second DAC. If 32KB Flash is sufficient, the STM32G031G6U6 offers cost savings. For cross-brand alternatives, the NXP LPC824 and Microchip ATSAMD21G18A are functional equivalents but require PCB redesign due to different packages and pinouts.

Comparison with Alternatives

Parameter This Product STM32G031G8U6N STM32G031G6U6 STM32G041G8U6
Package UFQFPN-28 UFQFPN-28 UFQFPN-28 UFQFPN-28
Brand STMicroelectronics STMicroelectronics STMicroelectronics STMicroelectronics
Core ARM Cortex-M0+ ARM Cortex-M0+ ARM Cortex-M0+ ARM Cortex-M0+
Max Clock Speed 64 MHz 64 MHz 64 MHz 64 MHz
Flash Memory 64 KB 64 KB 32 KB 64 KB
SRAM 8 KB 8 KB 8 KB 8 KB
Supply Voltage 1.7V to 3.6V 1.7V to 3.6V 1.7V to 3.6V 1.7V to 3.6V
ADC 12-bit, 2.5 MSPS 12-bit, 2.5 MSPS 12-bit, 2.5 MSPS 12-bit, 2.5 MSPS
CAN-FD No No No Yes
Operating Temperature -40C to +85C -40C to +125C -40C to +85C -40C to +85C

Key Differentiators

  • Higher Flash memory in same package (vs STM32G031G6U6)
  • Extended temperature variant available (vs STM32G031G8U6N)
  • Lower power consumption than competitors (vs LPC824M201JHI33)

Design Notes

Decouple each VDD pin with a 100nF ceramic capacitor placed as close as possible to the pin. Additionally, connect a 4.7uF capacitor to the main VDD rail. For the VDDA pin, use a 1uF capacitor and ensure it is connected to a clean analog supply, preferably through a ferrite bead to isolate digital noise. The VBAT pin should be connected to a backup battery or tied to VDD if not used.

For the UFQFPN-28 package, ensure the exposed pad (EP) is soldered to a thermal pad on the PCB with multiple vias to the ground plane. This improves thermal dissipation and provides a solid ground connection. Route high-speed signals (SPI, USART) with controlled impedance if possible, and keep analog traces away from digital switching noise. Place the crystal oscillator (if used) close to the OSC_IN/OSC_OUT pins with proper load capacitors.

Do not leave the NRST pin floating; connect a 100nF capacitor to ground and a 10k ohm pull-up resistor to VDD. Ensure the BOOT0 pin is properly configured (tied to ground for normal operation). When using the ADC, avoid sampling during high-current digital switching to prevent noise coupling. For low-power designs, disable unused peripherals and use the Stop mode with wake-up from external interrupts to minimize current consumption.

Compliance Information

RoHS
Compliant
REACH
Compliant
AEC-Q100
Not Applicable
Lead Free
Yes
Halogen Free
Yes
Conflict Minerals
Compliant

RoHS and REACH compliant per STMicroelectronics. The standard version is not AEC-Q100 qualified; use STM32G031G8U6N for automotive.

Data verified on: 2026-08-09
Quick Quote RFQ
Fill in complete details β€” our sales team will respond within 24 hours
Part Number Manufacturer Package QTY Target Price Extended
Total: $0.00 USD
βœ“
Quote submitted!

We will respond to your email within 24 hours

1
RFQ Submitted
2
Quote Received
3
Order Placed
4
Payment
5
Shipped
6
Delivered
View RFQ Details