STM32G431x6 STM32G431x8
STM32G431xB
Arm
®
Cortex
®
-M4 32-bit MCU+FPU, 170 MHz /213 DMIPS,
up to 128 KB Flash, 32 KB SRAM, rich analog, math accelerator
Datasheet
-
production data
Features
FBGA
Includes ST state-of-the-art patented
technology
•
Core: Arm 32-bit Cortex -M4 CPU with FPU,
Adaptive real-time accelerator (ART
Accelerator) allowing 0-wait-state execution
from Flash memory, frequency up to 170 MHz
with 213 DMIPS, MPU, DSP instructions
•
Operating conditions:
– V
DD
, V
DDA
voltage range:
1.71 V to 3.6 V
•
Mathematical hardware accelerators
– CORDIC for trigonometric functions
acceleration
– FMAC: filter mathematical accelerator
•
Memories
– 128 Kbytes of Flash memory with ECC
support, proprietary code readout
protection (PCROP), securable memory
area, 1 Kbyte OTP
– 22 Kbytes of SRAM, with hardware parity
check implemented on the first 16 Kbytes
– Routine booster: 10 Kbytes of SRAM on
instruction and data bus, with hardware
parity check (CCM SRAM)
•
Reset and supply management
– Power-on/power-down reset
(POR/PDR/BOR)
– Programmable voltage detector (PVD)
– Low-power modes: sleep, stop, standby
and shutdown
– V
BAT
supply for RTC and backup registers
®
®
UFQFPN32 (5 x 5 mm)
LQFP48 (7 x 7 mm)
UFQFPN48 (7 x 7 mm)
LQFP64 (10 x 10 mm)
LQFP80 (12 x 12 mm)
LQFP100 (14 x 14 mm)
LQFP32 (7 x 7 mm)
UFBGA64
(5 x 5 mm)
WLCSP49
(Pitch 0.4)
•
Clock management
– 4
to
48 MHz crystal oscillator
– 32 kHz oscillator with calibration
– Internal 16 MHz RC with PLL option (± 1%)
–
Internal
32 kHz RC oscillator (± 5%)
•
Up to 86 fast I/Os
– All mappable on external interrupt vectors
– Several I/Os with 5 V tolerant capability
•
Interconnect matrix
•
12-channel DMA controller
•
2 x ADCs 0.25 µs (up to 23 channels).
Resolution up to 16-bit with hardware
oversampling, 0 to 3.6 V conversion range
•
4 x 12-bit DAC channels
– 2 x buffered external channels 1 MSPS
– 2 x unbuffered internal channels 15 MSPS
•
4 x ultra-fast rail-to-rail analog comparators
•
3 x operational amplifiers that can be used in
PGA mode, all terminals accessible
•
Internal voltage reference buffer (VREFBUF)
supporting three output voltages (2.048 V,
2.5 V, 2.9 V)
•
14 timers:
– 1 x 32-bit timer and 2 x 16-bit timers with up
to four IC/OC/PWM or pulse counter and
quadrature (incremental) encoder input
– 2 x 16-bit 8-channel advanced motor
control timers, with up to 8 x PWM
channels, dead time generation and
emergency stop
October 2021
This is information on a product in full production.
DS12589 Rev 6
1/198
www.st.com
STM32G431x6 STM32G431x8 STM32G431xB
– 1 x 16-bit timer with 2 x IC/OCs, one
OCN/PWM, dead time generation and
emergency stop
– 2 x 16-bit timers with IC/OC/OCN/PWM,
dead time generation and emergency stop
– 2 x watchdog timers (independent, window)
– 1 x SysTick timer: 24-bit downcounter
– 2 x 16-bit basic timers
– 1 x low-power timer
•
Calendar RTC with alarm, periodic wakeup
from stop/standby
– 4 x USART/UARTs (ISO 7816 interface,
LIN, IrDA, modem control)
– 1 x LPUART
– 3 x SPIs, 4 to 16 programmable bit frames,
2 x with multiplexed half duplex I
2
S
interface
– 1 x SAI (serial audio interface)
– USB 2.0 full-speed interface with LPM and
BCD support
– IRTIM (infrared interface)
– USB Type-C™ /USB power delivery
controller (UCPD)
•
Communication interfaces
•
True random number generator (RNG)
– 1 x FDCAN controller supporting flexible
data rate
•
CRC calculation unit, 96-bit unique ID
2
– 3 x I C Fast mode plus (1 Mbit/s) with
•
Development support: serial wire debug
20 mA current sink, SMBus/PMBus,
(SWD), JTAG, Embedded Trace Macrocell™
wakeup from stop
Table 1. Device summary
Reference
STM32G431x6
STM32G431x8
STM32G431xB
Part number
STM32G431C6, STM32G431K6, STM32G431R6, STM32G431V6, STM32G431M6
STM32G431C8, STM32G431K8, STM32G431R8, STM32G431V8, STM32G431M8
STM32G431CB, STM32G431KB, STM32G431RB, STM32G431VB, STM32G431MB
2/198
DS12589 Rev 6
STM32G431x6 STM32G431x8 STM32G431xB
Contents
Contents
1
2
3
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Functional overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
3.1
3.2
3.3
3.4
3.5
3.6
3.7
3.8
3.9
3.10
3.11
Arm
®
Cortex
®
-M4 core with FPU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Adaptive real-time memory accelerator (ART accelerator) . . . . . . . . . . . 17
Memory protection unit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Embedded Flash memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Embedded SRAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Multi-AHB bus matrix . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Boot modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
CORDIC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Filter mathematical accelerator (FMAC) . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Cyclic redundancy check calculation unit (CRC) . . . . . . . . . . . . . . . . . . . 21
Power supply management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
3.11.1
3.11.2
3.11.3
3.11.4
3.11.5
3.11.6
Power supply schemes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Power supply supervisor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Voltage regulator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Low-power modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Reset mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
VBAT operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
3.12
3.13
3.14
3.15
3.16
3.17
Interconnect matrix . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Clocks and startup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
General-purpose inputs/outputs (GPIOs) . . . . . . . . . . . . . . . . . . . . . . . . . 27
Direct memory access controller (DMA) . . . . . . . . . . . . . . . . . . . . . . . . . . 27
DMA request router (DMAMUX) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Interrupts and events . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
3.17.1
3.17.2
Nested vectored interrupt controller (NVIC) . . . . . . . . . . . . . . . . . . . . . . 28
Extended interrupt/event controller (EXTI) . . . . . . . . . . . . . . . . . . . . . . 28
Temperature sensor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
3.18
Analog-to-digital converter (ADC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
3.18.1
DS12589 Rev 6
3/198
6
Contents
3.18.2
3.18.3
STM32G431x6 STM32G431x8 STM32G431xB
Internal voltage reference (VREFINT) . . . . . . . . . . . . . . . . . . . . . . . . . . 30
VBAT battery voltage monitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
3.19
3.20
3.21
3.22
3.23
3.24
Digital to analog converter (DAC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Voltage reference buffer (VREFBUF) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
Comparators (COMP) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Operational amplifier (OPAMP) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Random number generator (RNG) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Timers and watchdogs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
3.24.1
3.24.2
3.24.3
3.24.4
3.24.5
3.24.6
3.24.7
Advanced motor control timer (TIM1, TIM8) . . . . . . . . . . . . . . . . . . . . . 33
General-purpose timers (TIM2, TIM3, TIM4, TIM15, TIM16,
TIM17) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Basic timers (TIM6 and TIM7) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Low-power timer (LPTIM1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Independent watchdog (IWDG) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
System window watchdog (WWDG) . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
SysTick timer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
3.25
3.26
3.27
3.28
3.29
3.30
3.31
3.32
3.33
3.34
3.35
3.36
3.37
Real-time clock (RTC) and backup registers . . . . . . . . . . . . . . . . . . . . . . 36
Tamper and backup registers (TAMP) . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Infrared transmitter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Inter-integrated circuit interface (I
2
C) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
Universal synchronous/asynchronous receiver transmitter (USART) . . . 39
Low-power universal asynchronous receiver transmitter (LPUART) . . . . 40
Serial peripheral interface (SPI) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
Serial audio interfaces (SAI) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
3.32.1
SAI peripheral supports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
Controller area network (FDCAN1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
Universal serial bus (USB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
USB Type-C™ / USB Power Delivery controller (UCPD) . . . . . . . . . . . . . 42
Clock recovery system (CRS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
Development support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
3.37.1
3.37.2
Serial wire JTAG debug port (SWJ-DP) . . . . . . . . . . . . . . . . . . . . . . . . . 43
Embedded trace macrocell™ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
4
Pinouts and pin description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
4.1
UFQFPN32 pinout description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
4/198
DS12589 Rev 6
STM32G431x6 STM32G431x8 STM32G431xB
Contents
4.2
4.3
4.4
4.5
4.6
4.7
4.8
4.9
4.10
4.11
LQFP32 pinout description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
UFQFPN48 pinout description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
LQFP48 pinout description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
WLCSP49 ballout description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
LQFP64 pinout description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
UFBGA64 ballout description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
LQFP80 pinout description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
LQFP100 pinout description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
Pin definition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
Alternate functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
5
Electrical characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
5.1
Parameter conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
5.1.1
5.1.2
5.1.3
5.1.4
5.1.5
5.1.6
5.1.7
Minimum and maximum values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
Typical values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
Typical curves . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
Loading capacitor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
Pin input voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
Power supply scheme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
Current consumption measurement . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
5.2
5.3
Absolute maximum ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
Operating conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
5.3.1
5.3.2
5.3.3
5.3.4
5.3.5
5.3.6
5.3.7
5.3.8
5.3.9
5.3.10
5.3.11
5.3.12
5.3.13
General operating conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
Operating conditions at power-up / power-down . . . . . . . . . . . . . . . . . . 72
Embedded reset and power control block characteristics . . . . . . . . . . . 72
Embedded voltage reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
Supply current characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
Wakeup time from low-power modes and voltage scaling
transition times . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
External clock source characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
Internal clock source characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . 103
PLL characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106
Flash memory characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107
EMC characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108
Electrical sensitivity characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
I/O current injection characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . 110
DS12589 Rev 6
5/198
6