STM32G031G8U6 - 64KB Flash ARM Cortex-M0+ MCU | STMicroelectronics
MPN: STM32G031G8U6 β Active| 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 |
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π Reference alternative (not in catalog)
STM32G031G6U6
β Drop-Inπ Reference alternative (not in catalog)
STM32G041G8U6
β Drop-Inπ Reference alternative (not in catalog)
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
| 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
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.
Recommended
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.
Recommended
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.
Recommended
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.
Recommended
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.
Recommended
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
Recommended Products Summary
Engineering reference data for STM32G031G8U6 β comparison, design guidance, and compliance information.
Selection Guide
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 and REACH compliant per STMicroelectronics. The standard version is not AEC-Q100 qualified; use STM32G031G8U6N for automotive.