Pinouts and pin descriptions
STM32F042x4 STM32F042x6
34/117
DocID025832 Rev 5
26
-
-
-
-
-
PB13
I/O
FTf
-
SPI2_SCK,
TIM1_CH1N,
I2C1_SCL
-
27
-
-
-
-
-
PB14
I/O
FTf
-
SPI2_MISO,
TIM1_CH2N,
I2C1_SDA
-
28
-
-
-
-
-
PB15
I/O
FT
-
SPI2_MOSI,
TIM1_CH3N
WKUP7,
RTC_REFIN
29
E2
18
18
-
-
PA8
I/O
FT
(4)
USART1_CK,
TIM1_CH1,
EVENTOUT, MCO,
CRS_SYNC
-
30
D1
19
19
19
17
PA9
I/O
FTf
USART1_TX,
TIM1_CH2,
TSC_G4_IO1,
I2C1_SCL
-
31
C1
20
20
20
18
PA10
I/O
FTf
USART1_RX,
TIM1_CH3,
TIM17_BKIN,
TSC_G4_IO2,
I2C1_SDA
-
32
C2
21
21 19
(5)
17
PA11
I/O
FTf
CAN_RX,
USART1_CTS,
TIM1_CH4,
TSC_G4_IO3,
EVENTOUT,
I2C1_SCL
USB_DM
33
A1
22
22 20
18
PA12
I/O
FTf
CAN_TX,USART1_RTS,
TIM1_ETR,
TSC_G4_IO4,
EVENTOUT,
I2C1_SDA
USB_DP
34
B1
23
23
21
19
PA13
I/O
FT
(4)
(6)
IR_OUT, SWDIO
USB_NOE
-
35
-
-
-
-
-
VSS
S
-
-
Ground
36
E1
17
17
18
16
VDDIO2
S
-
-
Digital power supply
37
B2
24
24
22
20
PA14
I/O
FT
USART2_TX, SWCLK
-
Table 13. STM32F042x pin definitions (continued)
Pin numbers
Pin name
(function upon
reset)
Pin
type
I/O st
ru
ct
ure
Notes
Pin functions
L
Q
F
P
48/UF
QF
PN
48
WLCSP36
LQ
FP3
2
UFQFPN32
UFQFPN28
TS
SPOP20
Alternate function
Additional
functions