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

- Shipping:

Inventory:3,278
Please send an inquiry. Send us your inquiry, and we will respond immediately.
Product details
Overview
STM32F038G6U6TR from STMicroelectronics is an ARM® Cortex®-M0 32-bit microcontroller with 32 KB Flash, 4 KB SRAM (HW parity), and integrated peripherals including a 12-bit ADC (1.0 µs conversion), 9 timers (including advanced-control TIM1 with deadtime and emergency stop), and communication interfaces (I²C Fast Mode Plus, USART with IrDA/LIN/ISO7816, SPI up to 18 Mbit/s). It operates at up to 48 MHz and supports industrial temperature range (–40 to +105°C) with 1.8 V ±8% digital supply.
For engineers reviewing the STM32F038G6U6TR datasheet, STM32F038G6U6TR pinout, STM32F038G6U6TR application, or STM32F038G6U6TR equivalent, key selection criteria include its UFQFPN32 package footprint, 5 V-tolerant I/O capability on up to 25 pins, RTC with alarm/wakeup from Stop mode, SWD debug interface, and suitability for cost-sensitive motor control, power conversion, and industrial sensor node designs requiring low-voltage operation and high peripheral integration.
Technical Context
The device implements a single-cycle ARM Cortex-M0 core with Thumb-2 instruction set, supporting deterministic real-time execution. Its clock system integrates multiple oscillators: 4–32 MHz HSE crystal, 32 kHz LSE for RTC, 8 MHz HSI with PLL (×6), and 40 kHz LSI - enabling flexible low-power and high-accuracy timing configurations.
Peripheral architecture features tightly coupled DMA (5 channels), nested vectored interrupt controller (NVIC), and dedicated hardware blocks for PWM generation (TIM1 with complementary outputs and programmable deadtime), analog signal acquisition (ADC with VREFINT and temperature sensor), and robust serial communication (I²C with SMBus/PMBus support and wakeup, USART with auto-baud detection and modem control).
Key Specifications
| Parameter | Value and Actual Design Meaning |
|---|---|
| CPU Core | ARM Cortex-M0, 32-bit, up to 48 MHz - enables deterministic real-time control with low gate count and energy efficiency. |
| Memory | 32 KB Flash (512-byte pages), 4 KB SRAM with hardware parity - supports firmware updates and safety-critical data integrity. |
| ADC | 1 × 12-bit, 1.0 µs conversion time, 10-channel multiplexed - suitable for fast sampling of analog sensors or current feedback in motor drives. |
| Timers | 9 timers: 1 × 16-bit advanced-control (TIM1), 4 × general-purpose 16-bit, 1 × 32-bit, plus watchdogs - provides multi-channel PWM, IR modulation, input capture, and precise timing for industrial automation. |
| I/O Voltage | Digital I/Os: 1.8 V ±8% (VDD); up to 25 pins 5 V tolerant - allows direct interfacing with legacy 5 V logic without level shifters. |
| Operating Temp | –40°C to +105°C - qualified for extended industrial environments including motor drives and power supplies. |
| Debug Interface | Serial Wire Debug (SWD) - enables non-intrusive real-time debugging and flash programming via 2-pin interface. |
Pinout & Package
STM32F038G6U6TR uses the UFQFPN32 (5 × 5 mm, 0.5 mm pitch) package with 32 leads. This compact, leadless package supports automated assembly and offers thermal performance suitable for space-constrained industrial modules.
| Pin/Terminal | Circuit Role | Design Meaning |
|---|---|---|
| VDD, VDDA, VSS, VSSA | Power and ground rails | Separate digital (VDD/VSS) and analog (VDDA/VSSA) domains ensure noise isolation for ADC and RTC accuracy. |
| PA0–PA15, PB0–PB11 | General-purpose I/Os | 38 total GPIOs; up to 25 support 5 V tolerance - simplifies mixed-voltage system integration. |
| NRST | Active-low reset input | Asynchronous reset with internal pull-up; compatible with external push-button or supervisor ICs. |
| BOOT0 | Boot mode selection | Configures boot source (system memory, main Flash, or SRAM) at power-on - essential for bootloader deployment. |
| SYSCLK, SWCLK, SWDIO | Debug and clock signals | SWD interface uses dedicated pins for minimal footprint debug access without consuming GPIO resources. |
| OSC_IN / OSC_OUT | HSE crystal oscillator terminals | Supports 4–32 MHz external crystal for precise clocking in timing-critical applications like motor commutation. |
| LSE_IN / LSE_OUT | LSE crystal oscillator terminals | Connects 32.768 kHz crystal for accurate RTC timekeeping and low-power periodic wakeups. |
Key Features
| Feature | Design Value |
|---|---|
| Advanced-control timer (TIM1) | 6-channel complementary PWM output with programmable deadtime and emergency stop - enables safe driving of half/full-bridge power stages. |
| 5 V-tolerant I/Os | 25 pins support 5 V inputs while powered from 1.8 V - eliminates need for external level translators in mixed-voltage systems. |
| I²C Fast Mode Plus | 1 Mbit/s with extra current sink - ensures reliable communication with standard I²C peripherals under noisy industrial conditions. |
| RTC with calibration | Calendar RTC with alarm, periodic wakeup from Stop mode, and 32 kHz oscillator trimming - delivers accurate timekeeping with ultra-low power consumption (<1 µA in VBAT mode). |
| Hardware CRC unit | Dedicated CRC-32 calculation engine - accelerates firmware integrity checks and secure boot verification without CPU overhead. |
Applications
| Motor Control | Industrial Sensor Node |
|---|---|
Use Scenario: Brushless DC (BLDC) motor commutation in HVAC blowers or small pumps. IC Role / Device Role / Timing Role: Real-time PWM generation (TIM1), current sensing (ADC), and position feedback decoding (USART/IrDA or timer input capture). Use Value: Integrated deadtime control and 5 V-tolerant GPIOs simplify gate driver interface and reduce BOM count versus discrete MCU + driver solutions. | Use Scenario: Battery-powered environmental monitoring node with temperature, humidity, and pressure sensors. IC Role / Device Role / Timing Role: Low-power sensor data acquisition (ADC), RTC-triggered periodic wakeups, and wireless module control (I²C/USART). Use Value: Sub-µA Stop mode current and calibrated RTC enable >1-year battery life with scheduled sensor reads and transmission bursts. |
| Power Conversion | Smart Actuator Interface |
Use Scenario: Digital control loop in isolated DC-DC converters or LED drivers. IC Role / Device Role / Timing Role: High-resolution PWM (TIM1), voltage/current feedback sampling (ADC), and fault protection (emergency stop input). Use Value: 48 MHz CPU and 1.0 µs ADC allow tight control loops (<10 µs update rate) for dynamic load regulation and overcurrent response. | Use Scenario: Position/force feedback interface in industrial linear actuators with Hall sensors and PWM-controlled solenoids. IC Role / Device Role / Timing Role: Quadrature encoder input (TIM2/TIM3), analog sensor conditioning (ADC), and synchronized actuator drive (TIM1 PWM + deadtime). Use Value: Hardware timer quadrature decoding and complementary PWM eliminate software overhead, improving real-time responsiveness and jitter reduction. |
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, no advanced-control timer, TSSOP20 package (20-pin), no 5 V-tolerant I/Os | Targeted at simpler, lower-cost control tasks without complex PWM or mixed-voltage interfacing | Select when full TIM1 functionality and 5 V tolerance are unnecessary and PCB space is constrained by TSSOP20 footprint. |
| STM32F070F6P6 | 32 KB Flash, 6 KB SRAM, includes USB 2.0 FS device interface, same UFQFPN32 package, no 5 V-tolerant I/Os | Designed for USB-connected peripherals where host enumeration and firmware updates via USB are required | Choose when USB connectivity is mandatory and 5 V I/O tolerance is not needed; note absence of TIM1 deadtime and emergency stop features. |
Compared with STM32F038G6U6TR, the STM32F030F4P6 lacks critical motor control features and voltage flexibility, while the STM32F070F6P6 trades 5 V tolerance and advanced PWM safety for USB capability - making the STM32F038G6U6TR uniquely suited for robust, isolated, mixed-voltage industrial control where reliability and peripheral integration outweigh connectivity needs.
Availability
STM32F038G6U6TR is available at Aetrix Electronics and suitable for motor control, industrial sensor nodes, and power conversion applications requiring stable component supply, extended temperature operation, and long-term industrial lifecycle support.
Supply support for STM32F038G6U6TR 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 devices, sensors, and analog ICs for industrial, automotive, and consumer markets.
The STM32F0 series targets cost-sensitive, resource-constrained embedded applications demanding high integration, low power, and industrial-grade reliability - with the F038 variant optimized for motor control and analog-intensive systems.
FAQ
What is the maximum operating frequency and core type of the STM32F038G6U6TR?
The STM32F038G6U6TR features an ARM Cortex-M0 32-bit RISC core running at up to 48 MHz. It achieves this frequency using its internal 8 MHz HSI oscillator with ×6 PLL multiplication or an external 4–32 MHz crystal. The core supports Thumb-2 instructions and delivers 45.4 DMIPS (Dhrystone 2.1) performance, validated across the full –40°C to +105°C temperature range and 1.8 V ±8% supply.
Does the STM32F038G6U6TR support 5 V-tolerant I/Os, and how many pins have this capability?
Yes, the STM32F038G6U6TR supports 5 V-tolerant I/Os on up to 25 pins (specifically PA0–PA15, PB0–PB11 excluding PB12–PB15). This capability is hardware-enforced and does not require external components. Tolerance is guaranteed under all operating conditions per ST's electrical characteristics table (Section 6.3.13), enabling direct connection to 5 V logic, sensors, or transceivers without level-shifting circuitry.
What debug interface does the STM32F038G6U6TR provide, and what pins are required?
The STM32F038G6U6TR provides Serial Wire Debug (SWD), a 2-pin ARM-standard interface using SWCLK (PA14) and SWDIO (PA13). No reset pin is required for basic debug operations, though NRST can be used for hard reset during programming. SWD supports full JTAG-equivalent functionality - including breakpoints, watchpoints, memory inspection, and flash programming - with minimal PCB routing impact compared to traditional JTAG.
How is the real-time clock (RTC) powered and calibrated in the STM32F038G6U6TR?
The RTC is powered by the VBAT pin and retains time/date, alarm, and backup registers during main power loss. It uses an external 32.768 kHz crystal (LSE) for high-accuracy timekeeping, with built-in digital calibration (±208 ppm resolution) adjustable via the RTC_CALIBR register. Calibration values are factory-trimmed and stored in system memory, enabling sub-second drift correction over temperature and aging - critical for metering and logging applications requiring timestamp integrity.
STM32F038G6U6TR Specifications
- Product attributes
- Attribute value
- Manufacturer:
- STMicroelectronics
- Package/Case:
- 28-UFQFN
- Series:
- STM32F0
- Packaging:
- Tape & Reel (TR)
- 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 12x12b
- Oscillator Type:
- Internal
- Operating Temperature:
- -40°C ~ 85°C (TA)
- Grade:
- -
- Qualification:
- -
- Mounting Type:
- Surface Mount
- Supplier Device Package:
STM32F038G6U6TR FAQ
1.How can I place an order for STM32F038G6U6TR through Aetrix?
Please submit a Request for Quotation (RFQ) for STM32F038G6U6TR 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 STM32F038G6U6TR reliable?
The price and inventory of STM32F038G6U6TR are updated periodically and may fluctuate due to market conditions. Stock and pricing data are typically refreshed every 24 hours. Quotation validity for STM32F038G6U6TR is usually 5 days.
3.What payment methods are accepted for STM32F038G6U6TR?
We accept Wire Transfer, PayPal, Credit Card, Western Union, MoneyGram, and Escrow for STM32F038G6U6TR transactions.
Note: Certain payment methods may incur a processing fee.
4.How is shipping managed for STM32F038G6U6TR?
STM32F038G6U6TR orders can be shipped via leading logistics carriers, including DHL, UPS, FedEx, TNT, or Registered Mail.
Once your STM32F038G6U6TR 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 STM32F038G6U6TR?
For technical support, including STM32F038G6U6TR datasheets, pinout diagrams, or application guidance, please contact our engineering support team. They can provide detailed documentation and assistance for your STM32F038G6U6TR requirements.
6.How does Aetrix verify that STM32F038G6U6TR is sourced from the original manufacturer or authorized distributors?
All STM32F038G6U6TR 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 STM32F038G6U6TR meets industry standards.
7.What is the process for return or replacement of STM32F038G6U6TR?
All STM32F038G6U6TR units undergo pre-shipment inspection (PSI). If there is an issue with STM32F038G6U6TR, 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 STM32F038G6U6TR part is unused and in its original packaging.
Return procedure for STM32F038G6U6TR:
1.Submit a request within 90 days.
2.Obtain a Return Material Authorization (RMA) from Aetrix.
STM32F038G6U6TR 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…

