Pinouts and pin descriptions
STM32F042xx
DocID025832 Rev 2
37
B2
24
24
22
20
PA14
I/O
FT
USART2_TX, SWCLK
-
38
A2
25
25
23
-
PA15
I/O
FT
SPI1_NSS, I2S1_WS,
USART2_RX,
TIM2_CH1_ETR,
EVENTOUT,
USB_NOE
-
39
B3
26
26
24
-
PB3
I/O
FT
-
SPI1_SCK, I2S1_CK,
TIM2_CH2,
TSC_G5_IO1,
EVENTOUT
-
40
A3
27
27
25
-
PB4
I/O
FT
-
SPI1_MISO, I2S1_MCK,
TIM17_BKIN,
TIM3_CH1,
TSC_G5_IO2,
EVENTOUT
-
41
E6
28
28
26
-
PB5
I/O
FT
-
SPI1_MOSI, I2S1_SD,
I2C1_SMBA,
TIM16_BKIN,
TIM3_CH2
WKUP6
42
C4
29
29
27
-
PB6
I/O
FTf
-
I2C1_SCL,
USART1_TX,
TIM16_CH1N,
TSC_G5_I03
-
43
A4
30
30
28
-
PB7
I/O
FTf
-
I2C1_SDA,
USART1_RX,
USART4_CTS,
TIM17_CH1N,
TSC_G5_IO4
-
44
-
-
31
-
-
PF11
BOOT0
I/O
FT
-
-
Boot memory
selection
-
B4
31
-
1
1
PB8
BOOT0
I/O
FTf
-
I2C1_SCL, CEC,
TIM16_CH1,
TSC_SYNC,
CAN_RX
Boot memory
selection
45
-
-
32
-
-
PB8
I/O
FTf
-
I2C1_SCL, CEC,
TIM16_CH1,
TSC_SYNC,
CAN_RX
-
Table 13. STM32F042x pin definitions (continued)
Pin numbers
Pin name
(function after
reset)
Pin
type
I/O structure
Notes
Pin functions
LQFP48/UFQFPN48
WLCSP36
LQFP32
UFQFPN32
UFQFPN28
TSSPOP20
Alternate function
Additional
functions