STMicroelectronics

STM32F412RET6 - 512KB Flash ARM Cortex-M4F MCU | STMicroelectronics

MPN: STM32F412RET6 βœ“ Active
In Stock (99,999) Ships in 1-3 business days
1.7 V to 3.6 V Vdss LQFP64 (10x10 mm, 0.5 mm pitch) Package 100 MHz Speed 512 KB Memory
$8.5 USD / Unit
MOQ: 1 |
Volume Pricing
Qty Unit Price Extended
1 $8.5 $8.50
10 $7.65 $76.50
100 $6.8 $680.00
500 $6.12 $3,060.00
1,000 $5.44 $5,440.00
ℹ️ All prices are in USD

Drop-in alternatives for STM32F412RET6 β€” 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:

STM32F412RET7

βœ… Drop-In
πŸ“¦ LQFP64
Same die, extended temperature range (-40C to +105C)

πŸ“‹ Reference alternative (not in catalog)

STM32F412RGT6

βœ… Drop-In
πŸ“¦ LQFP64
1 MB flash instead of 512 KB, same pinout

πŸ“‹ Reference alternative (not in catalog)

STM32F411RET6

βœ… Drop-In
πŸ“¦ LQFP64
128 KB SRAM (vs 256 KB), no RNG/AES/FMC, same pinout

πŸ“‹ Reference alternative (not in catalog)

ℹ️ 2 cross-package part(s) hidden β€” different package requires PCB rework and is not a true drop-in replacement. Contact us if you need cross-package suggestions.

STM32F412RET6 Maximum Ratings & Electrical Characteristics

Core ARM Cortex-M4F with FPU
Maximum Clock Frequency 100 MHz
Flash Memory 512 KB
SRAM 256 KB
Supply Voltage 1.7 V to 3.6 V
Operating Temperature -40C to +85C
Package LQFP64 (10x10 mm, 0.5 mm pitch)
GPIO Pins 50
ADC 3x 12-bit, up to 16 channels
DAC 2x 12-bit
Timers 12x 16-bit, 2x 32-bit
Communication Interfaces USART (4), SPI (5), I2C (3), USB OTG FS, SDIO, CAN (2)
DMA 16 channels
RTC Yes
AES Encryption Yes (hardware)
Random Number Generator Yes (hardware)
RoHS Status Compliant

STM32F412RET6 Pin Configuration

