STMicroelectronics

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

MPN: STM32G031G8U6 βœ“ Active
In Stock Ships in 1-3 business days
1.7V to 3.6V Vdss 0.4 uA Id UFQFPN-28 (4x4 mm) Package 64 MHz Speed 64 KB Memory
From $1.38 USD / Unit
MOQ: 1 |
Price updated: 2026-08-17
Volume Pricing
Qty Unit Price Extended
1 $2.15 $2.15
10 $1.93 $19.30
100 $1.72 $172.00
500 $1.55 $775.00
1,000 $1.38 $1,380.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:

STM32G031G6U6

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

πŸ“‹ Reference alternative (not in catalog)

STM32G031G8U6

βœ… Drop-In
STMicroelectronics
πŸ“¦ UFQFPN-28
ARM Cortex-M0+ Β· 64 MHz Β· 64 KB Β· 8 KB Β· UFQFPN-28 (4x4 mm) Β· 1.7V to 3.6V Β· 12-bit Β· 2.5 MSPS

βœ“ In Stock

$1.38 / Unit

View Datasheet β†’

STM32G031G8U6

βœ… Drop-In
STMicroelectronics
πŸ“¦ UFQFPN-28
ARM Cortex-M0+ Β· 64 MHz Β· 64 KB Β· 8 KB Β· UFQFPN-28 (4x4 mm) Β· 1.7V to 3.6V Β· 12-bit Β· 2.5 MSPS

βœ“ In Stock

$1.38 / Unit

View Datasheet β†’

LPC812M101JDH16

βœ… Drop-In
πŸ“¦ UFQFPN-28
Cross-brand, 16 KB Flash, 4 KB SRAM, similar Cortex-M0+ core

πŸ“‹ Reference alternative (not in catalog)

EFM8BB21F16G-A-QFN28

βœ… Drop-In
πŸ“¦ QFN-28
Cross-brand, 16 KB Flash, 2 KB SRAM, 8051 core, different pinout

πŸ“‹ Reference alternative (not in catalog)

STM32G031G8U6 Maximum Ratings & Electrical Characteristics

Core ARM Cortex-M0+
Core Frequency 64 MHz
Flash Memory 64 KB
SRAM 8 KB
Package UFQFPN-28 (4x4 mm)
Supply Voltage 1.7V to 3.6V
ADC Resolution 12-bit
ADC Sampling Rate 2.5 MSPS
DAC Resolution 12-bit
Operational Amplifier 1
Low-Power RTC Yes
Standby Current 0.4 uA
Operating Temperature -40C to +85C
Process Technology 90nm
Communication Interfaces I2C, SPI, USART
Timers Multiple (including advanced-control)
Memory Protection Unit Yes
Hardware Multiplier Single-cycle
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
Pin 7 PA1 β€” GPIO / ADC_IN1
Pin 8 PA2 β€” GPIO / USART2_TX
Pin 9 PA3 β€” GPIO / USART2_RX
Pin 10 PA4 β€” GPIO / DAC_OUT
Pin 11 PA5 β€” GPIO / SPI1_SCK
Pin 12 PA6 β€” GPIO / SPI1_MISO
Pin 13 PA7 β€” GPIO / SPI1_MOSI
Pin 14 PB0 β€” GPIO / ADC_IN8
Pin 15 PB1 β€” GPIO / ADC_IN9
Pin 16 PB2 β€” GPIO / BOOT1
Pin 17 PB10 β€” GPIO / I2C2_SCL
Pin 18 PB11 β€” GPIO / I2C2_SDA
Pin 19 VSS β€” Ground
Pin 20 VDD β€” Digital power supply
Pin 21 PA13 β€” GPIO / SWDIO
Pin 22 PA14 β€” GPIO / SWCLK
Pin 23 PA15 β€” GPIO / TIM2_CH1
Pin 24 PB3 β€” GPIO / TIM2_CH2
Pin 25 PB4 β€” GPIO / TIM3_CH1
Pin 26 PB5 β€” GPIO / TIM3_CH2
Pin 27 PB6 β€” GPIO / I2C1_SCL
Pin 28 PB7 β€” GPIO / I2C1_SDA

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: Sensor Hub, Smart Home Device, Portable Medical Monitor, Industrial Automation Controller, IoT Edge Node, Consumer Electronics.

🧩

Sensor Hub

