main
Ray Publish 0.1.0 1b109ce

STM32G031F8P6TR

STMicroelectronics · Microcontrollers (MCU/MPU/SOC) · TSSOP-20

STM32G031F8P6TR from STMicroelectronics, in a TSSOP-20. Pinout and pin descriptions extracted from the manufacturer datasheet (extract_pins, cross-checked by a second model, then checked against ST open pin data); symbol, footprint, and 3D from KiCad-official CAD.

Pinout

Pin Name Type Function
1 PB7/PB8 bidirectional 5 V-tolerant, Fm+-capable I/O (FT_fa/FT_f); PB7 also carries PVD_IN and ADC_IN11 and PB8 carries SPI2_SCK, TIM16_CH1 and I2C1_SCL.
2 PB9/PC14-OSC32_IN bidirectional FT I/O supplied through the power switch, which sinks at most 3 mA, so output speed must not exceed 2 MHz at 30 pF and the pin must not source current such as driving an LED; it also serves as OSC32_IN (LSE input) and PB9 carries IR_OUT, TIM17_CH1 and I2C1_SDA.
3 PC15-OSC32_OUT bidirectional FT I/O supplied through the power switch with the same 3 mA sink limit and 2 MHz / 30 pF output limit, and it serves as OSC32_OUT (LSE output).
4 VDD/VDDA power_in Main supply for the internal regulator, I/Os and system analog, specified at 1.7 V to 3.6 V, with VDDA for the ADC (minimum 1.62 V) and VREFBUF (minimum 2.4 V).
5 VSS/VSSA power_in Ground reference for digital (VSS) and analog (VSSA) circuitry, with all voltages referenced to VSS.
6 PF2-NRST bidirectional Active reset input with embedded weak pull-up (RST, FT) by default, which can instead be configured as an FT GPIO, with MCO as its alternate function.
7 PA0 bidirectional 5 V-tolerant FT_a I/O with analog switch function, providing ADC_IN0, WKUP1 and TAMP_IN2, and alternate functions SPI2_SCK, USART2_CTS, TIM2_CH1_ETR and LPTIM1_OUT.
8 PA1 bidirectional 5 V-tolerant FT_ea I/O with analog switch and switchable diode to VDDIO1, providing ADC_IN1 and alternates SPI1_SCK/I2S1_CK, USART2_RTS_DE_CK, TIM2_CH2, I2C1_SMBA and EVENTOUT.
9 PA2 bidirectional 5 V-tolerant FT_a I/O with analog switch, providing ADC_IN2, WKUP4 and LSCO, and alternates SPI1_MOSI/I2S1_SD, USART2_TX, TIM2_CH3 and LPUART1_TX.
10 PA3 bidirectional 5 V-tolerant FT_ea I/O with analog switch, providing ADC_IN3 and alternates SPI2_MISO, USART2_RX, TIM2_CH4, LPUART1_RX and EVENTOUT.
11 PA4 bidirectional 5 V-tolerant FT_a I/O with analog switch, providing ADC_IN4, TAMP_IN1, RTC_TS, RTC_OUT1 and WKUP2, and alternates SPI1_NSS/I2S1_WS, SPI2_MOSI, TIM14_CH1, LPTIM2_OUT and EVENTOUT.
12 PA5 bidirectional 5 V-tolerant FT_ea I/O with analog switch, providing ADC_IN5 and alternates SPI1_SCK/I2S1_CK, TIM2_CH1_ETR, LPTIM2_ETR and EVENTOUT.
13 PA6 bidirectional 5 V-tolerant FT_ea I/O with analog switch, providing ADC_IN6 and alternates SPI1_MISO/I2S1_MCK, TIM3_CH1, TIM1_BK, TIM16_CH1 and LPUART1_CTS.
14 PA7 bidirectional 5 V-tolerant FT_a I/O with analog switch, providing ADC_IN7 and alternates SPI1_MOSI/I2S1_SD, TIM3_CH2, TIM1_CH1N, TIM14_CH1 and TIM17_CH1.
15 PB0/PB1/PB2/PA8 bidirectional 5 V-tolerant FT_ea I/O for PB0/PB1/PB2 with ADC_IN8/ADC_IN9/ADC_IN10 respectively, and an FT I/O for PA8 with alternates MCO, SPI2_NSS, TIM1_CH1, LPTIM2_OUT and EVENTOUT.
16 PA11[PA9] bidirectional 5 V-tolerant FT_fa I/O with analog switch and ADC_IN15, with alternates SPI1_MISO/I2S1_MCK, USART1_CTS, TIM1_CH4, TIM1_BKIN2 and I2C2_SCL; it can be remapped to PA9 via SYSCFG_CFGR1.
17 PA12[PA10] bidirectional 5 V-tolerant FT_fa I/O with analog switch and ADC_IN16, with alternates SPI1_MOSI/I2S1_SD, USART1_RTS_DE_CK, TIM1_ETR, I2S_CKIN and I2C2_SDA; it can be remapped to PA10 via SYSCFG_CFGR1.
18 PA13 bidirectional 5 V-tolerant FT_ea I/O that is configured as SWDIO at reset with an internal pull-up enabled, with alternates IR_OUT and EVENTOUT and ADC_IN17.
19 PA14-BOOT0/PA15 bidirectional PA14 is an FT_a I/O that is configured as SWCLK at reset with an internal pull-down enabled and serves as BOOT0 and ADC_IN18, while PA15 is an FT I/O with alternates SPI1_NSS/I2S1_WS, USART2_RX and TIM2_CH1_ETR.
20 PB3/PB4/PB5/PB6 bidirectional 5 V-tolerant FT I/Os (PB6 is FT_f, Fm+ capable) with alternates including SPI1_SCK/I2S1_CK (PB3), SPI1_MISO/I2S1_MCK (PB4), SPI1_MOSI/I2S1_SD and WKUP6 (PB5), and USART1_TX, TIM1_CH3, I2C1_SCL and LPTIM1_ETR (PB6).