QFP-64 Package Pinout Diagram QFP-64 10x10mm, P0.5mm, JEDEC MS-026. 1 16 QFP-64
Pin 1 VBAT β€” Backup battery supply for RTC and backup registers
Pin 2 PC13 β€” GPIO or RTC tamper/calendar output
Pin 3 PC14 β€” GPIO or OSC32_IN (32.768 kHz crystal input)
Pin 4 PC15 β€” GPIO or OSC32_OUT (32.768 kHz crystal output)
Pin 5 PF0 β€” GPIO or OSC_IN (main crystal input)
Pin 6 PF1 β€” GPIO or OSC_OUT (main crystal output)
Pin 7 NRST β€” Reset (active low)
Pin 8 PC0 β€” GPIO/ADC12_IN10
Pin 9 PC1 β€” GPIO/ADC12_IN11
Pin 10 PC2 β€” GPIO/ADC12_IN12
Pin 11 PC3 β€” GPIO/ADC12_IN13
Pin 12 VDD β€” Digital power supply (3.3V)
Pin 13 VSS β€” Digital ground
Pin 14 PC4 β€” GPIO/ADC12_IN14
Pin 15 PC5 β€” GPIO/ADC12_IN15
Pin 16 PB0 β€” GPIO/ADC12_IN8
Pin 17 PB1 β€” GPIO/ADC12_IN9
Pin 18 PB2 β€” GPIO/BOOT1
Pin 19 PB10 β€” GPIO/I2C2_SCL/USART3_TX
Pin 20 PB11 β€” GPIO/I2C2_SDA/USART3_RX
Pin 21 VSS β€” Ground
Pin 22 VDD β€” Power supply
Pin 23 PB12 β€” GPIO/SPI2_NSS/I2S2_WS
Pin 24 PB13 β€” GPIO/SPI2_SCK/I2S2_CK
Pin 25 PB14 β€” GPIO/SPI2_MISO/I2S2_MCK
Pin 26 PB15 β€” GPIO/SPI2_MOSI/I2S2_SD
Pin 27 PC6 β€” GPIO/SDIO_D6
Pin 28 PC7 β€” GPIO/SDIO_D7
Pin 29 PC8 β€” GPIO/SDIO_D0
Pin 30 PC9 β€” GPIO/SDIO_D1
Pin 31 PA8 β€” GPIO/USART1_CK/MCO1
Pin 32 PA9 β€” GPIO/USART1_TX/USB_OTG_FS_VBUS
Pin 33 PA10 β€” GPIO/USART1_RX/USB_OTG_FS_ID
Pin 34 PA11 β€” GPIO/USART1_CTS/USB_OTG_FS_DM
Pin 35 PA12 β€” GPIO/USART1_RTS/USB_OTG_FS_DP
Pin 36 PA13 β€” GPIO/SWDIO
Pin 37 VSS β€” Ground
Pin 38 VDD β€” Power supply
Pin 39 PA14 β€” GPIO/SWCLK
Pin 40 PA15 β€” GPIO/JTDI
Pin 41 PC10 β€” GPIO/SDIO_D2
Pin 42 PC11 β€” GPIO/SDIO_D3
Pin 43 PC12 β€” GPIO/SDIO_CK
Pin 44 PD2 β€” GPIO/SDIO_CMD
Pin 45 PB3 β€” GPIO/JTDO/SPI1_SCK
Pin 46 PB4 β€” GPIO/JTRST/SPI1_MISO
Pin 47 PB5 β€” GPIO/SPI1_MOSI/I2C1_SMBA
Pin 48 PB6 β€” GPIO/I2C1_SCL/USART1_TX
Pin 49 PB7 β€” GPIO/I2C1_SDA/USART1_RX
Pin 50 BOOT0 β€” Boot mode selection
Pin 51 PB8 β€” GPIO/I2C1_SCL/CAN1_RX
Pin 52 PB9 β€” GPIO/I2C1_SDA/CAN1_TX
Pin 53 VSS β€” Ground
Pin 54 VDD β€” Power supply
Pin 55 PE0 β€” GPIO/TIM4_ETR
Pin 56 PE1 β€” GPIO/TIM4_CH1
Pin 57 PE2 β€” GPIO/FSMC_A23
Pin 58 PE3 β€” GPIO/FSMC_A19
Pin 59 PE4 β€” GPIO/FSMC_A20
Pin 60 PE5 β€” GPIO/FSMC_A21
Pin 61 PE6 β€” GPIO/FSMC_A22
Pin 62 PD12 β€” GPIO/FSMC_NE4
Pin 63 PD13 β€” GPIO/FSMC_A18
Pin 64 PD14 β€” GPIO/FSMC_D0

Safe Operating Area (SOA) & Thermal Characteristics

Safe Operating Area Chart Default safe operating area chart for STM32F412RET6 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

STM32F412RET6 is suitable for 6 applications: Industrial Automation, IoT Gateway, Motor Control, Consumer Electronics, Audio Processing, Medical Devices.

🏭

Industrial Automation

The STM32F412RET6 is ideal for industrial automation due to its 100 MHz Cortex-M4F core, advanced timers for PWM generation, and multiple communication interfaces (CAN, USART, SPI) for connecting to sensors and actuators. Its 12-bit ADC with up to 16 channels enables precise analog signal acquisition for process control. The device operates over -40Β°C to +85Β°C, suitable for harsh industrial environments. In a PLC, the STM32F412RET6 can handle real-time control loops, communicate via Modbus over RS-485, and interface with HMI displays. The hardware AES encryption ensures secure communication in industrial IoT networks. The 512 KB flash allows storing complex control algorithms and data logging. The FMC supports external memory expansion for larger data buffers. The low-power modes help reduce energy consumption in remote monitoring stations. Overall, the STM32F412RET6 provides a robust and flexible platform for industrial control systems.

