Debug support (DBG)
RM0365
1039/1080
DocID025202 Rev 7
Figure 396. SWJ debug port
shows that the asynchronous TRACE output (TRACESWO) is multiplexed with
TDO. This means that the asynchronous trace can only be used with SW-DP, not JTAG-DP.
33.3.1 Mechanism
to
select
the JTAG-DP or the SW-DP
By default, the JTAG-Debug Port is active.
If the debugger host wants to switch to the SW-DP, it must provide a dedicated JTAG
sequence on TMS/TCK (respectively mapped to SWDIO and SWCLK) which disables the
JTAG-DP and enables the SW-DP. This way it is possible to activate the SWDP using only
the SWCLK and SWDIO pins.
This sequence is:
1.
Send more than 50 TCK cycles with TMS (SWDIO) =1
2. Send the 16-bit sequence on TMS (SWDIO) = 0111100111100111 (MSB transmitted
first)
3. Send more than 50 TCK cycles with TMS (SWDIO) =1
33.4
Pinout and debug port pins
The STM32F302xx MCUs are available in various packages with different numbers of
available pins. As a result, some functionality (ETM) related to pin availability may differ
between packages.
75$&(6:2
-7'2
-7',
1-7567
Q7567
7',
7'2
6:-'3
7'2
7',
Q7567
7&.
706
Q327567
-7$*'3
Q327567
)URP
SRZHURQ
UHVHW
'%*5(6(7Q
'%*',
'%*'2
'%*'2(1
'%*&/.
6:'3
6:&/.7&.
6:'2(1
6:'2
6:',706
6:'-7$*
VHOHFW
-7066:',2
-7&.6:&/.
DV\QFKURQRXVWUDFH
DL