RM0008 General-purpose and alternate-function I/Os (GPIOs and AFIOs)
Doc ID 13902 Rev 12 171/1096
To optimize the number of free GPIOs during debugging, this mapping can be configured in
different ways by programming the SWJ_CFG[1:0] bits in the AF remap and debug I/O
configuration register (AFIO_MAPR). Refer to Table 3 7
9.3.6 ADC alternate function remapping
Refer to AF remap and debug I/O configuration register (AFIO_MAPR).
Table 37. Debug port mapping
SWJ _CFG
[2:0]
Available debug ports
SWJ I/O pin assigned
PA13 /
JTMS/
SWDIO
PA14 /
JTCK/S
WCLK
PA15 /
JTDI
PB3 / JTDO/
TRACE
SWO
PB4/
NJTRST
000
Full SWJ (JTAG-DP + SW-DP)
(Reset state)
XXX X X
001
Full SWJ (JTAG-DP + SW-DP)
but without NJTRST
XXX x free
010
JTAG-DP Disabled and
SW-DP Enabled
X X free free
(1)
1. Released only if not using asynchronous trace.
free
100
JTAG-DP Disabled and
SW-DP Disabled
free free free free free
Other Forbidden
Table 38. ADC1 external trigger injected conversion alternate function remapping
(1)
1. Remap available only for high-density and XL-density devices.
Alternate function ADC1_ETRGINJ_REMAP = 0 ADC1_ETRGINJ_REMAP = 1
ADC1 external trigger injected
conversion
ADC1 external trigger injected
conversion is connected to
EXTI15
ADC1 external trigger injected
conversion is connected to
TIM8_CH4
Table 39. ADC1 external trigger regular conversion alternate function remapping
(1)
1. Remap available only for high-density and XL-density devices.
Alternate function ADC1_ETRGREG_REMAP = 0 ADC1_ETRGREG_REMAP = 1
ADC1 external trigger regular
conversion
ADC1 external trigger regular
conversion is connected to
EXTI11
ADC1 external trigger regular
conversion is connected to
TIM8_TRGO
Table 40. ADC2 external trigger injected conversion alternate function remapping
(1)
1. Remap available only for high-density and XL-density devices.
Alternate function ADC2_ETRGINJ_REMAP = 0 ADC2_ETRGINJ_REMAP = 1
ADC2 external trigger injected
conversion
ADC2 external trigger injected
conversion is connected to
EXTI 15
ADC2 external trigger injected
conversion is connected to
TIM8_CH4