Development boards
NUCLEO-F042K6 pinout
nucleo-32 · STM32F042K6T6
Open in the interactive atlas →See the pin map, choose functions and save a wiring plan.Türkçe
UM1956 Rev 6 · MB1180 CN3/CN4. I/O uses 3.3 V. Check pin notes for A4/A5 and D4/D5 I²C bridges, oscillator and VCP connections.
At a glance
- Platform / manufacturer
- STM32
- Type
- Development boards
- MCU
- STM32F042K6T6
- Physical contacts
- 30
- GPIO
- 22
- I/O voltage
- 3.3 V I/O
- Interfaces (pin count)
- I²C (9) · SPI (7) · UART (12) · CAN (2) · USB (3) · ADC (10) · PWM (19) · CLOCK (3) · I2S (7) · SYSTEM (21) · TIMER (7)
- Power and logic level
- Board GPIO: 3.3 V. Select USB / external power using the jumper and bridge conditions in the board manual. [a] [b] [c]
- MCU datasheet initial publication
- 2014-02-25 [b]
- Pin sources checked
- 2026-11-15
- Technical details reviewed
- 2026-11-14
All pins (30)
| Physical | Pin name | Type | Functions | Notes and warnings | Source |
|---|---|---|---|---|---|
| CN3.1 | PA9Board label D1 · MCU pin 19 | General-purpose I/O | I2C1_SCL AF4TIM1_CH2 AF2TSC_G4_IO1 AF3USART1_TX AF1 | — | [1] [2] [3] |
| CN3.2 | PA10Board label D0 · MCU pin 20 | General-purpose I/O | I2C1_SDA AF4TIM17_BKIN AF0TIM1_CH3 AF2TSC_G4_IO2 AF3USART1_RX AF1 | — | [1] [2] [3] |
| CN3.3 | NRSTBoard label RESET · MCU pin 4 | System | — | — | [1] [2] [3] |
| CN3.4 | GND | Ground | — | — | [1] [2] |
| CN3.5 | PA12Board label D2 · MCU pin 22 | General-purpose I/O | CAN_TX AF4I2C1_SDA AF5TIM1_ETR AF2TSC_G4_IO4 AF3USART1_DE AF1USART1_RTS AF1USB_DP | — | [1] [2] [3] |
| CN3.6 | PB0Board label D3 · MCU pin 14 | General-purpose I/O | ADC_IN8TIM1_CH2N AF2TIM3_CH3 AF1TSC_G3_IO2 AF3 | — | [1] [2] [3] |
| CN3.7 | PB7Board label D4 · MCU pin 30 | General-purpose I/O | I2C1_SDA AF1TIM17_CH1N AF2TSC_G5_IO4 AF3USART1_RX AF0 | SB16 links A5 to D5/PB6; SB18 links A4 to D4/PB7. With a bridge ON, PA6/PA5 must be floating inputs and D5/D4 cannot be independent GPIOs. A5/A4 functions follow the applied board configuration. Source: [4] | [1] [2] [3] [4] |
| CN3.8 | PB6Board label D5 · MCU pin 29 | General-purpose I/O | I2C1_SCL AF1TIM16_CH1N AF2TSC_G5_IO3 AF3USART1_TX AF0 | SB16 links A5 to D5/PB6; SB18 links A4 to D4/PB7. With a bridge ON, PA6/PA5 must be floating inputs and D5/D4 cannot be independent GPIOs. A5/A4 functions follow the applied board configuration. Source: [4] | [1] [2] [3] [4] |
| CN3.9 | PB1Board label D6 · MCU pin 15 | General-purpose I/O | ADC_IN9TIM14_CH1 AF0TIM1_CH3N AF2TIM3_CH4 AF1TSC_G3_IO3 AF3 | — | [1] [2] [3] |
| CN3.10 | PF0Board label D7 · MCU pin 2 | General-purpose I/O | CRS_SYNC AF0I2C1_SDA AF1RCC_OSC_IN | D7/D8 share oscillator connections. Check this model's clock source and solder bridges before GPIO use. Source: [4] This pad is shared with an oscillator. Release the corresponding clock source and circuit connection before using it as GPIO. | [1] [2] [3] [4] |
| CN3.11 | PF1Board label D8 · MCU pin 3 | General-purpose I/O | I2C1_SCL AF1RCC_OSC_OUT | D7/D8 share oscillator connections. Check this model's clock source and solder bridges before GPIO use. Source: [4] This pad is shared with an oscillator. Release the corresponding clock source and circuit connection before using it as GPIO. | [1] [2] [3] [4] |
| CN3.12 | PA8Board label D9 · MCU pin 18 | General-purpose I/O | CRS_SYNC AF4RCC_MCO AF0TIM1_CH1 AF2USART1_CK AF1 | — | [1] [2] [3] |
| CN3.13 | PA11Board label D10 · MCU pin 21 | General-purpose I/O | CAN_RX AF4I2C1_SCL AF5TIM1_CH4 AF2TSC_G4_IO3 AF3USART1_CTS AF1USB_DM | — | [1] [2] [3] |
| CN3.14 | PB5Board label D11 · MCU pin 28 | General-purpose I/O | I2C1_SMBA AF3I2S1_SD AF0SPI1_MOSI AF0SYS_WKUP6TIM16_BKIN AF2TIM3_CH2 AF1 | — | [1] [2] [3] |
| CN3.15 | PB4Board label D12 · MCU pin 27 | General-purpose I/O | I2S1_MCK AF0SPI1_MISO AF0TIM17_BKIN AF5TIM3_CH1 AF1TSC_G5_IO2 AF3 | — | [1] [2] [3] |
| CN4.1 | VIN | Power | — | — | [1] [2] |
| CN4.2 | GND | Ground | — | — | [1] [2] |
| CN4.3 | NRSTBoard label RESET · MCU pin 4 | System | — | — | [1] [2] [3] |
| CN4.4 | +5V | Power | — | — | [1] [2] |
| CN4.5 | PA2Board label A7 · MCU pin 8 | General-purpose I/O | ADC_IN2SYS_WKUP4TIM2_CH3 AF2TSC_G1_IO3 AF3USART2_TX AF1 | PA2/A7 shares ST-LINK VCP TX through SB2. Using A7 as an analog input requires SB2 OFF. Source: [4] | [1] [2] [3] [4] |
| CN4.6 | PA7Board label A6 · MCU pin 13 | General-purpose I/O | ADC_IN7I2S1_SD AF0SPI1_MOSI AF0TIM14_CH1 AF4TIM17_CH1 AF5TIM1_CH1N AF2TIM3_CH2 AF1TSC_G2_IO4 AF3 | — | [1] [2] [3] |
| CN4.7 | PA6Board label A5 · MCU pin 12 | General-purpose I/O | ADC_IN6I2S1_MCK AF0SPI1_MISO AF0TIM16_CH1 AF5TIM1_BKIN AF2TIM3_CH1 AF1TSC_G2_IO3 AF3 | SB16 links A5 to D5/PB6; SB18 links A4 to D4/PB7. With a bridge ON, PA6/PA5 must be floating inputs and D5/D4 cannot be independent GPIOs. A5/A4 functions follow the applied board configuration. Source: [4] | [1] [2] [3] [4] |
| CN4.8 | PA5Board label A4 · MCU pin 11 | General-purpose I/O | ADC_IN5CEC AF1I2S1_CK AF0SPI1_SCK AF0TIM2_CH1 AF2TIM2_ETR AF2TSC_G2_IO2 AF3 | SB16 links A5 to D5/PB6; SB18 links A4 to D4/PB7. With a bridge ON, PA6/PA5 must be floating inputs and D5/D4 cannot be independent GPIOs. A5/A4 functions follow the applied board configuration. Source: [4] | [1] [2] [3] [4] |
| CN4.9 | PA4Board label A3 · MCU pin 10 | General-purpose I/O | ADC_IN4I2S1_WS AF0SPI1_NSS AF0TIM14_CH1 AF4TSC_G2_IO1 AF3USART2_CK AF1USB_NOE AF2 | — | [1] [2] [3] |
| CN4.10 | PA3Board label A2 · MCU pin 9 | General-purpose I/O | ADC_IN3TIM2_CH4 AF2TSC_G1_IO4 AF3USART2_RX AF1 | — | [1] [2] [3] |
| CN4.11 | PA1Board label A1 · MCU pin 7 | General-purpose I/O | ADC_IN1TIM2_CH2 AF2TSC_G1_IO2 AF3USART2_DE AF1USART2_RTS AF1 | — | [1] [2] [3] |
| CN4.12 | PA0Board label A0 · MCU pin 6 | General-purpose I/O | ADC_IN0RTC_TAMP2SYS_WKUP1TIM2_CH1 AF2TIM2_ETR AF2TSC_G1_IO1 AF3USART2_CTS AF1 | — | [1] [2] [3] |
| CN4.13 | AREF | Power | — | CN4.13 is the external analog reference depending on SB10. Check the VREF+ connection to VDD. Source: [4] | [1] [2] [4] |
| CN4.14 | +3V3 | Power | — | — | [1] [2] |
| CN4.15 | PB3Board label D13 · MCU pin 26 | General-purpose I/O | I2S1_CK AF0SPI1_SCK AF0TIM2_CH2 AF2TSC_G5_IO1 AF3 | PB3/D13 shares the LD3 user LED through SB15. Source: [4] | [1] [2] [3] [4] |
General usage notes
GPIO pad in this package. Configure alternate functions, analog mode and peripherals in firmware; consult the manufacturer datasheet for electrical limits.
Model-specific features and connection notes
- On-board ST-LINK provides programming/debugging. Arduino headers, Morpho contacts and MCU pads use separate numbering; solder bridges may affect access to the same net. [c]
Sources
Pin and warning references
- STM32 Nucleo-32 boards MB1180 · UM1956 Rev 6 · PDF p. 24UM1956 Rev 6 · Table 10 · CN3/CN4 contacts
- STM32 Nucleo-32 boards MB1180 · UM1956 Rev 6 · PDF p. 12Figure 3 · MB1180 top view; CN3 left and CN4 right
- F042K6 CubeMX package dataLQFP32 numbered package pins and physical signals
- STM32 Nucleo-32 boards MB1180 · UM1956 Rev 6 · PDF p. 21Tables 7/8 (continued on p.22) · VCP, SB16/SB18, clocks and LED
Technical sources (3)
- F042K6 specificationsSTMicroelectronics · Product overview · exact part; memory and core features
- F042K6 datasheetSTMicroelectronics · Features; device summary / ordering code; memory map; revision history; revision history: initial release 2014-02-25
- STM32 Nucleo-32 boards MB1180 · UM1956 Rev 6STMicroelectronics · Locked pin-source document; see sources/manifest.json for revision and SHA-256
Locked source documents
- F042K6 CubeMX package dataSTMicroelectronics · 7d1f1514ed5583ec5007ad91236b4e1d377295b1
- STM32F042_gpio_v1_0 GPIO alternate functionsSTMicroelectronics · 7d1f1514ed5583ec5007ad91236b4e1d377295b1
- STM32 Nucleo-32 boards MB1180 · UM1956 Rev 6STMicroelectronics · UM1956 Rev 6 · March 2025
More STM32 profiles
- STM32 Blue Pill
- WeAct Black Pill F401CC v3.x
- WeAct Black Pill F411CE v3.x
- NUCLEO-L432KC
- NUCLEO-F072RB
- NUCLEO-F103RB
- NUCLEO-F303RE
- NUCLEO-F401RE
- NUCLEO-F411RE
- NUCLEO-F446RE
- NUCLEO-G474RE
- NUCLEO-L053R8
- NUCLEO-L152RE
- NUCLEO-L476RG
- NUCLEO-F767ZI
- NUCLEO-H723ZG
- NUCLEO-H743ZI2
- STM32F401CCU6
- STM32F411CEU6
- STM32H743ZIT6
- STM32F767ZIT6
- STM32F042K6T6
- STM32L432KCU6
- STM32F103C8T6
- STM32F103RBT6
- STM32F103VBT6
- STM32F401RET6
- STM32F411RET6
- STM32G474RET6
- STM32H723ZGT6
- STM32F446RET6
- STM32L476RGT6
- STM32F072RBT6
- STM32L053R8T6
- STM32L152RET6
- STM32F407VGT6
- STM32F405RGT6
- STM32F303RET6