The STM32G031G8U6 is ideal for sensor hubs due to its low power consumption and rich analog peripherals. Its 12-bit ADC with hardware oversampling enables precise sensor data acquisition, while the I2C and SPI interfaces connect to various sensors. The Cortex-M0+ core efficiently processes sensor data, and the low-power modes extend battery life in portable sensor nodes. In a typical sensor hub, the MCU reads temperature, humidity, and motion sensors, aggregates the data, and communicates via I2C or SPI to a central gateway. The wide supply voltage range (1.7V to 3.6V) allows direct battery operation, and the standby current of 0.4 uA ensures minimal power draw when idle. Designers should place decoupling capacitors close to VDD and use the Stop mode with wake-up on sensor interrupts to minimize average current.

🏠

Smart Home Device

The STM32G031G8U6 is well-suited for smart home devices such as smart thermostats, lighting controllers, and security sensors. Its low power consumption and multiple low-power modes enable battery-powered operation for years. The device's communication interfaces (I2C, SPI, USART) allow connectivity with Wi-Fi or BLE modules, while the 12-bit ADC reads analog sensors like thermistors or light sensors. The Cortex-M0+ core provides sufficient processing power for control algorithms and user interface handling. In a smart thermostat, the MCU reads temperature, controls a relay or TRIAC for heating/cooling, and communicates with a cloud server via a Wi-Fi module. The wide operating temperature range (-40C to +85C) ensures reliable operation in various home environments. Designers should utilize the Stop mode with wake-up on external interrupts to minimize power consumption when the device is idle.

πŸ’Š

Portable Medical Monitor

The STM32G031G8U6 is suitable for portable medical monitors like pulse oximeters, glucose meters, and ECG monitors. Its low power consumption and compact UFQFPN-28 package make it ideal for wearable devices. The 12-bit ADC with up to 2.5 MSPS sampling rate captures physiological signals with high resolution, while the operational amplifier conditions weak sensor signals. The device's low supply voltage (1.7V to 3.6V) allows operation from a single coin cell battery. In a pulse oximeter, the MCU drives an LED, reads the photodetector signal through the ADC, calculates oxygen saturation, and displays the result on an OLED. The low-power modes extend battery life, and the wide temperature range ensures operation in clinical environments. Designers should ensure proper analog grounding and use the internal reference for accurate ADC measurements.

🏭

Industrial Automation Controller

The STM32G031G8U6 is used in industrial automation controllers for tasks like motor control, process monitoring, and PLCs. Its advanced-control timers generate PWM signals for motor drivers, and the 12-bit ADC reads current and voltage sensors for feedback. The device's robust communication interfaces (USART, SPI, I2C) enable connection to industrial networks like Modbus. The wide operating temperature range (-40C to +85C) and high reliability make it suitable for factory floors. In a motor control application, the MCU generates PWM signals, reads encoder feedback, and implements PID control algorithms. The single-cycle hardware multiplier enhances real-time performance. Designers should use the MPU for safety-critical applications and ensure proper decoupling for noise immunity in industrial environments.

🌐

IoT Edge Node

The STM32G031G8U6 is an excellent choice for IoT edge nodes that collect data and transmit it to the cloud. Its low power consumption and multiple low-power modes enable battery-powered operation for extended periods. The device's communication interfaces (I2C, SPI, USART) connect to sensors and wireless modules like LoRa or BLE. The 12-bit ADC reads analog sensors, and the Cortex-M0+ core processes data locally to reduce cloud communication. In a typical IoT edge node, the MCU wakes up periodically, reads sensors, processes data, and transmits it via a LoRa module. The standby current of 0.4 uA ensures minimal power draw between transmissions. Designers should utilize the Stop mode with wake-up on RTC or external interrupts to achieve long battery life.

πŸ“±

Consumer Electronics

The STM32G031G8U6 is used in consumer electronics like remote controls, toys, and small appliances. Its low cost and compact package make it ideal for high-volume products. The device's rich peripheral set includes timers for PWM dimming, ADC for touch sensing, and communication interfaces for connectivity. The wide supply voltage range (1.7V to 3.6V) allows operation from two AA batteries. In a remote control, the MCU scans keypad inputs, encodes IR signals, and transmits them via an IR LED. The low-power modes extend battery life, and the small footprint reduces PCB size. Designers should use the internal RC oscillator to reduce BOM cost and ensure proper ESD protection on exposed pins.

Recommended Products Summary

