qixinwei-pcba
STM32G474RET6 ST Mainstream Arm Cortex-M4 Mixed-Signal 32-bit MCU 512KB Flash 128KB SRAM HRTIM Σ-Δ OpAmp DAC Comparator CAN FD USB LQFP-64
STM32G474RET6 Product Overview
STM32G474RET6 is a Cortex-M4 MCU at 170 MHz with FPU and math accelerator, LQFP-64. It features 512 KB Flash, 128 KB SRAM, a high-resolution timer (HRTIM, 12 channels, 184 ps resolution), USB 2.0 FS device (crystal-less), CAN FD, two 12-bit ADCs (5 Msps, 21 ch), two 12-bit DACs, four op-amps (PGA), three comparators, four Σ-Δ modulators (DFSDM), advanced motor control PWM, LP timers, RTC, 3×USART/UART, 2×SPI/I2S, 2×I2C. 52 x 5 V-tolerant I/Os. 1.7–3.6 V, -40–85 °C. Compared to the G474RCT6 (256 KB Flash), it doubles the Flash to 512 KB, offering maximum code space for complex digital power algorithms, high-precision motor control, and precision sensing — the top-tier storage model in the G474 64-pin series.
STM32G474RET6 Core Features
Core: Cortex-M4 170 MHz, FPU + ART Accelerator + Math Accelerator (FMAC, CORDIC)
Memory: 512 KB Flash, 128 KB SRAM
High-Resolution PWM: 12-ch HRTIM with 184 ps resolution for complex topologies and precise switching
Analog: 4×PGAs, 2×12-bit ADCs (5 Msps, 21 ch), 2×12-bit DACs, 3×Comparators
Σ-Δ Modulators: 4×Σ-Δ modulators with DFSDM for high-precision sensor interfaces
Motor Control: 2×Advanced Timers (PWM/Deadtime/Brake), HRTIM, multiple GP/LP timers
Connectivity: USB 2.0 FS (Crystal-less), CAN FD, 3×USART/UART, 2×SPI/I2S, 2×I2C
I/Os: 52 (5 V-tolerant)
Package: LQFP-64
Temperature Range: -40°C to 85°C
STM32G474RET6 Applications
Digital Power: Precision SMPS, full-bridge/half-bridge resonant converters, PFC, digital power management
Motor Control: FOC, high-precision servo control, BLDC/PMSM drives, stepper motors
Lighting Control: High-accuracy LED drivers, dimming control, smart lighting systems
Precision Sensing: High-accuracy Σ-Δ sensor measurement, industrial transmitters
Instrumentation: High-Precision Data Acquisition & Signal Conditioning
Consumer/Industrial: Drones, power tools, industrial automation, CAN FD nodes
STM32G474RET6 Key Advantages
High-Resolution Timer (HRTIM): 12 channels, 184 ps resolution — the ultimate solution for digital power and precision switching control
512 KB Flash + 128 KB SRAM: Top-tier memory configuration for complex digital power and motor control algorithms
4×Σ-Δ + 4×Op-Amps + 3×Comparators + ADC/DAC: Top-tier analog integration for precision measurement and closed-loop control
170 MHz Cortex-M4 + FPU + Math Accelerator: Blazing-fast DSP and control
USB 2.0 + CAN FD: High-speed USB and industrial CAN bus on one chip
52 I/Os in 64-Pin Package: Rich pin resources for complex system integration
1.7–3.6 V Wide Supply: Flexible for battery and various power sources
Why Choose QIXINWEI
Years of experience in the electronics industry. Trusted by global customers.
Massive In-Stock Inventory – Ready to ship promptly.
BOM Matching Service – One-stop solution, save time.
PCBA Customization – Professional engineering team creates tailor-made solutions based on your needs.
Cost-Effective & Efficient – Better channel, better cost.
A dedicated team makes your procurement smoother.
Contact us for BOM quotes or PCBA inquiries.