🧩

IoT Gateway

The STM32F412RET6 is well-suited for IoT gateways due to its rich connectivity options including USB OTG FS, SDIO for external storage, and multiple UARTs for interfacing with Wi-Fi or cellular modules. The hardware AES encryption accelerates secure communication protocols like TLS. The 256 KB SRAM provides ample buffer for network packets and sensor data. The device can run an RTOS to manage multiple tasks such as data acquisition, protocol handling, and cloud connectivity. In a typical IoT gateway, the STM32F412RET6 collects data from sensors via I2C/SPI, processes it locally, and transmits it to the cloud via Wi-Fi (using an external module like ESP8266) or Ethernet (via an external PHY). The low-power modes enable battery-powered operation for remote sensors. The RTC with calendar function allows time-stamping of data. The device's 100 MHz performance ensures smooth handling of MQTT and CoAP protocols. The FMC can be used to expand memory for data logging. Overall, the STM32F412RET6 is a powerful and efficient choice for IoT edge devices.

⚑

Motor Control

The STM32F412RET6 excels in motor control applications, particularly for brushless DC (BLDC) and permanent magnet synchronous motors (PMSM). Its advanced timers generate complementary PWM signals with dead-time insertion, essential for driving three-phase inverters. The 12-bit ADC with up to 16 channels can sample motor currents and voltages simultaneously for FOC (Field-Oriented Control). The Cortex-M4F with FPU accelerates complex control algorithms, enabling high-speed loops. The device supports various encoder interfaces (e.g., Hall sensors, quadrature encoders) for position feedback. In a typical motor control system, the STM32F412RET6 reads current sensors, computes the FOC algorithm, and updates PWM duty cycles in real-time. The CAN interface allows communication with higher-level controllers. The device's 100 MHz clock ensures low latency in control loops. The 512 KB flash can store multiple motor profiles and diagnostic routines. The operating temperature range makes it suitable for industrial drives. Overall, the STM32F412RET6 provides a cost-effective and high-performance solution for motor control.

πŸ“±

Consumer Electronics

The STM32F412RET6 is widely used in consumer electronics such as smart home hubs, wearables, and audio devices. Its compact LQFP64 package and low power consumption make it ideal for portable devices. The USB OTG FS allows direct connection to smartphones or PCs for data transfer and charging. The device supports various display interfaces (e.g., SPI, parallel) for driving small TFT screens. The audio capabilities include I2S for high-quality audio playback. In a smart home hub, the STM32F412RET6 can manage Zigbee, Z-Wave, or Bluetooth modules via UART/SPI, process sensor data, and control actuators. The hardware AES ensures secure communication with cloud services. The 512 KB flash can store user preferences and firmware updates. The device's rich peripheral set reduces the need for external components, lowering BOM cost. The low-power modes extend battery life in wearables. Overall, the STM32F412RET6 offers a balanced combination of performance, features, and cost for consumer products.

🎧

Audio Processing

The STM32F412RET6 is suitable for audio processing applications such as voice recognition, audio effects, and sound synthesis. The Cortex-M4F with FPU and DSP instructions enables efficient implementation of audio algorithms like FIR filters, FFT, and echo cancellation. The device includes I2S interfaces for connecting to audio codecs and DACs. The 12-bit ADC can sample analog audio signals, while the DAC can output audio directly. In a voice-controlled device, the STM32F412RET6 can capture audio via a microphone, perform keyword spotting, and trigger actions. The 256 KB SRAM provides buffer space for audio frames. The 100 MHz clock ensures real-time processing of audio streams. The device supports DMA for efficient data transfer between peripherals and memory, reducing CPU load. The low-power modes allow always-on listening in battery-powered devices. The hardware AES can encrypt audio data for secure transmission. Overall, the STM32F412RET6 is a powerful platform for embedded audio applications.

