Generic F103RF

Below are the pins usable for the peripherals. Pins in bold are the default.

SPI

Instance MOSI MISO SCK
SPI1 11 (PA7), 4 (PB5) 12 (PA6), 5 (PB4) 13 (PA5), 3 (PB3)
SPI2 33 (PB15) 32 (PB14) 31 (PB13)
SPI3 4 (PB5) 5 (PB4) 3 (PB3)

I2C

Instance SDA SCL
I2C1 29 (PB7), 14 (PB9) 10 (PB6), 15 (PB8)
I2C2 PB11 6 (PB10)

USART

Instance RX TX
UART4 42 (PC11) 41 (PC10)
UART5 47 (PD2) 43 (PC12)
USART1 2 (PA10), 29 (PB7) 8 (PA9), 10 (PB6)
USART2 0 (PA3) 1 (PA2)
USART3 PB11, 42 (PC11) 6 (PB10), 41 (PC10)

I2S

Instance CK SD WS MCK
I2S2 31 (PB13) 33 (PB15) 30 (PB12) 38 (PC6)
I2S3 3 (PB3) 4 (PB5) 26 (PA15) 9 (PC7)

TIM

Instance CH1 CH2 CH3 CH4
TIM1 7 (PA8), 11 (PA7), 31 (PB13) 8 (PA9), 19 (PB0), 32 (PB14) 2 (PA10), 27 (PB1), 33 (PB15) 22 (PA11)
TIM2 16 (PA0), 26 (PA15) 17 (PA1), 3 (PB3) 1 (PA2), 6 (PB10) 0 (PA3), PB11
TIM3 12 (PA6), 5 (PB4), 38 (PC6) 11 (PA7), 4 (PB5), 9 (PC7) 19 (PB0), 39 (PC8) 27 (PB1), 40 (PC9)
TIM4 10 (PB6) 29 (PB7) 15 (PB8) 14 (PB9)
TIM5 16 (PA0) 17 (PA1) 1 (PA2) 0 (PA3)
TIM8 38 (PC6), 11 (PA7) 9 (PC7), 19 (PB0) 39 (PC8), 27 (PB1) 40 (PC9)
TIM9 1 (PA2) 0 (PA3)
TIM10 15 (PB8)
TIM11 14 (PB9)
TIM12 32 (PB14) 33 (PB15)
TIM13 12 (PA6)
TIM14 11 (PA7)

ADC

Instance Channel Pin
ADC1 IN0 16 (PA0)
ADC1 IN1 17 (PA1)
ADC1 IN2 1 (PA2)
ADC1 IN3 0 (PA3)
ADC1 IN4 18 (PA4)
ADC1 IN5 13 (PA5)
ADC1 IN6 12 (PA6)
ADC1 IN7 11 (PA7)
ADC1 IN8 19 (PB0)
ADC1 IN9 27 (PB1)
ADC1 IN10 21 (PC0)
ADC1 IN11 20 (PC1)
ADC1 IN12 34 (PC2)
ADC1 IN13 35 (PC3)
ADC1 IN14 36 (PC4)
ADC1 IN15 37 (PC5)
ADC2 IN0 16 (PA0)
ADC2 IN1 17 (PA1)
ADC2 IN2 1 (PA2)
ADC2 IN3 0 (PA3)
ADC2 IN4 18 (PA4)
ADC2 IN5 13 (PA5)
ADC2 IN6 12 (PA6)
ADC2 IN7 11 (PA7)
ADC2 IN8 19 (PB0)
ADC2 IN9 27 (PB1)
ADC2 IN10 21 (PC0)
ADC2 IN11 20 (PC1)
ADC2 IN12 34 (PC2)
ADC2 IN13 35 (PC3)
ADC2 IN14 36 (PC4)
ADC2 IN15 37 (PC5)
ADC3 IN0 16 (PA0)
ADC3 IN1 17 (PA1)
ADC3 IN2 1 (PA2)
ADC3 IN3 0 (PA3)
ADC3 IN10 21 (PC0)
ADC3 IN11 20 (PC1)
ADC3 IN12 34 (PC2)
ADC3 IN13 35 (PC3)

GPIO

