main
Ray
Publish 0.1.2
a0537f8
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398
{
"schema_version": 1,
"type": "component",
"slug": "stm32g031k8t7",
"title": "STM32G031K8T7",
"brief": "STMicroelectronics Microcontrollers (MCU/MPU/SOC), LQFP-32(7x7). Pinout checked against ST's open pin data, KiCad symbol/footprint/3D.",
"version": "0.1.2",
"license": "CC-BY-SA-4.0",
"tags": [
"component",
"mcu",
"stm32g031k8t7"
],
"component": {
"mpn": "STM32G031K8T7",
"manufacturer": "STMicroelectronics",
"package": "LQFP-32(7x7)",
"pin_count": 32,
"category": "MCU",
"subcategory": "Microcontrollers (MCU/MPU/SOC)",
"datasheet": "https://www.st.com/resource/en/datasheet/stm32g031k8t7.pdf",
"parts": {
"symbol": "stm32g031k8t7.kicad_sym",
"footprint": "stm32g031k8t7.kicad_mod",
"model_3d": "stm32g031k8t7-hero.glb",
"model_3d_plain": "stm32g031k8t7.glb",
"model_3d_step": "stm32g031k8t7-etched.step",
"model_3d_step_plain": "stm32g031k8t7.step",
"lbr": "stm32g031k8t7.lbr"
},
"distributor_links": {},
"pins": [
{
"number": "1",
"name": "PB9",
"type": "bidirectional",
"description": "General-purpose I/O PB9 (FT_f). Alternate functions: IR_OUT, TIM17_CH1, SPI2_NSS, I2C1_SDA, EVENTOUT."
},
{
"number": "2",
"name": "PC14-OSC32_IN",
"type": "bidirectional",
"description": "GPIO PC14, alternately the LSE 32.768 kHz crystal input (OSC32_IN). FT I/O supplied through the RTC-domain power switch (limited 3 mA sink)."
},
{
"number": "3",
"name": "PC15-OSC32_OUT",
"type": "bidirectional",
"description": "GPIO PC15, alternately the LSE 32.768 kHz crystal output (OSC32_OUT). Also carries OSC32_EN / OSC_EN alt functions."
},
{
"number": "4",
"name": "VDD/VDDA",
"type": "power_in",
"description": "Combined digital and analog supply, 1.7 V to 3.6 V. Decouple with 100 nF near the pin and a bulk 4.7 uF on the rail."
},
{
"number": "5",
"name": "VSS/VSSA",
"type": "power_in",
"description": "Combined digital and analog ground return."
},
{
"number": "6",
"name": "PF2-NRST",
"type": "bidirectional",
"description": "Bidirectional active-low system reset (NRST) with internal pull-up. Can be reconfigured as GPIO PF2 (alt function MCO)."
},
{
"number": "7",
"name": "PA0",
"type": "bidirectional",
"description": "GPIO PA0 (FT_a). ADC_IN0 / TAMP_IN2 / WKUP1; AF SPI2_SCK, USART2_CTS, TIM2_CH1_ETR, LPTIM1_OUT."
},
{
"number": "8",
"name": "PA1",
"type": "bidirectional",
"description": "GPIO PA1 (FT_ea). ADC_IN1; AF SPI1_SCK/I2S1_CK, USART2_RTS_DE_CK, TIM2_CH2, I2C1_SMBA, EVENTOUT."
},
{
"number": "9",
"name": "PA2",
"type": "bidirectional",
"description": "GPIO PA2 (FT_a). ADC_IN2 / WKUP4 / LSCO; AF SPI1_MOSI/I2S1_SD, USART2_TX, TIM2_CH3, LPUART1_TX."
},
{
"number": "10",
"name": "PA3",
"type": "bidirectional",
"description": "GPIO PA3 (FT_ea). ADC_IN3; AF SPI2_MISO, USART2_RX, TIM2_CH4, LPUART1_RX, EVENTOUT."
},
{
"number": "11",
"name": "PA4",
"type": "bidirectional",
"description": "GPIO PA4 (FT_a). ADC_IN4, RTC_OUT2; AF SPI1_NSS/I2S1_WS, SPI2_MOSI, TIM14_CH1, LPTIM2_OUT, EVENTOUT."
},
{
"number": "12",
"name": "PA5",
"type": "bidirectional",
"description": "GPIO PA5 (FT_ea). ADC_IN5; AF SPI1_SCK/I2S1_CK, TIM2_CH1_ETR, LPTIM2_ETR, EVENTOUT."
},
{
"number": "13",
"name": "PA6",
"type": "bidirectional",
"description": "GPIO PA6 (FT_ea). ADC_IN6; AF SPI1_MISO/I2S1_MCK, TIM3_CH1, TIM1_BKIN, TIM16_CH1, LPUART1_CTS."
},
{
"number": "14",
"name": "PA7",
"type": "bidirectional",
"description": "GPIO PA7 (FT_a). ADC_IN7; AF SPI1_MOSI/I2S1_SD, TIM3_CH2, TIM1_CH1N, TIM14_CH1, TIM17_CH1."
},
{
"number": "15",
"name": "PB0",
"type": "bidirectional",
"description": "GPIO PB0 (FT_ea). ADC_IN8; AF SPI1_NSS/I2S1_WS, TIM3_CH3, TIM1_CH2N, LPTIM1_OUT."
},
{
"number": "16",
"name": "PB1",
"type": "bidirectional",
"description": "GPIO PB1 (FT_ea). ADC_IN9; AF TIM14_CH1, TIM3_CH4, TIM1_CH3N, LPTIM2_IN1, LPUART1_RTS_DE, EVENTOUT."
},
{
"number": "17",
"name": "PB2",
"type": "bidirectional",
"description": "GPIO PB2 (FT_ea). ADC_IN10; AF SPI2_MISO, LPTIM1_OUT, EVENTOUT."
},
{
"number": "18",
"name": "PA8",
"type": "bidirectional",
"description": "GPIO PA8 (FT). AF MCO, SPI2_NSS, TIM1_CH1, LPTIM2_OUT, EVENTOUT."
},
{
"number": "19",
"name": "PA9",
"type": "bidirectional",
"description": "GPIO PA9 (FT_f, 5V-tolerant Fm+). AF MCO, USART1_TX, TIM1_CH2, SPI2_MISO, I2C1_SCL, EVENTOUT."
},
{
"number": "20",
"name": "PC6",
"type": "bidirectional",
"description": "GPIO PC6 (FT). AF TIM3_CH1, TIM2_CH3."
},
{
"number": "21",
"name": "PA10",
"type": "bidirectional",
"description": "GPIO PA10 (FT_f). AF SPI2_MOSI, USART1_RX, TIM1_CH3, TIM17_BK, I2C1_SDA, EVENTOUT."
},
{
"number": "22",
"name": "PA11 [PA9]",
"type": "bidirectional",
"description": "GPIO PA11 with SYSCFG remap option to appear as PA9 (FT_fa). ADC_IN15; AF SPI1_MISO/I2S1_MCK, USART1_CTS, TIM1_CH4, TIM1_BK2, I2C2_SCL."
},
{
"number": "23",
"name": "PA12 [PA10]",
"type": "bidirectional",
"description": "GPIO PA12 with SYSCFG remap option to appear as PA10 (FT_fa). ADC_IN16; AF SPI1_MOSI/I2S1_SD, USART1_RTS_DE_CK, TIM1_ETR, I2S_CKIN, I2C2_SDA."
},
{
"number": "24",
"name": "PA13",
"type": "bidirectional",
"description": "GPIO PA13 (FT_ea) defaulting to SWDIO after reset with internal pull-up. ADC_IN17; also IR_OUT, EVENTOUT."
},
{
"number": "25",
"name": "PA14-BOOT0",
"type": "bidirectional",
"description": "GPIO PA14 (FT_a) defaulting to SWCLK after reset with internal pull-down. Doubles as BOOT0 sample input and ADC_IN18; AF SWCLK, USART2_TX, EVENTOUT."
},
{
"number": "26",
"name": "PA15",
"type": "bidirectional",
"description": "GPIO PA15 (FT). AF SPI1_NSS/I2S1_WS, USART2_RX, TIM2_CH1_ETR, EVENTOUT."
},
{
"number": "27",
"name": "PB3",
"type": "bidirectional",
"description": "GPIO PB3 (FT). AF SPI1_SCK/I2S1_CK, TIM1_CH2, TIM2_CH2, USART1_RTS_DE_CK, EVENTOUT."
},
{
"number": "28",
"name": "PB4",
"type": "bidirectional",
"description": "GPIO PB4 (FT). AF SPI1_MISO/I2S1_MCK, TIM3_CH1, USART1_CTS, TIM17_BK, EVENTOUT."
},
{
"number": "29",
"name": "PB5",
"type": "bidirectional",
"description": "GPIO PB5 (FT) with WKUP6. AF SPI1_MOSI/I2S1_SD, TIM3_CH2, TIM16_BK, LPTIM1_IN1, I2C1_SMBA."
},
{
"number": "30",
"name": "PB6",
"type": "bidirectional",
"description": "GPIO PB6 (FT_f, 5V-tolerant Fm+). AF USART1_TX, TIM1_CH3, TIM16_CH1N, SPI2_MISO, LPTIM1_ETR, I2C1_SCL, EVENTOUT."
},
{
"number": "31",
"name": "PB7",
"type": "bidirectional",
"description": "GPIO PB7 (FT_f, 5V-tolerant Fm+) with PVD_IN. AF USART1_RX, SPI2_MOSI, TIM17_CH1N, LPTIM1_IN2, I2C1_SDA, EVENTOUT."
},
{
"number": "32",
"name": "PB8",
"type": "bidirectional",
"description": "GPIO PB8 (FT_f, 5V-tolerant Fm+). AF SPI2_SCK, TIM16_CH1, I2C1_SCL, EVENTOUT."
}
],
"provenance": {
"extractor": "ds2sf",
"datasheet": {
"url": "https://www.st.com/resource/en/datasheet/stm32g031k8t7.pdf",
"pages": 117,
"sha256": "0fc5e46abdba3d02",
"source_tier": "mfr"
},
"cad": "KiCad official (CC-BY-SA 4.0)",
"pins": {
"total": 32,
"described": 32,
"cites_pages": true,
"refuses_to_fabricate": true
}
},
"viewers": {
"symbol": "viewers/symbol.html",
"footprint": "viewers/footprint.html"
},
"mcu": {
"part_number": "STM32G031K8T7",
"series": "STM32G0",
"subfamily": "STM32G031",
"core": "Arm Cortex-M0+",
"frequency_mhz": 64,
"flash_kb": 64,
"ram_kb": 8,
"io_count": 29,
"package": "LQFP 32 7x7x1.4 mm",
"marketing_status": "Active",
"fpu": null,
"supply_v_min": 1.7,
"supply_v_max": 3.6,
"temp_min_c": -40,
"temp_max_c": 105,
"adc_count": 1,
"timers": 5,
"in_distributor_stock": true,
"product_folder": "/en/microcontrollers-microprocessors/stm32g031k8.html",
"source": "st.com portfolio grid CL1734"
},
"models_3d": [
{
"file": "stm32g031k8t7.step",
"role": "plain",
"up": "Z",
"units": "mm",
"origin": "footprint origin = pad-pattern centre",
"seat": "z = 0",
"extents_mm": [
9,
9,
1.5
],
"zmin_mm": 0,
"centre_offset_mm": 0,
"footprint_binding": "identity",
"sha256": "be0e412f1c66fee70039b0e109e0cc7c823161dda97593718afa97569bc61ce3",
"checked": "2026-10-07",
"checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"
},
{
"file": "stm32g031k8t7-etched.step",
"role": "eda",
"up": "Z",
"units": "mm",
"origin": "footprint origin = pad-pattern centre",
"seat": "z = 0",
"extents_mm": [
9,
9,
1.5
],
"zmin_mm": 0,
"centre_offset_mm": 0,
"footprint_binding": "identity",
"sha256": "46f9b27f407936562d228f7b3da1a2a4ac54c291749d889846af1ef1dc7510ce",
"checked": "2026-11-12",
"checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"
}
]
},
"metadata": {
"specs": {
"Core": "Arm Cortex-M0+",
"Max clock": "64 MHz",
"Flash": "64 kB",
"RAM": "8 kB",
"I/O pins": 29,
"ADC units": 1,
"ST status": "Active",
"Manufacturer": "STMicroelectronics",
"Package": "LQFP-32(7x7)",
"Category": "MCU",
"Pins": "32"
}
},
"sections": [
"hero",
"viewers",
"readme",
"breadcrumbs",
"info"
],
"discovery_triggers": [
"stm32g031k8t7"
],
"discovery_pitch": "STM32G031K8T7 (STMicroelectronics) component page with datasheet-verified CAD.",
"author": {
"name": "Ray"
},
"dependencies": {},
"hero": {
"type": "image",
"path": "docs/hero.png"
},
"files": [
"page.json",
"README.md",
"stm32g031k8t7.kicad_sym",
"stm32g031k8t7.kicad_mod",
"stm32g031k8t7.glb",
"stm32g031k8t7.step",
"stm32g031k8t7.lbr",
"docs/hero.png",
"docs/stm32g031k8t7-datasheet.pdf",
"viewers/symbol.html",
"viewers/footprint.html",
"stm32g031k8t7-etched.glb",
"stm32g031k8t7-etched.step",
"stm32g031k8t7-hero.glb",
"stm32g031k8t7-hero.overlay.json"
],
"visibility": "public",
"variants": [
{
"mpn": "STM32G031K8T7",
"kind": "packaging"
},
{
"mpn": "STM32G031K8T7K8U",
"kind": "packaging"
},
{
"mpn": "STM32G031K8T7G8U",
"kind": "packaging"
},
{
"mpn": "STM32G031K8T7F8P",
"kind": "packaging"
},
{
"mpn": "STM32G031K8T7Y8",
"kind": "packaging"
},
{
"mpn": "STM32G031K8T7C8T",
"kind": "packaging"
},
{
"mpn": "STM32G031K8T7C8U",
"kind": "packaging"
},
{
"mpn": "STM32G031K8T7J8M",
"kind": "packaging"
}
],
"updated_at": "2026-09-25T08:49:53.956Z",
"description": "STMicroelectronics Microcontrollers (MCU/MPU/SOC), LQFP-32(7x7). Datasheet-verified pinout, KiCad symbol/footprint/3D.",
"org": "adom"
}