πŸ’Š

Medical Devices

The STM32F412RET6 is used in medical devices such as patient monitors, infusion pumps, and diagnostic equipment. Its high performance and rich analog peripherals enable precise measurement and control. The 12-bit ADC with up to 16 channels can acquire multiple physiological signals (e.g., ECG, temperature, pressure). The device supports various communication interfaces for data transfer to central monitoring systems. The hardware AES ensures secure handling of patient data. The operating temperature range and reliability make it suitable for medical environments. In a patient monitor, the STM32F412RET6 can process ECG signals, display waveforms on a TFT screen, and send alerts via Wi-Fi or Bluetooth. The 512 KB flash can store patient records and firmware updates. The low-power modes are beneficial for portable devices. The device's real-time capabilities ensure accurate monitoring. Overall, the STM32F412RET6 provides a reliable and secure platform for medical applications.

Recommended Products Summary

SN65HVD72 RS-485 transceiver for Modbus communication Used in: Industrial Automation ISO7742 Digital isolator for galvanic isolation Used in: Industrial Automation ESP8266EX Wi-Fi module for cloud connectivity Used in: IoT Gateway LAN8720A Ethernet PHY for wired connectivity Used in: IoT Gateway IR2104 Gate driver for MOSFET/IGBT in inverter Used in: Motor Control ACS712 Hall-effect current sensor for phase current sensing Used in: Motor Control CC2541 Bluetooth Low Energy module for wireless connectivity Used in: Consumer Electronics MAX98357A I2S audio amplifier for sound output Used in: Consumer Electronics WM8731 Audio codec for high-quality audio I/O Used in: Audio Processing MAX9814 Microphone amplifier for audio capture Used in: Audio Processing ADS1298 Biopotential ADC for ECG/EEG acquisition Used in: Medical Devices MAX30205 Temperature sensor for patient monitoring Used in: Medical Devices
What is the maximum clock frequency of STM32F412RET6?
The STM32F412RET6 operates at a maximum clock frequency of 100 MHz. According to the STMicroelectronics datasheet (DS11189), the ARM Cortex-M4F core with FPU can run at up to 100 MHz, providing 125 DMIPS performance.
How much flash memory does STM32F412RET6 have?
The STM32F412RET6 has 512 KB of flash memory. This is sufficient for complex firmware including RTOS, communication stacks, and application code. The flash is organized in 128-bit wide memory banks, allowing zero-wait-state execution at up to 100 MHz.
What is the difference between STM32F412RET6 and STM32F411RET6?
The STM32F412RET6 has 256 KB SRAM and 512 KB flash, while the STM32F411RET6 has 128 KB SRAM and 512 KB flash. The F412 also adds a true random number generator (RNG), AES encryption, and a flexible memory controller (FMC) for external memory expansion. Both share the same LQFP64 package and are pin-compatible, but the F412 offers more advanced features.
Can STM32F412RET6 be used for motor control applications?
Yes, the STM32F412RET6 is well-suited for motor control. It features advanced timers with complementary PWM outputs, dead-time generation, and a 12-bit ADC with up to 16 channels for current sensing. The 100 MHz Cortex-M4F with FPU accelerates control algorithms like FOC (Field-Oriented Control).
What is the operating voltage range of STM32F412RET6?
The STM32F412RET6 operates from 1.7V to 3.6V. This wide range allows direct battery operation (e.g., 2x AA batteries) and compatibility with 3.3V logic. The device has an internal voltage regulator that provides 1.2V to the core.
Does STM32F412RET6 support USB OTG?
Yes, the STM32F412RET6 includes a USB OTG FS (Full-Speed) peripheral. It supports device, host, and OTG modes, making it suitable for applications like USB data logging, HID devices, and USB-to-serial bridges.
What is the price of STM32F412RET6?
As of 2026-08-06, the price of STM32F412RET6 is approximately $8.50 for single-unit quantities, decreasing to $5.44 at 1000 units. Prices vary by distributor and volume; check DigiKey or Mouser for current pricing.
Where can I buy STM32F412RET6 online?
STM32F412RET6 is available from major distributors including DigiKey, Mouser, and Farnell. You can also purchase directly from STMicroelectronics' e-store. As of 2026-08-06, it is in stock at most distributors.
What is the lead time for STM32F412RET6?
The typical lead time for STM32F412RET6 is 8-12 weeks for large orders, but small quantities are usually available immediately from distributor stock. As of 2026-08-06, DigiKey and Mouser show stock available for immediate shipment.
Is STM32F412RET6 a good choice for IoT applications?
Yes, the STM32F412RET6 is an excellent choice for IoT gateways and edge devices. It offers multiple communication interfaces (USART, SPI, I2C, USB, SDIO, CAN), hardware AES encryption for secure communication, and low-power modes for battery operation. Its 512 KB flash and 256 KB SRAM can handle complex IoT protocols like MQTT and TLS.
What is the best drop-in replacement for STM32F412RET6?
The best drop-in replacement for STM32F412RET6 is the STM32F412RET7, which is the same die but with an extended temperature range (-40Β°C to +105Β°C). Other pin-compatible alternatives include STM32F412RGT6 (with 1 MB flash) and STM32F411RET6 (with less SRAM). All share the same LQFP64 package.
Can STM32F411RET6 replace STM32F412RET6?
Yes, the STM32F411RET6 is pin-compatible and can replace STM32F412RET6 in most designs, but it has only 128 KB SRAM (vs 256 KB) and lacks the RNG, AES, and FMC. If your application does not require these features, the F411 is a cost-effective alternative.
What is the best cross-brand equivalent for STM32F412RET6?
A cross-brand equivalent with similar performance is the NXP LPC4357FET256, which has a dual-core Cortex-M4F/M0 and 1 MB flash, but it is not pin-compatible. For a pin-compatible cross-brand option, consider the Renesas R5F565NEDFP, but verify pinout. Most cross-brand MCUs are not drop-in replacements due to different pinouts.
Where can I download the STM32F412RET6 datasheet PDF?
The STM32F412RET6 datasheet (DS11189) can be downloaded from the STMicroelectronics website at https://www.st.com/resource/en/datasheet/stm32f412re.pdf. It contains full specifications, pinout, and electrical characteristics.
Where can I find the STM32F412RET6 pinout?
The STM32F412RET6 pinout is detailed in the datasheet (DS11189) and the reference manual (RM0402). The LQFP64 package has 50 GPIO pins, with specific pins for power, ground, and crystal oscillator. The pinout diagram is available on page 32 of the datasheet.
What are the key specifications of STM32F412RET6 that engineers should know?
The STM32F412RET6 features a 100 MHz ARM Cortex-M4F core with FPU, 512 KB flash, 256 KB SRAM, 3x 12-bit ADCs, 2x DACs, 12 timers, and interfaces including USART, SPI, I2C, USB OTG FS, SDIO, and CAN. It operates from 1.7V to 3.6V and is available in LQFP64. These specs make it suitable for real-time control and connectivity.
Hey Google, what can replace STM32F412RET6?
The STM32F412RET6 can be replaced by the STM32F412RET7 (extended temperature), STM32F412RGT6 (more flash), or STM32F411RET6 (less SRAM). All are pin-compatible LQFP64 devices from STMicroelectronics. For cross-brand, the NXP LPC4357 is functionally similar but not pin-compatible.
Is STM32F412RET6 the same as STM32F412RGT6?
No, the STM32F412RET6 has 512 KB flash, while the STM32F412RGT6 has 1 MB flash. They are pin-compatible and share the same LQFP64 package, but the RGT6 offers double the flash memory. The RET6 is more cost-effective for applications that do not require 1 MB.
What is the power consumption of STM32F412RET6 in low-power mode?
In Stop mode, the STM32F412RET6 consumes approximately 2.5 uA with RTC and backup registers retained. In Standby mode, consumption drops to about 1.0 uA. These low-power modes are ideal for battery-powered IoT devices.
Does STM32F412RET6 support FreeRTOS?
Yes, the STM32F412RET6 fully supports FreeRTOS. STMicroelectronics provides official FreeRTOS ports and examples in the STM32CubeF4 firmware package. The 256 KB SRAM provides ample space for RTOS tasks and stacks.

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