FAQ
1. What is the STM32G474RET6, and where is it positioned in the STM32G4 series?
The STM32G474RET6 is a high‑performance mixed‑signal microcontroller from STMicroelectronics' STM32G4 series, built around an Arm® Cortex®‑M4 core with FPU and DSP extensions running at up to 170 MHz, in an LQFP‑64 package. It integrates up to five rail‑to‑rail op‑amps, seven ultra‑low‑power comparators, a high‑resolution timer (HRTIM), 512 KB Flash, and 128 KB SRAM. It is purpose‑designed for applications that blend extensive analog signal conditioning with precise real‑time control, such as digital power supplies, motor drives, and industrial sensor systems. In the 64‑pin package, it offers a compact footprint with rich I/O breakout, making it ideal for space‑sensitive embedded designs that cannot afford to compromise on analog performance.
2. How does the STM32G474RET6 differ from the VET6 (LQFP‑100), and how should I choose based on package and I/O needs?
Both are completely identical in processor core, memory (512 KB Flash / 128 KB SRAM), HRTIM, op‑amps, comparators, and all other digital and analog peripherals. The only difference is the package and available I/O count: the RET6 comes in an LQFP‑64 with up to 51 usable I/Os, while the VET6 uses an LQFP‑100 with up to 82 I/Os. If your application requires no more than 51 I/Os and you want to save PCB space and simplify hand‑soldering, the RET6 delivers exactly the same performance and analog functionality as the VET6 in a smaller footprint. If you need more I/Os or wish to bring out a full 24‑bit RGB display interface, the VET6 offers greater flexibility.
3. What can the built‑in op‑amps and comparators actually do, and what external components can they replace?
The chip integrates up to five rail‑to‑rail operational amplifiers and seven ultra‑low‑power comparators. The op‑amps can directly process small signals from current‑sense resistors, Hall sensors, or thermocouples, performing amplification, filtering, and offset adjustment—completely eliminating external op‑amp ICs. The comparators are used for over‑current protection, zero‑crossing detection, and voltage‑threshold monitoring. All these analog blocks are tightly coupled internally with the HRTIM and ADCs to form complete digital control loops, significantly reducing BOM cost and PCB area, especially for space‑constrained compact drives or power controllers.
4. What can the high‑resolution timer (HRTIM) do on this chip, and what practical performance benefits does it offer?
The HRTIM delivers PWM resolution down to 184 ps, generating extremely precise and flexible PWM waveforms that support topologies such as LLC, half‑bridge, full‑bridge, and phase‑shifted full‑bridge. This fine resolution enables tighter regulation of output voltage or current, reduces limit‑cycle oscillations, and results in more stable and responsive control loops. For high‑frequency DC‑DC converters, precision servo drives, and digital power supplies, the HRTIM is a critical peripheral for achieving high conversion efficiency and excellent transient response.
5. Does the 512 KB Flash support dual‑bank and OTA updates? How can update safety be ensured?
Fully supported. It features a dual‑bank Flash architecture, allowing current firmware to execute from one bank while the other is erased and programmed. After a new firmware image is downloaded to the alternate bank and verified, a simple boot‑address switch completes the update. If a power loss or verification failure occurs, the system automatically rolls back to the original firmware, guaranteeing the device is never bricked. Combined with code readout protection (RDP) and the Memory Protection Unit (MPU), a secure remote firmware‑update scheme can be implemented—ideal for industrial equipment that requires highly reliable maintenance.
6. What high‑speed communication interfaces does the chip offer? Does it support CAN FD?
It integrates up to three FDCAN (Flexible Data‑Rate CAN) controllers, which are backward‑compatible with CAN 2.0 while supporting data rates up to 5 Mbps and payloads up to 64 bytes. Additionally, it provides multiple UARTs, SPIs, I²Cs, and I²S interfaces. All of these can operate simultaneously, making the chip ideal for industrial automation, vehicle networks, and distributed control systems. Within the 64‑pin package, careful pin‑multiplexing allows multiple CAN FD and UART/SPI channels to be brought out concurrently, meeting most field‑communication requirements.
7. What can the USB‑C interface on the STM32G474RET6 do? Does it support Power Delivery?
The integrated USB‑C power‑delivery and communication controller supports USB 2.0 full‑speed device communication and can deliver up to 15 W (5 V/3 A) through simple CC‑pin detection. It does not implement the full USB Power Delivery (PD) protocol. If PD is required, an external PD controller can be added. For applications that do not need PD, the MCU can be powered and communicate directly over USB‑C, making it ideal for portable devices and USB‑powered small instruments.
8. What is its power consumption like? Is it suitable for industrial wide‑temperature environments?
The STM32G4 series is built on an advanced 90 nm process, with a run‑mode current as low as about 100 µA/MHz. It supports multiple low‑power modes—Sleep, Stop, and Standby—with Standby current dropping to the micro‑amp range. Combined with fast wake‑up times, it is well‑suited for battery‑powered portable industrial equipment and handheld instruments that require long battery life. The chip is typically rated for the industrial temperature range (-40 °C to 85 °C) and can operate reliably over the long term in harsh industrial environments.
9. What development tools are needed for the STM32G474RET6, and is it compatible with previous STM32 ecosystems?
It is fully compatible with the STM32Cube ecosystem, including the free STM32CubeMX configuration tool, STM32CubeIDE integrated development environment, and the STM32CubeG4 firmware package. If you have previously worked with STM32F3 or STM32F4 series, a large portion of HAL code can be reused; the main adjustments involve analog‑peripheral configuration and pin mapping. Official example projects and reference designs for digital power and motor control are also provided to accelerate development.
10. If I later need more I/Os or larger Flash, what upgrade options are available?
If you need more I/Os, you can directly upgrade to the LQFP‑100 STM32G474VET6 (82 I/Os) or VCT6 (256 KB Flash), with minimal hardware changes and largely compatible pinouts. For larger program storage, choose the 512‑KB VET6 or other STM32G474 variants with even more Flash. If you require greater computational power and larger SRAM, you can move to the STM32H7 series (such as the STM32H723 or H743), which are also available in LQFP‑64 or LQFP‑100 packages and offer richer peripherals and graphics capabilities. Since all these devices belong to the same STM32 ecosystem, code and hardware designs can be highly reused.
- Property:
- Specification
- Product Type:
- Arm Cortex-M4 Mixed-Signal 32-bit MCU
- Brand:
- STMicroelectronics
- Core:
- Cortex-M4 170 MHz (FPU + Math Accelerator)
- Package:
- LQFP-64
- Memory:
- 512 KB Flash, 128 KB SRAM
- Analog:
- 4×Op-Amps, 2×DACs, 3×Comparators, ADC, Σ-Δ
- HRTIM:
- 12-ch, 184 ps resolution
- Connectivity:
- USB 2.0 FS, CAN FD
- I/Os:
- 52
- Voltage:
- 1.7V–3.6V
- Temperature:
- -40°C to 85°C