Pin Peripheral signal available on the pin Board macro
0 (PA3) ADC1_IN3, ADC2_IN3, ADC3_IN3, TIM2_CH4, TIM5_CH4, TIM9_CH2, USART2_RX
1 (PA2) ADC1_IN2, ADC2_IN2, ADC3_IN2, TIM2_CH3, TIM5_CH3, TIM9_CH1, USART2_TX
2 (PA10) TIM1_CH3, USART1_RX
3 (PB3) I2S3_CK, SPI1_SCK, SPI3_SCK, SYS_JTDO-TRACESWO, TIM2_CH2
4 (PB5) I2C1_SMBA, I2S3_SD, SPI1_MOSI, SPI3_MOSI, TIM3_CH2
5 (PB4) SPI1_MISO, SPI3_MISO, SYS_NJTRST, TIM3_CH1
6 (PB10) I2C2_SCL, TIM2_CH3, USART3_TX
7 (PA8) RCC_MCO, TIM1_CH1, USART1_CK
8 (PA9) TIM1_CH2, USART1_TX
9 (PC7) I2S3_MCK, SDIO_D7, TIM3_CH2, TIM8_CH2
10 (PB6) I2C1_SCL, TIM4_CH1, USART1_TX
11 (PA7) ADC1_IN7, ADC2_IN7, SPI1_MOSI, TIM1_CH1N, TIM3_CH2, TIM8_CH1N, TIM14_CH1 MOSI
12 (PA6) ADC1_IN6, ADC2_IN6, SPI1_MISO, TIM1_BKIN, TIM3_CH1, TIM8_BKIN, TIM13_CH1 MISO
13 (PA5) ADC1_IN5, ADC2_IN5, DAC_OUT2, SPI1_SCK LED_BUILTIN, SCK
14 (PB9) CAN_TX, I2C1_SDA, SDIO_D5, TIM4_CH4, TIM11_CH1 SDA
15 (PB8) CAN_RX, I2C1_SCL, SDIO_D4, TIM4_CH3, TIM10_CH1 SCL
16 (PA0) ADC1_IN0, ADC2_IN0, ADC3_IN0, SYS_WKUP, TIM2_CH1, TIM2_ETR, TIM5_CH1, TIM8_ETR, USART2_CTS A0
17 (PA1) ADC1_IN1, ADC2_IN1, ADC3_IN1, TIM2_CH2, TIM5_CH2, USART2_RTS A1
18 (PA4) ADC1_IN4, ADC2_IN4, DAC_OUT1, SPI1_NSS, USART2_CK A2, SS
19 (PB0) ADC1_IN8, ADC2_IN8, TIM1_CH2N, TIM3_CH3, TIM8_CH2N A3
20 (PC1) ADC1_IN11, ADC2_IN11, ADC3_IN11 A4
21 (PC0) ADC1_IN10, ADC2_IN10, ADC3_IN10 A5
22 (PA11) CAN_RX, TIM1_CH4, USART1_CTS, USB_DM
23 (PA12) CAN_TX, TIM1_ETR, USART1_RTS, USB_DP
24 (PA13) SYS_JTMS-SWDIO
25 (PA14) SYS_JTCK-SWCLK
26 (PA15) I2S3_WS, SPI1_NSS, SPI3_NSS, SYS_JTDI, TIM2_CH1, TIM2_ETR
27 (PB1) ADC1_IN9, ADC2_IN9, TIM1_CH3N, TIM3_CH4, TIM8_CH3N
28 (PB2)
29 (PB7) I2C1_SDA, TIM4_CH2, USART1_RX
30 (PB12) I2C2_SMBA, I2S2_WS, SPI2_NSS, TIM1_BKIN, USART3_CK
31 (PB13) I2S2_CK, SPI2_SCK, TIM1_CH1N, USART3_CTS
32 (PB14) SPI2_MISO, TIM1_CH2N, TIM12_CH1, USART3_RTS
33 (PB15) I2S2_SD, SPI2_MOSI, TIM1_CH3N, TIM12_CH2
34 (PC2) ADC1_IN12, ADC2_IN12, ADC3_IN12
35 (PC3) ADC1_IN13, ADC2_IN13, ADC3_IN13
36 (PC4) ADC1_IN14, ADC2_IN14
37 (PC5) ADC1_IN15, ADC2_IN15
38 (PC6) I2S2_MCK, SDIO_D6, TIM3_CH1, TIM8_CH1
39 (PC8) SDIO_D0, TIM3_CH3, TIM8_CH3
40 (PC9) DAC_EXTI9, SDIO_D1, TIM3_CH4, TIM8_CH4
41 (PC10) SDIO_D2, UART4_TX, USART3_TX
42 (PC11) SDIO_D3, UART4_RX, USART3_RX
43 (PC12) SDIO_CK, UART5_TX, USART3_CK
44 (PC13) RTC_OUT, RTC_TAMPER
45 (PC14) RCC_OSC32_IN
46 (PC15) ADC1_EXTI15, ADC2_EXTI15, RCC_OSC32_OUT
47 (PD2) SDIO_CMD, TIM3_ETR, UART5_RX