Key specifications

Parameter Value
Manufacturer STMicroelectronics
Package TSSOP-20
Category Embedded Processors & Controllers
Pins 20

Electrical characteristics

Limits as printed in the datasheet (page.json metadata.characteristics carries them as data).

Parameter Symbol Min Typ Max Unit Conditions Page
External supply voltage VDD -0.3 4 V 45
External supply voltage on VBAT pin VBAT -0.3 4 V 45
External voltage on VREF+ pin VREF+ -0.3 V 45
Input voltage on FT_xx VIN -0.3 V 45
Input voltage on any other pin VIN -0.3 4 V 45
Current into VDD/VDDA power pin (source) IVDD/VDDA 100 mA 45
Current out of VSS/VSSA ground pin (sink) IVSS/VSSA 100 mA 45
Output current sunk by any I/O and control pin except FT_f IIO(PIN) 15 mA except FT_f 45
Output current sunk by any FT_f pin IIO(PIN) 20 mA FT_f pin 45
Output current sourced by any I/O and control pin IIO(PIN) 15 mA 45
Total output current sunk by sum of all I/Os and control pins ΣIIO(PIN) 80 mA 46
Total output current sourced by sum of all I/Os and control pins ΣIIO(PIN) 80 mA 46
Injected current on a FT_xx pin IINJ(PIN) -5 mA printed as -5 / NA (no positive injection) 46
Total injected current (sum of all I/Os and control pins) ∑/IINJ(PIN)/ 25 mA 46
Storage temperature range TSTG -65 150 °C 46
Maximum junction temperature TJ 150 °C 46
Internal AHB clock frequency fHCLK 0 64 MHz 46
Internal APB clock frequency fPCLK 0 64 MHz 46
Standard operating voltage VDD 1.7 3.6 V 46
Analog supply voltage VDDA 1.62 3.6 V For ADC operation 46
Analog supply voltage VDDA 2.4 3.6 V For VREFBUF operation 46
Backup operating voltage VBAT 1.55 3.6 V 46
I/O input voltage (all except RST) VIN -0.3 V All except RST 46
I/O input voltage (RST) VIN -0.3 V RST 46
Ambient temperature, suffix 6 TA -40 85 °C Suffix 6 46
Junction temperature, suffix 6 TJ -40 105 °C Suffix 6 47
VDD slew rate tVDD 10 µs/V VDD falling; ULPEN = 0 47
Power-on reset threshold VPOR 1.62 1.66 1.7 V 47
Power-down reset threshold VPDR 1.6 1.64 1.69 V 47
Brownout reset threshold 1 VBOR1 2.05 2.1 2.18 V VDD rising 47
Brownout reset threshold 1 VBOR1 1.95 2 2.08 V VDD falling 47
Brownout reset threshold 2 VBOR2 2.2 2.31 2.38 V VDD rising 47
Brownout reset threshold 2 VBOR2 2.1 2.21 2.28 V VDD falling 47
Brownout reset threshold 3 VBOR3 2.5 2.62 2.68 V VDD rising 47
Brownout reset threshold 3 VBOR3 2.4 2.52 2.58 V VDD falling 47
Brownout reset threshold 4 VBOR4 2.8 2.91 3 V VDD rising 47
Brownout reset threshold 4 VBOR4 2.7 2.81 2.9 V VDD falling 47
POR temporization when VDD crosses VPOR tRSTTEMPO 250 400 µs VDD rising 47
BOR and PVD consumption IDD(BOR_PVD) 1.1 1.6 µA Specified by design, not tested in production 48
Internal reference voltage VREFINT 1.182 1.212 1.232 V -40°C < TJ < 130°C 48
Internal reference voltage spread over the temperature range ∆VREFINT 5 7.5 mV VDD = 3 V 49
Temperature coefficient TCoeff_vrefint 30 50 ppm/°C 49
Long term stability ACoeff 300 1000 ppm 1000 hours, T = 25 °C 49
Voltage coefficient VDDCoeff 250 1200 ppm/V 3.0 V < VDD < 3.6 V 49
VREFINT buffer consumption from VDD when converted by ADC IDD(VREFINTBUF) 12.5 20 µA when converted by ADC 48
Endurance NEND 10 kcycles TA = -40 to +105 °C 67
64-bit programming time tprog 85 125 µs 66
Mass erase time tME 22.1 40.1 ms 66
Page (2 Kbyte) erase time tERASE 22 40 ms 66
HSE oscillator frequency fOSC_IN 4 8 48 MHz 61
User external clock source frequency fHSE_ext 8 48 MHz Voltage scaling Range 1 60
User external clock source frequency fHSE_ext 8 26 MHz Voltage scaling Range 2 60
HSI16 Frequency fHSI16 15.88 16.08 MHz VDD=3.0 V, TA=30 °C 64
HSI16 oscillator frequency drift over temperature ∆Temp(HSI16) -1 1 % TA= 0 to 85 °C 64
HSI16 duty cycle DHSI16 45 55 % 64
LSI frequency fLSI 31.04 32.96 kHz VDD = 3.0 V, TA = 30 °C 65
LSI frequency fLSI 29.5 34 kHz VDD = 1.62 V to 3.6 V, TA = -40 to 125 °C 65
PLL input clock frequency fPLL_IN 2.66 16 MHz 66
Electrostatic discharge voltage (human body model) VESD(HBM) 2000 V TA = +25 °C, conforming to ANSI/ESDA/JEDEC JS-001 69
VBORx/VPVDx hysteresis Vhyst_BOR_PVD 100 mV 48

CAD (KiCad official)

  • Symbol: STM32G031F8P6TR
  • Footprint: Package_SO:TSSOP-20_4.4x6.5mm_P0.65mm
  • 3D model: TSSOP-20 (KiCad packages3D, STEP)
  • 3D model files: stm32g031f8p6tr-etched.step / stm32g031f8p6tr-etched.glb carry the MPN laser-etched on the die in a toggleable Adom.LaserEtch group (Fusion-ready); stm32g031f8p6tr.step / stm32g031f8p6tr.glb are the bare package body.

Provenance

Data extracted from the manufacturer datasheet, not a distributor listing:

  • Datasheet: STMicroelectronics datasheet (126 pp, sha256 0e25cbbf2cd17384, retrieved 2026-10-29, tier: manufacturer)
  • Extractor: parts-factory 2.0.0 / extract_pins 0.3, primary claude-haiku-5-5 (text), consensus claude-sonnet-5-5 (agreed), guards: pin_guards 0.1: passed. Pins are checked against the footprint pad set and their cited datasheet pages before publish.
  • CAD: KiCad official libraries (CC-BY-SA 4.0).

Datasheet PDF