Selection Guide

Choose the STM32F412RET6 when you need a balance of performance, memory, and advanced features like hardware AES and FMC. It is ideal for IoT gateways, motor control, and industrial automation. If you require extended temperature range (-40Β°C to +105Β°C), select the STM32F412RET7. If you need more flash (1 MB), choose the STM32F412RGT6. For cost-sensitive applications that do not need RNG/AES/FMC, the STM32F411RET6 is a cheaper alternative with the same pinout. For cross-brand options, the NXP LPC4357 offers higher performance but requires a different PCB layout due to its BGA package. Always verify pin compatibility and software migration effort before switching.

Comparison with Alternatives

Parameter This Product STM32F412RET7 STM32F412RGT6 STM32F411RET6 STM32F412CEU6 LPC4357FET256
Package LQFP64 LQFP64 - same LQFP64 - same LQFP64 - same UFQFPN48 - different LBGA256 - different
Brand STMicroelectronics STMicroelectronics STMicroelectronics STMicroelectronics STMicroelectronics NXP Semiconductors
Core ARM Cortex-M4F @ 100 MHz ARM Cortex-M4F @ 100 MHz ARM Cortex-M4F @ 100 MHz ARM Cortex-M4F @ 100 MHz ARM Cortex-M4F @ 100 MHz Dual-core Cortex-M4F/M0 @ 204 MHz
Flash Memory 512 KB 512 KB 1 MB 512 KB 512 KB 1 MB
SRAM 256 KB 256 KB 256 KB 128 KB 256 KB 136 KB
Operating Temperature -40C to +85C -40C to +105C -40C to +85C -40C to +85C -40C to +85C -40C to +85C
USB OTG FS Yes Yes Yes Yes Yes Yes (HS with external PHY)
Hardware AES Yes Yes Yes No Yes Yes
Price (1k) $5.44 $5.80 $6.50 $4.90 $5.20 $8.00