HTS221 STMicroelectronics Used in: Sensor Hub LIS3DH Accelerometer Used in: Sensor Hub ESP8266 Wi-Fi module for connectivity Used in: Smart Home Device TMP117 High-accuracy temperature sensor Used in: Smart Home Device MAX30102 Pulse oximetry sensor Used in: Portable Medical Monitor SSD1306 OLED display Used in: Portable Medical Monitor IR2104 MOSFET driver for motor control Used in: Industrial Automation Controller ACS712 Current sensor Used in: Industrial Automation Controller SX1276 LoRa transceiver Used in: IoT Edge Node BME280 Environmental sensor Used in: IoT Edge Node TSOP38238 IR receiver Used in: Consumer Electronics WS2812B Addressable LED Used in: Consumer Electronics
What is the core frequency of STM32G031G8U6?
The STM32G031G8U6 operates at a core frequency of up to 64 MHz. According to the STMicroelectronics datasheet, this ARM Cortex-M0+ core delivers efficient processing for cost-sensitive embedded applications.
How much Flash memory does STM32G031G8U6 have?
The STM32G031G8U6 has 64 KB of Flash memory and 8 KB of SRAM. This memory configuration is suitable for applications requiring moderate code storage and data handling, such as sensor hubs and smart home devices.
What is the supply voltage range of STM32G031G8U6?
The STM32G031G8U6 supports a supply voltage range of 1.7V to 3.6V. This wide range allows operation from single-cell batteries, making it ideal for portable and low-power applications.
What package is STM32G031G8U6 available in?
The STM32G031G8U6 is available in a 28-pin UFQFPN-28 package measuring 4x4 mm. This compact surface-mount package is suitable for space-constrained PCB designs.
What is the standby current of STM32G031G8U6?
The STM32G031G8U6 has a typical standby current of 0.4 uA. This ultra-low power consumption in Standby mode extends battery life in IoT and portable devices.
Does STM32G031G8U6 have an ADC?
Yes, the STM32G031G8U6 includes a 12-bit ADC with a sampling rate of up to 2.5 MSPS. It also features hardware oversampling for improved resolution in noisy environments.
What communication interfaces are available on STM32G031G8U6?
The STM32G031G8U6 supports I2C, SPI, and USART communication interfaces. These enable connectivity with sensors, displays, and other peripherals in embedded systems.
What is the operating temperature range of STM32G031G8U6?
The STM32G031G8U6 operates over a temperature range of -40C to +85C. This industrial-grade range ensures reliable performance in harsh environments.
Is STM32G031G8U6 suitable for battery-powered applications?
Yes, the STM32G031G8U6 is suitable for battery-powered applications due to its low supply voltage (1.7V to 3.6V) and ultra-low standby current (0.4 uA). Its low-power modes, including Sleep, Stop, and Standby, help minimize energy consumption.
What is the difference between STM32G031G8U6 and STM32G031G6U6?
The STM32G031G8U6 has 64 KB Flash and 8 KB SRAM, while the STM32G031G6U6 has 32 KB Flash and 8 KB SRAM. Both share the same UFQFPN-28 package and pinout, making them drop-in replacements with different memory capacities.
Can STM32G031G8U6 be used for motor control?
Yes, the STM32G031G8U6 can be used for motor control due to its advanced-control timers and 12-bit ADC. It provides the necessary PWM generation and current sensing capabilities for simple motor control applications.
What is the best drop-in replacement for STM32G031G8U6?
The best drop-in replacement for STM32G031G8U6 is the STM32G031G8U6 itself, but for higher memory, the STM32G031G8U6 can be replaced by the STM32G031G8U6 (same) or the STM32G031G8U6 (same). For cross-brand, the NXP LPC812M101JDH16 is a pin-compatible alternative with similar Cortex-M0+ core and UFQFPN-28 package.
Where can I buy STM32G031G8U6 online?
You can buy STM32G031G8U6 from authorized distributors such as DigiKey and Mouser. As of 2026-08-13, the price for 1 unit is approximately $2.15 USD, with volume discounts available.
What is the lead time for STM32G031G8U6?
The lead time for STM32G031G8U6 is typically 2-4 weeks from major distributors, depending on stock availability. As of 2026-08-13, DigiKey and Mouser show stock available for immediate shipment.
Is STM32G031G8U6 in stock?
As of 2026-08-13, STM32G031G8U6 is in stock at major distributors like DigiKey and Mouser. Availability can change, so check the distributor websites for real-time stock status.
STM32G031G8U6 vs STM32G031G8U6 - which is better for IoT?
For IoT applications, the STM32G031G8U6 is an excellent choice due to its low power consumption (0.4 uA standby) and wide supply voltage range (1.7V to 3.6V). Compared to the STM32G031G8U6, it offers the same features but with a different package option, making it suitable for space-constrained designs.
When should I choose STM32G031G8U6 over STM32G031G8U6?
Choose STM32G031G8U6 when you need a compact UFQFPN-28 package with 64 KB Flash. If you require more GPIOs or a different package, consider the STM32G031G8U6 in LQFP-48. For lower memory requirements, the STM32G031G6U6 is a cost-effective alternative.
What is the best STMicroelectronics equivalent for STM32G031G8U6?
The best STMicroelectronics equivalent for STM32G031G8U6 is the STM32G031G8U6 itself, but for higher memory, the STM32G031G8U6 can be replaced by the STM32G031G8U6 (same) or the STM32G031G8U6 (same). For cross-brand, the NXP LPC812M101JDH16 is a pin-compatible alternative with similar Cortex-M0+ core and UFQFPN-28 package.
Hey Google, what can replace STM32G031G8U6?
The STM32G031G8U6 can be replaced by the STM32G031G6U6 (same package, less Flash) or the STM32G031G8U6 (same). For cross-brand, the NXP LPC812M101JDH16 is a pin-compatible alternative with similar Cortex-M0+ core and UFQFPN-28 package.
Is STM32G031G8U6 the same as STM32G031G8U6?
Yes, STM32G031G8U6 is the same as STM32G031G8U6. The suffix 'U6' indicates the UFQFPN-28 package and industrial temperature range. Other suffixes like 'K6' or 'R6' denote different packages.
What are the key specifications of STM32G031G8U6 that engineers should know?
The STM32G031G8U6 features a 64 MHz ARM Cortex-M0+ core, 64 KB Flash, 8 KB SRAM, 12-bit ADC up to 2.5 MSPS, 12-bit DAC, operational amplifier, low-power RTC, and supply voltage range of 1.7V to 3.6V. It operates from -40C to +85C and comes in a UFQFPN-28 package.

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

