STM32G431CBT6 - Arm Cortex-M4 Microcontroller
Public Made by Adomby adom
STMicroelectronics Microcontrollers (MCU/MPU/SOC), LQFP-48(7x7). Pinout checked against ST's open pin data, KiCad symbol/footprint/3D.
3D Model
Open in new tab ↗
Loads when you scroll to it. Unloads after 5 minutes in the background.
Symbol & Footprint
Schematic Symbol
Open full view ↗PCB Footprint
Open full view ↗Datasheet
Open in new tab ↗Contents
README
markdownSTM32G431CBT6
STMicroelectronics · Microcontrollers (MCU/MPU/SOC) · LQFP-48(7x7)
STM32G431CBT6 from STMicroelectronics, in a LQFP-48(7x7). Pinout and pin descriptions extracted from the manufacturer datasheet by ds2sf; symbol and footprint from KiCad-official CAD; the 3D model comes from KiCad's own package generator at the datasheet's values and carries ST's real top marking.
Pinout
| Pin | Name | Type | Function |
|---|---|---|---|
| 1 | VBAT | power_in | Backup supply for RTC and backup registers when VDD is off. Connect to VDD or a battery (1.55 V to 3.6 V). |
| 2 | PC13 | bidirectional | General-purpose 5V-tolerant I/O in Backup domain (limited drive: max 2 MHz / 30 pF via power switch). Alternate: TIM1_BKIN, TIM1_CH1N, TIM8_CH4N, EVENTOUT. Additional: WKUP2, RTC_TAMP1, RTC_TS, RTC_OUT1. |
| 3 | PC14-OSC32_IN | bidirectional | Backup-domain 5V-tolerant GPIO doubling as LSE 32.768 kHz crystal input (OSC32_IN). Same drive limits as PC13. |
| 4 | PC15-OSC32_OUT | bidirectional | Backup-domain 5V-tolerant GPIO doubling as LSE 32.768 kHz crystal output (OSC32_OUT). Same drive limits as PC13. |
| 5 | PF0-OSC_IN | input | HSE crystal oscillator input (OSC_IN), 4-48 MHz, or input-only 5V-tolerant Fm+ I/O PF0. Alternate: I2C2_SDA, SPI2_NSS/I2S2_WS, TIM1_CH3N, EVENTOUT. Additional: ADC1_IN10. |
| 6 | PF1-OSC_OUT | output | HSE crystal oscillator output (OSC_OUT) or output-only 5V-tolerant I/O PF1. Alternate: SPI2_SCK/I2S2_CK, EVENTOUT. Additional: ADC2_IN10, COMP3_INM. |
| 7 | PG10-NRST | bidirectional | Bidirectional device reset with embedded weak pull-up (active low). Also selectable as GPIO PG10 with MCO/EVENTOUT alternate. |
| 8 | PA0 | bidirectional | 3.6 V tolerant analog-capable I/O (TT_a). Alternate: TIM2_CH1, USART2_CTS, COMP1_OUT, TIM8_BKIN/ETR, TIM2_ETR, EVENTOUT. Additional: ADC12_IN1, COMP1_INM, COMP3_INP, RTC_TAMP2, WKUP1. |
| 9 | PA1 | bidirectional | 3.6 V tolerant analog-capable I/O. Alternate: TIM2_CH2, USART2_RTS_DE, TIM15_CH1N, EVENTOUT. Additional: RTC_REFIN, ADC12_IN2, COMP1_INP, OPAMP1_VINP, OPAMP3_VINP. |
| 10 | PA2 | bidirectional | 3.6 V tolerant analog-capable I/O. Alternate: TIM2_CH3, USART2_TX, COMP2_OUT, TIM15_CH1, LPUART1_TX, UCPD1_FRSTX, EVENTOUT. Additional: ADC1_IN3, COMP2_INM, OPAMP1_VOUT, WKUP4/LSCO. |
| 11 | PA3 | bidirectional | 3.6 V tolerant analog-capable I/O. Alternate: TIM2_CH4, SAI1_CK1, USART2_RX, TIM15_CH2, LPUART1_RX, SAI1_MCLK_A, EVENTOUT. Additional: ADC1_IN4, COMP2_INP, OPAMP1_VINM/VINP. |
| 12 | PA4 | bidirectional | 3.6 V tolerant analog-capable I/O. Alternate: TIM3_CH2, SPI1_NSS, SPI3_NSS/I2S3_WS, USART2_CK, SAI1_FS_B, EVENTOUT. Additional: ADC2_IN17, DAC1_OUT1, COMP1_INM. |
| 13 | PA5 | bidirectional | 3.6 V tolerant analog-capable I/O. Alternate: TIM2_CH1, TIM2_ETR, SPI1_SCK, UCPD1_FRSTX, EVENTOUT. Additional: ADC2_IN13, DAC1_OUT2, COMP2_INM, OPAMP2_VINM. |
| 14 | PA6 | bidirectional | 3.6 V tolerant analog-capable I/O. Alternate: TIM16_CH1, TIM3_CH1, TIM8_BKIN, SPI1_MISO, TIM1_BKIN, COMP1_OUT, LPUART1_CTS, EVENTOUT. Additional: ADC2_IN3, OPAMP2_VOUT. |
| 15 | PA7 | bidirectional | 3.6 V tolerant analog-capable I/O. Alternate: TIM17_CH1, TIM3_CH2, TIM8_CH1N, SPI1_MOSI, TIM1_CH1N, COMP2_OUT, UCPD1_FRSTX, EVENTOUT. Additional: ADC2_IN4, COMP2_INP, OPAMP1_VINP, OPAMP2_VINP. |
| 16 | PB0 | bidirectional | 3.6 V tolerant analog-capable I/O. Alternate: TIM3_CH3, TIM8_CH2N, TIM1_CH2N, UCPD1_FRSTX, EVENTOUT. Additional: ADC1_IN15, COMP4_INP, OPAMP2_VINP, OPAMP3_VINP. |
| 17 | PB1 | bidirectional | 3.6 V tolerant analog-capable I/O. Alternate: TIM3_CH4, TIM8_CH3N, TIM1_CH3N, COMP4_OUT, LPUART1_RTS_DE, EVENTOUT. Additional: ADC1_IN12, COMP1_INP, OPAMP3_VOUT. |
| 18 | PB2 | bidirectional | 3.6 V tolerant analog-capable I/O. Alternate: RTC_OUT2, LPTIM1_OUT, I2C3_SMBA, EVENTOUT. Additional: ADC2_IN12, COMP4_INM, OPAMP3_VINM. |
| 19 | VSSA | power_in | Analog ground reference for ADC/DAC/comparators/OPAMP/VREF. Tie to system ground plane. |
| 20 | VREF+ | power_in | Positive reference voltage for ADC and DAC, or output of the internal VREFBUF (2.048 V / 2.5 V / 2.95 V). Bypass close to the pin. |
| 21 | VDDA | power_in | Analog supply for ADC/DAC/comparators/OPAMPs/VREFBUF, 1.71 V to 3.6 V. Must be present and stable before enabling analog blocks. |
| 22 | PB10 | bidirectional | 3.6 V tolerant analog-capable I/O. Alternate: TIM2_CH3, USART3_TX, LPUART1_RX, TIM1_BKIN, SAI1_SCK_A, EVENTOUT. Additional: OPAMP3_VINM. |
| 23 | VSS | power_in | Digital ground. Tie to system ground plane. |
| 24 | VDD | power_in | Main digital supply, 1.71 V to 3.6 V. Decouple locally with 100 nF and share bulk cap with the other VDD pins. |
| 25 | PB11 | bidirectional | 5 V tolerant analog-capable I/O. Alternate: TIM2_CH4, USART3_RX, LPUART1_TX, EVENTOUT. Additional: ADC12_IN14. |
| 26 | PB12 | bidirectional | 5 V tolerant analog-capable I/O. Alternate: I2C2_SMBA, SPI2_NSS/I2S2_WS, TIM1_BKIN, USART3_CK, LPUART1_RTS_DE, EVENTOUT. Additional: ADC1_IN11. |
| 27 | PB13 | bidirectional | 3.6 V tolerant analog-capable I/O. Alternate: SPI2_SCK/I2S2_CK, TIM1_CH1N, USART3_CTS, LPUART1_CTS, EVENTOUT. Additional: OPAMP3_VINP. |
| 28 | PB14 | bidirectional | 3.6 V tolerant analog-capable I/O. Alternate: TIM15_CH1, SPI2_MISO, TIM1_CH2N, USART3_RTS_DE, COMP4_OUT, EVENTOUT. Additional: ADC1_IN5, OPAMP2_VINP. |
| 29 | PB15 | bidirectional | 5 V tolerant analog-capable I/O. Alternate: RTC_REFIN, TIM15_CH2, TIM15_CH1N, COMP3_OUT, TIM1_CH3N, SPI2_MOSI/I2S2_SD, EVENTOUT. Additional: ADC2_IN15. |
| 30 | PA8 | bidirectional | 5 V tolerant Fm+ I/O. Alternate: MCO, I2C3_SCL, I2C2_SDA, I2S2_MCK, TIM1_CH1, USART1_CK, TIM4_ETR, SAI1_CK2, SAI1_SCK_A, EVENTOUT. |
| 31 | PA9 | bidirectional | 5 V tolerant Fm+ USB Type-C dead-battery-capable I/O. Alternate: I2C3_SMBA, I2C2_SCL, I2S3_MCK, TIM1_CH2, USART1_TX, TIM15_BKIN, TIM2_CH3, SAI1_FS_A, EVENTOUT. Additional: UCPD1_DBCC1. |
| 32 | PA10 | bidirectional | 5 V tolerant USB Type-C dead-battery-capable analog-capable I/O. Alternate: TIM17_BKIN, USB_CRS_SYNC, I2C2_SMBA, SPI2_MISO, TIM1_CH3, USART1_RX, TIM2_CH4, TIM8_BKIN, SAI1_D1/SD_A, EVENTOUT. Additional: UCPD1_DBCC2. |
| 33 | PA11 | bidirectional | USB full-speed D- (USB_DM) additional function; also 5 V tolerant I/O with alternates SPI2_MOSI/I2S2_SD, TIM1_CH1N, USART1_CTS, COMP1_OUT, FDCAN1_RX, TIM4_CH1, TIM1_CH4, TIM1_BKIN2, EVENTOUT. |
| 34 | PA12 | bidirectional | USB full-speed D+ (USB_DP) additional function; also 5 V tolerant I/O with alternates TIM16_CH1, I2SCKIN, TIM1_CH2N, USART1_RTS_DE, COMP2_OUT, FDCAN1_TX, TIM4_CH2, TIM1_ETR, EVENTOUT. |
| 35 | VSS | power_in | Digital ground. Tie to system ground plane. |
| 36 | VDD | power_in | Main digital supply, 1.71 V to 3.6 V. Decouple locally with 100 nF. |
| 37 | PA13 | bidirectional | SWDIO / JTMS debug pin (default after reset, weak pull-up). Also 5 V tolerant Fm+ I/O with alternates TIM16_CH1N, I2C1_SCL, IR_OUT, USART3_CTS, TIM4_CH3, SAI1_SD_B, EVENTOUT. |
| 38 | PA14 | bidirectional | SWCLK / JTCK debug pin (default after reset, internal pull-down). Also 5 V tolerant Fm+ I/O with alternates LPTIM1_OUT, I2C1_SDA, TIM8_CH2, TIM1_BKIN, USART2_TX, SAI1_FS_B, EVENTOUT. |
| 39 | PA15 | bidirectional | JTDI debug pin at reset (weak pull-up); reconfigurable to 5 V tolerant Fm+ GPIO with alternates TIM2_CH1, TIM8_CH1, I2C1_SCL, SPI1_NSS, SPI3_NSS/I2S3_WS, USART2_RX, UART4_RTS_DE, TIM1_BKIN, TIM2_ETR, EVENTOUT. |
| 40 | PB3 | bidirectional | JTDO/TRACESWO debug pin at reset; also 5 V tolerant I/O with alternates TIM2_CH2, TIM4_ETR, USB_CRS_SYNC, TIM8_CH1N, SPI1_SCK, SPI3_SCK/I2S3_CK, USART2_TX, TIM3_ETR, SAI1_SCK_B, EVENTOUT. |
| 41 | PB4 | bidirectional | JTRST debug pin at reset; also 5 V tolerant USB Type-C capable I/O with alternates TIM16_CH1, TIM3_CH1, TIM8_CH2N, SPI1_MISO, SPI3_MISO, USART2_RX, TIM17_BKIN, SAI1_MCLK_B, EVENTOUT. Additional: UCPD1_CC2. |
| 42 | PB5 | bidirectional | 5 V tolerant Fm+ I/O. Alternate: TIM16_BKIN, TIM3_CH2, TIM8_CH3N, I2C1_SMBA, SPI1_MOSI, SPI3_MOSI/I2S3_SD, USART2_CK, I2C3_SDA, TIM17_CH1, LPTIM1_IN1, SAI1_SD_B, EVENTOUT. |
| 43 | PB6 | bidirectional | 5 V tolerant USB Type-C capable I/O. Alternate: TIM16_CH1N, TIM4_CH1, TIM8_CH1, TIM8_ETR, USART1_TX, COMP4_OUT, TIM8_BKIN2, LPTIM1_ETR, SAI1_FS_B, EVENTOUT. Additional: UCPD1_CC1. |
| 44 | PB7 | bidirectional | 5 V tolerant Fm+ I/O. Alternate: TIM17_CH1N, TIM4_CH2, I2C1_SDA, TIM8_BKIN, USART1_RX, COMP3_OUT, TIM3_CH4, LPTIM1_IN2, UART4_CTS, EVENTOUT. Additional: PVD_IN. |
| 45 | PB8-BOOT0 | bidirectional | Dedicated BOOT0 selection pin at power-up (samples boot mode); afterwards a 5 V tolerant Fm+ GPIO PB8 with alternates TIM16_CH1, TIM4_CH3, SAI1_CK1, I2C1_SCL, USART3_RX, COMP1_OUT, FDCAN1_RX, TIM8_CH2, TIM1_BKIN, SAI1_MCLK_A, EVENTOUT. |
| 46 | PB9 | bidirectional | 5 V tolerant Fm+ I/O. Alternate: TIM17_CH1, TIM4_CH4, SAI1_D2, I2C1_SDA, IR_OUT, USART3_TX, COMP2_OUT, FDCAN1_TX, TIM8_CH3, TIM1_CH3N, SAI1_FS_A, EVENTOUT. |
| 47 | VSS | power_in | Digital ground. Tie to system ground plane. |
| 48 | VDD | power_in | Main digital supply, 1.71 V to 3.6 V. Decouple locally with 100 nF. |
Key specifications
| Parameter | Value |
|---|---|
| Manufacturer | STMicroelectronics |
| Package | LQFP-48(7x7) |
| Category | MCU |
| Pins | 48 |
Ordering variants
Same part, different packaging or reel option.
STM32G431CBT6STM32G431CBT6C8T6STM32G431CBT6C6T6STM32G431CBT6CBT3STM32G431CBT6CBU6STM32G431CBT6C8U6STM32G431CBT6C6U6STM32G431CBT6K6U6STM32G431CBT6K8U6STM32G431CBT6KBU6STM32G431CBT6R6T6STM32G431CBT6R8T6STM32G431CBT6RBT6STM32G431CBT6RBI6STM32G431CBT6M6T6STM32G431CBT6M8T6STM32G431CBT6MBT6STM32G431CBT6V6T6STM32G431CBT6V8T6STM32G431CBT6VBT6
CAD
- Symbol:
STM32G431CBT6(KiCad, adom-symbol 1.2.6, intelligent pin groups, chip outline baked in the body) - Footprint:
Package_QFP:LQFP-48_7x7mm_P0.5mm(KiCad official) - Fusion / EAGLE: stm32g431cbt6.lbr
Top marking (the real one, from the datasheet)
Every 3D file on this page that carries a marking carries the manufacturer's own top marking, not an invented label:
| Marking | STM32G431 / CBT6 / Y WW / R |
| Source | ST DS12589 Rev 2 (October 2019), STM32G431x6/x8/xB datasheet, p.177 (6.4 LQFP48 device marking, Figure 51 LQFP48 top view example) |
| How it is drawn | Line 1 STM32G431 and line 2 CBT6 (product identification), date code Y WW (Y = year, WW = work week, shown as the placeholders ST prints), revision code R (placeholder, one letter), pin-1 dimple at the pin-1 corner. Not rendered: the ST logo (a trademark, not text) and the unlabelled circle ST draws beside it. |
| Placement | top face, flat light mark 5 um above the face (coplanar), in the Adom.LaserEtch group; along the long axis, upright in the standard pose (pin 1 lower left seen from the top) |
| Font | service-step2glb /laser-etch single-stroke outline font (not the manufacturer's font) |
| Gate | adom-aiflow-etch check: PASS (axis PASS, upright PASS, size PASS, band PASS, flat PASS, group PASS, colour PASS, widget PASS) |
| Layout note | ST's figure puts R in the bottom row beside the logo; the gate keeps all text clear of the pin-1 dimple band, so R sits one row higher at the right, under the date code. |

The datasheet's marking figure (p.177):

3D models
| File | What it is |
|---|---|
| stm32g431cbt6-etched.step | The library model for board CAD (KiCad, Fusion, Altium): the package with the real marking in an Adom.LaserEtch group. |
| stm32g431cbt6.step | The same package, unmarked. |
| stm32g431cbt6-etched.glb | The marked model as GLB, clean for boards and digital twins (no pad outlines, labels or silkscreen), with matte-tin leads. |
| stm32g431cbt6-hero.glb | The annotated page hero (adom-hero 1.4): the marked chip plus teal dashed pad outlines, silkscreen with pin 1 and pad signal names. Display only, never for a board. |
| lod/ | Board-use detail levels (below). |
| provenance/previous/ | Earlier models, kept for reference: KiCad's library model and the hand-built square-fold model this page carried from 2026-10-19 to 2026-10-21. |
Frame for every file: Z up, seated on z = 0, centred on the KiCad footprint origin, pin 1 on footprint pad 1, binds with zero offset and rotation.
How the model is made (2026-10-21): with KiCad's own package generator (kicad-packages3D-generator, the CadQuery scripts behind KiCad's 3D library), so the leads have KiCad's real radiused gull-wing bends, run with the datasheet's values instead of the library's generic ones. ST DS12589 Table 94 typical values: D = E 9.00, D1 = E1 7.00, A1 0.10, A2 1.40 (A 1.50), b 0.22, e 0.50, L 0.60 to the gauge plane; c 0.145 (midpoint of 0.09 to 0.20: no typical printed); KiCad's bend radii R1 = R2 = 0.10 (JEDEC MS-026 range), body draft 12 deg and edge fillet 0.05.
Why not KiCad's library model as it is: KiCad's shipped STEP is 6 um under ST's 0.45 mm minimum. KiCad's current generator, run with its own LQFP-48 parameters, already gives 0.600 mm; it was run with ST Table 94's typical values. Measured L foot to the 0.25 mm gauge plane: datasheet 0.45 / 0.60 / 0.75, KiCad library 0.444, regenerated 0.600 mm. Method: section through one lead's centre line (plane y = lead centre), cut at the 0.25 mm gauge plane (z = 0.25); L = distance from the lead tip to where the lead's lower outer surface crosses the gauge plane (JEDEC definition), provenance/tools/kicad-generator/measure.py.
Leads: before and after
The page carried a hand-built model with square 90 degree lead folds from 2026-10-19 to 2026-10-21. It is replaced by the generator's radiused bends, with the leads in their own matte-tin material:

Model proof: overlay on the datasheet drawing
The plain model was rendered orthographically at the drawing's own scale and blended over the datasheet's top and side/end views. Red outline and blue fill: the model. Black lines: the datasheet.

| Dimension (mm) | Datasheet min / typ / max | Model |
|---|---|---|
| D, E lead tip to tip | 8.80 / 9.00 / 9.20 | 9.000 |
| D1, E1 body | 6.80 / 7.00 / 7.20 | 7.000 |
| A overall height | max 1.60 | 1.500 |
| A1 standoff | 0.05 / - / 0.15 | 0.100 |
| A2 body thickness | 1.35 / 1.40 / 1.45 | 1.400 |
| b lead width | 0.17 / 0.22 / 0.27 | 0.220 |
| c lead thickness | 0.09 / - / 0.20 | 0.145 |
| e pitch | 0.50 | 0.500 |
| L foot (to the 0.25 mm gauge plane) | 0.45 / 0.60 / 0.75 | 0.600 (measured) |
| L1 lead length | 1.00 | 1.000 |
| Bend radii R1, R2 (not printed; JEDEC MS-026) | R1 >= 0.08, R2 0.08 to 0.20 | 0.10, 0.10 |
Pin 1: KiCad's pin-1 dimple (generator default) replaces the former 0.75 mm dimple; ST's figure shows a pin-1 identification circle at that corner. The marking was re-applied with the same reviewed inputs: etched with --over-vendor-mark: the generated body has no printed marking, but its 0.05 mm top edge fillets read as glyph faces to the vendor-mark detector; the date and revision codes were added with provenance/tools/extra_marks.py exactly as before.
Cited datasheet pages:

Detail levels for board and digital-twin viewers
| Level | File | Triangles | Draw calls | Size | Marking |
|---|---|---|---|---|---|
| high | stm32g431cbt6-high.glb | 8745 | 4 | 309 KiB | yes |
| medium | stm32g431cbt6-medium.glb | 8745 | 4 | 225 KiB | yes |
| low | stm32g431cbt6-low.glb | 4556 | 3 | 121 KiB | no |
| super-low | stm32g431cbt6-super-low.glb | 2998 | 3 | 86 KiB | no |
All four levels come from the generated model, share the Z-up frame, units and seating of the library model, carry no footprint or silkscreen artwork, and keep the real terminals and the pin-1 cue. High is the marked model with its primitives batched per part (geometry unchanged); medium is the same, quantized; low and super-low are error-bounded simplifications without the marking (unreadable at those sizes). Status: candidate; the cached previews were inspected, a streaming LOD viewer has not qualified them.
Symbol chip outline
The symbol body carries the chip outline, so the schematic shows the same chip and marking as the 3D view. It was redrawn on 2026-10-21 from the new model: artwork/STM32G431CBT6-3d-outline-dark-named.svg, drawn from the marked model in adom-aiflow-etch outline's standard pose: the service draws the body outline and the name is the etched model's own mark edges, projected with the tool's calibration (provenance/tools/kicad-generator/mark_art.py); the tool's outline gate passes. adom-aiflow-etch outline itself now only composes a single-stroke name, which drops parts of the real mark here (ST's Y WW / R codes). The KiCad symbol and the Fusion library (.lbr) carry the same drawing.

3D model provenance
provenance/3d-model.json records the datasheet (document, revision, pages, SHA-256), every model dimension against the datasheet, what was measured off the drawing, the generator, its parameters and the measurement (provenance/tools/kicad-generator/), the etch gate result, file hashes, tool versions and the AI-derived classification. PROVENANCE.md is the readable summary.
Datasheet provenance
- Datasheet: ST DS12589 Rev 2 (October 2019), STM32G431x6/x8/xB datasheet (PDF, sha256
cabefb21b47dc4c1). The PDF's metadata title names STM32G474; the document itself is DS12589, the STM32G431 datasheet. - Pins: extracted by
ds2sf(Claude); every pin cites a datasheet page.