Key Differentiators

  • Larger SRAM (256 KB) compared to STM32F411RET6 (vs STM32F411RET6)
  • Hardware AES and RNG for security (vs STM32F411RET6)
  • Flexible Memory Controller (FMC) for external memory (vs STM32F411RET6)

Design Notes

The STM32F412RET6 operates from 1.7V to 3.6V. Use a 100nF ceramic capacitor on each VDD pin and a 4.7uF capacitor on the main VDD rail. For the VDDA (analog supply) pin, use a 1uF capacitor and a ferrite bead to isolate analog noise. The VBAT pin should be connected to a backup battery (e.g., CR2032) for RTC operation, or tied to VDD if not used.

For the main crystal oscillator (HSE), place the crystal and load capacitors (typically 20pF) as close to the OSC_IN/OSC_OUT pins as possible, with a ground guard ring around them. For the 32.768 kHz LSE crystal, similar layout rules apply. Keep the SWD interface traces short and avoid routing near high-speed signals. The USB OTG FS pins (PA11, PA12) require 22-ohm series resistors and proper impedance matching for full-speed operation.

Ensure the BOOT0 pin is properly configured to boot from flash (tied low). If using the FMC to interface external memory, verify the timing parameters in the reference manual (RM0402). The device has a brown-out reset (BOR) that can be configured via option bytes; ensure it is set appropriately for your supply voltage. Do not exceed the absolute maximum ratings on any pin, especially the analog inputs.

Compliance Information

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

RoHS compliant per STMicroelectronics product page. Not AEC-Q100 qualified; for automotive use consider STM32F412RET7 (extended temp) or other automotive-grade variants.

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