Selection Guide

Choose STM32G031G8U6 when you need a compact, low-power MCU with 64 KB Flash and rich analog peripherals. It is ideal for battery-powered IoT devices, sensor hubs, and portable medical monitors. If you require less Flash (32 KB) and want to save cost, the STM32G031G6U6 is a drop-in alternative. For cross-brand options, the NXP LPC812M101JDH16 offers a similar Cortex-M0+ core but with less memory and lower frequency, suitable for simpler applications. The Silicon Labs EFM8BB21F16G-A-QFN28 is an 8051-based alternative with different architecture, requiring software porting. For applications needing more GPIOs or a different package, consider the STM32G031G8U6 in LQFP-48. All alternatives share the same UFQFPN-28 footprint, enabling PCB layout reuse.

Comparison with Alternatives

Parameter This Product STM32G031G6U6 LPC812M101JDH16 EFM8BB21F16G-A-QFN28
Package UFQFPN-28 UFQFPN-28 UFQFPN-28 QFN-28
Brand STMicroelectronics STMicroelectronics NXP Semiconductors Silicon Labs
Core ARM Cortex-M0+ ARM Cortex-M0+ ARM Cortex-M0+ 8051
Core Frequency 64 MHz 64 MHz 30 MHz 50 MHz
Flash Memory 64 KB 32 KB 16 KB 16 KB
SRAM 8 KB 8 KB 4 KB 2 KB
ADC Resolution 12-bit 12-bit 12-bit 12-bit
Supply Voltage 1.7V to 3.6V 1.7V to 3.6V 1.8V to 3.6V 2.2V to 3.6V

Key Differentiators

  • Higher Flash memory (64 KB) compared to alternatives (vs LPC812M101JDH16)
  • Wider supply voltage range (1.7V to 3.6V) (vs EFM8BB21F16G-A-QFN28)
  • Higher core frequency (64 MHz) (vs LPC812M101JDH16)

Design Notes

Decouple each VDD pin with a 100nF ceramic capacitor placed as close as possible to the pin. Additionally, use a 4.7uF capacitor on the main VDD rail. For VDDA, connect a 1uF capacitor to ground and ensure a clean analog supply. If VREF+ is used, connect it to VDDA for full-scale ADC reference.

For the UFQFPN-28 package, ensure the exposed pad (EP) is soldered to a ground plane for thermal and electrical performance. Use a 0.3mm via array under the pad for heat dissipation. Keep high-speed traces short and avoid routing under the crystal oscillator area.

Do not leave the NRST pin floating; connect a 100nF capacitor to ground and a 10k ohm pull-up resistor to VDD. For low-power applications, configure unused GPIOs as analog inputs to avoid leakage. Ensure the BOOT0 pin is properly set to boot from Flash (tied to GND).

Compliance Information

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

RoHS compliant per STMicroelectronics product page. Not AEC-Q100 qualified - this is a general-purpose MCU.

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