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

- Shipping:

Inventory:5,172
Please send an inquiry. Send us your inquiry, and we will respond immediately.
Product details
Overview
STM32F038G6U6 from STMicroelectronics is a 32-bit ARM® Cortex®-M0 microcontroller in UFQFPN32 (5 × 5 mm) package, featuring 32 KB Flash, 4 KB SRAM with hardware parity, and operation at up to 48 MHz. It integrates a 12-bit ADC (1.0 µs conversion), nine timers-including one advanced-control timer with deadtime generation-and communication interfaces including I²C Fast Mode Plus (1 Mbit/s), USART with IrDA/LIN/ISO7816, and SPI (18 Mbit/s). It targets compact industrial control nodes requiring robust timing, analog sensing, and low-voltage operation (1.8 V ±8%).
For engineers reviewing the STM32F038G6U6 datasheet, STM32F038G6U6 pinout, STM32F038G6U6 application, or STM32F038G6U6 equivalent, key selection considerations include its 1.8 V core supply, 5 V-tolerant I/O capability on up to 25 pins, extended temperature range (–40 to +105°C), and integrated RTC with alarm and periodic wakeup from Stop mode.
Technical Context
The STM32F038G6U6 implements a single-cycle ARM Cortex-M0 core with Thumb-2 instruction set, supporting deterministic real-time execution up to 48 MHz. Its clock system includes dual oscillators-4–32 MHz HSE and 32.768 kHz LSE-with internal 8 MHz HSI (±1% typical after calibration) and 40 kHz LSI, plus a PLL for frequency multiplication.
Peripheral integration centers on deterministic timing control: TIM1 provides six-channel PWM with programmable deadtime and emergency stop; TIM2/TIM3 support IR decoding via input capture; and the 12-bit ADC operates across 0–3.6 V with separate VDDA supply (2.4–3.6 V), enabling accurate sensor interfacing without external reference.
Key Specifications
| Parameter | Value and Actual Design Meaning |
|---|---|
| Core Architecture | ARM Cortex-M0, 32-bit RISC CPU with Thumb-2 instruction set, enabling efficient code density and deterministic interrupt latency. |
| Max Operating Frequency | 48 MHz - delivers real-time response for motor control, sensor fusion, and protocol stack execution within tight timing budgets. |
| Memory | 32 KB Flash (512-byte pages, 100k write/erase cycles) + 4 KB SRAM with hardware parity - supports robust firmware updates and data integrity in safety-critical tasks. |
| Analog-to-Digital Converter | 12-bit ADC, 1.0 µs conversion time, 10-channel multiplexed input, 0–3.6 V full-scale range - enables direct connection to resistive sensors, thermistors, and voltage monitoring circuits. |
| I/O Voltage Tolerance | Up to 25 pins rated 5 V tolerant - allows direct interface with legacy 5 V peripherals (e.g., UART transceivers, logic ICs) without level shifters. |
| Operating Voltage Range | VDD = 1.8 V ±8% (digital core/I/O), VDDA = 2.4–3.6 V (analog domain) - supports ultra-low-power battery-backed systems while maintaining ADC accuracy. |
| Temperature Range | –40°C to +105°C - qualified for industrial automation, smart metering, and automotive body electronics applications. |
Pinout & Package
STM32F038G6U6 is housed in a 32-pin Ultra-Fine Pitch Quad Flat No-lead (UFQFPN32) package measuring 5 mm × 5 mm with 0.5 mm pitch. The package features an exposed thermal pad for enhanced heat dissipation in compact PCB layouts.
| Pin/Terminal | Circuit Role | Design Meaning |
|---|---|---|
| VDD | Digital power supply | 1.8 V ±8% main supply for core, memory, and digital peripherals; requires local 100 nF decoupling. |
| VDDA | Analog power supply | 2.4–3.6 V dedicated supply for ADC, reset circuitry, and internal reference; must be filtered separately from VDD. |
| PA0–PA15, PB0–PB11 | General-purpose I/O | 38 total GPIOs; up to 25 support 5 V tolerance; all configurable as EXTI sources for wake-from-Stop event detection. |
| NRST | Active-low reset input | Asynchronous reset pin with internal pull-up; accepts 1.65–3.6 V logic levels; supports external reset button or supervisor IC. |
| BOOT0 | Boot mode selection | Sampled at reset to select boot source: system memory (ISP), embedded SRAM, or main Flash - critical for field firmware recovery. |
| SWDIO / SWCLK | Serial Wire Debug interface | Two-pin debug port supporting programming, real-time tracing, and breakpoint debugging without dedicated JTAG pins. |
Key Features
| Feature | Design Value |
|---|---|
| Advanced-Control Timer (TIM1) | Six-channel complementary PWM output with programmable deadtime insertion and emergency stop input - enables safe gate driving for half-bridge and three-phase motor inverters. |
| RTC with Calendar & Alarm | Hardware calendar (YY-MM-DD hh:mm:ss), alarm interrupt, and periodic wakeup from Stop mode - eliminates need for external real-time clock IC in energy-constrained systems. |
| I²C Fast Mode Plus | 1 Mbit/s bus speed with extra current sink (up to 20 mA) - ensures reliable communication with high-capacitance buses (e.g., multi-drop sensor networks) without external pull-up boosters. |
| USART with Multiple Protocols | Single peripheral supporting LIN 2.2, IrDA SIR, ISO7816 smartcard, and modem control signals - reduces BOM count in secure access or automotive diagnostic modules. |
| Low-Power Operation | Stop mode current ≤1.3 µA (typical) with RTC running on VBAT - extends battery life in wireless sensor nodes and portable instrumentation. |
Applications
| Industrial Motor Control | Smart Energy Metering |
|---|---|
|
Use Scenario: Compact BLDC fan controller in HVAC systems with thermal protection and speed regulation. IC Role / Device Role / Timing Role: Main MCU executing FOC algorithm, generating gated PWM via TIM1, sampling current/voltage via ADC, and communicating status over UART. Use Value: Integrated deadtime generation and 5 V-tolerant UART pins eliminate external gate drivers and level shifters, reducing board area by >30%. |
Use Scenario: DIN-rail mounted electricity meter with tamper detection, pulse counting, and RS-485 communication. IC Role / Device Role / Timing Role: System controller managing metrology ADC interface, RTC-based billing intervals, and isolated RS-485 transceiver control via USART. Use Value: 1.8 V operation lowers system power draw; VBAT-backed RTC maintains billing accuracy during mains failure. |
| Automotive Body Electronics | IoT Edge Sensor Node |
|
Use Scenario: Door module controlling window lift, mirror adjustment, and LED status indicators. IC Role / Device Role / Timing Role: Central MCU handling LIN bus communication, PWM dimming for LEDs, and analog sensing of switch positions and temperature. Use Value: LIN-capable USART and –40°C to +105°C rating meet OEM environmental requirements without derating or external heaters. |
Use Scenario: Battery-powered environmental monitor logging temperature, humidity, and CO₂ via I²C sensors. IC Role / Device Role / Timing Role: Low-power host MCU performing sensor polling, data aggregation, and BLE/Wi-Fi offload via UART/SPI. Use Value: Sub-µA Stop mode with RTC wakeup enables multi-year battery life; 12-bit ADC provides sufficient resolution for calibrated sensor outputs. |
Equivalent & Alternatives
The following parts are listed as comparable options for similar microcontroller applications.
| Alternative Part | Technical Difference | Application Difference | Selection Advice |
|---|---|---|---|
| STM32F070F6P6 | Same Cortex-M0 core, 48 MHz, but only 16 KB Flash and no advanced-control timer (TIM1); lacks 5 V-tolerant I/O. | Suitable for simpler control tasks without motor drive or high-voltage interfacing; limited analog channel count (9 vs. 10). | Select when cost sensitivity outweighs need for deadtime control or 5 V compatibility - e.g., basic lighting controllers. |
| STM32F042F6P6 | Includes USB 2.0 FS device interface and CRC unit, but only 16 KB Flash and no RTC calendar; same 1.8 V supply and 5 V-tolerant I/O count. | Better suited for USB-connected peripherals (e.g., HID devices), but lacks battery-backed timekeeping for metering or scheduling. | Choose when USB connectivity is mandatory and RTC calendar functionality is not required - e.g., firmware update dongles. |
Compared with STM32F038G6U6, the STM32F070F6P6 trades advanced timer and I/O robustness for lower cost and smaller footprint, while the STM32F042F6P6 adds USB at the expense of RTC calendar and Flash capacity - making the G6U6 optimal for time-aware, high-integrity industrial edge nodes.
Availability
STM32F038G6U6 is available at Aetrix Electronics and suitable for industrial motor control, smart energy metering, and automotive body electronics requiring stable component supply across extended temperature and low-voltage operating conditions.
Supply support for STM32F038G6U6 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, sensors, and analog components for industrial, automotive, and consumer markets.
The STM32F0-series targets cost-sensitive, resource-constrained embedded applications demanding high reliability, low power, and rich peripheral integration - with the F038 variant optimized for industrial control and metering where timing precision, analog accuracy, and extended temperature operation are critical.
FAQ
What is the maximum allowed VDDA voltage for the STM32F038G6U6?
The absolute maximum VDDA is 3.6 V, and the recommended operating range is 2.4 V to 3.6 V. Exceeding 3.6 V risks permanent damage to the ADC, reset circuitry, and internal voltage reference. VDDA must be ≥ VDD and decoupled independently using a 100 nF ceramic capacitor close to the VDDA pin.
Does the STM32F038G6U6 support hardware CRC calculation?
Yes, it includes a dedicated cyclic redundancy check (CRC) calculation unit compliant with IEEE-802.3, supporting 32-bit polynomial (0x04C11DB7) and byte/word data input. This enables fast, deterministic checksum generation for firmware image validation and communication frame integrity checking without CPU overhead.
Can the STM32F038G6U6 operate without an external crystal?
Yes - it can run entirely from internal oscillators: the 8 MHz HSI (calibrated to ±1% typical) with x6 PLL for 48 MHz system clock, and the 40 kHz LSI for RTC and watchdogs. External crystals are optional but recommended for precise timing (e.g., UART baud rate accuracy or RTC calendar stability).
How many I/O pins support 5 V tolerance on the STM32F038G6U6?
Up to 25 I/O pins are 5 V tolerant across GPIO ports A and B, as specified in Section 3.7 of the datasheet. These pins accept input voltages up to 5.5 V regardless of VDD level, enabling direct interfacing with 5 V logic families and legacy peripherals without external level-shifting circuitry.
STM32F038G6U6 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:
- 22
- Program Memory Size:
- 32KB (32K x 8)
- Program Memory Type:
- FLASH
- EEPROM Size:
- -
- RAM Size:
- 4K x 8
- Voltage - Supply (Vcc/Vdd):
- 1.65V ~ 1.95V, 1.65V ~ 3.6V
- Data Converters:
- A/D 10x12b
- Oscillator Type:
- Internal
- Operating Temperature:
- -40°C ~ 85°C (TA)
- Grade:
- -
- Qualification:
- -
- Mounting Type:
- Surface Mount
- Supplier Device Package:
STM32F038G6U6 FAQ
1.How can I place an order for STM32F038G6U6 through Aetrix?
Please submit a Request for Quotation (RFQ) for STM32F038G6U6 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 STM32F038G6U6 reliable?
The price and inventory of STM32F038G6U6 are updated periodically and may fluctuate due to market conditions. Stock and pricing data are typically refreshed every 24 hours. Quotation validity for STM32F038G6U6 is usually 5 days.
3.What payment methods are accepted for STM32F038G6U6?
We accept Wire Transfer, PayPal, Credit Card, Western Union, MoneyGram, and Escrow for STM32F038G6U6 transactions.
Note: Certain payment methods may incur a processing fee.
4.How is shipping managed for STM32F038G6U6?
STM32F038G6U6 orders can be shipped via leading logistics carriers, including DHL, UPS, FedEx, TNT, or Registered Mail.
Once your STM32F038G6U6 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 STM32F038G6U6?
For technical support, including STM32F038G6U6 datasheets, pinout diagrams, or application guidance, please contact our engineering support team. They can provide detailed documentation and assistance for your STM32F038G6U6 requirements.
6.How does Aetrix verify that STM32F038G6U6 is sourced from the original manufacturer or authorized distributors?
All STM32F038G6U6 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 STM32F038G6U6 meets industry standards.
7.What is the process for return or replacement of STM32F038G6U6?
All STM32F038G6U6 units undergo pre-shipment inspection (PSI). If there is an issue with STM32F038G6U6, 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 STM32F038G6U6 part is unused and in its original packaging.
Return procedure for STM32F038G6U6:
1.Submit a request within 90 days.
2.Obtain a Return Material Authorization (RMA) from Aetrix.
STM32F038G6U6 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…

