English
Language : 

RM0313 Datasheet, PDF (859/900 Pages) STMicroelectronics – This reference manual targets application developers
RM0313
Debug support (DBG)
*4$/
*4$)
.*4234
*4-337$)/
*4#+37#,+
Figure 291. SWJ debug port
42!#%37/ ASYNCHRONOUSTRACE
37* $0
4$/
4$)
N4234
4$/
4$)
N4234
4#+
*4!' $0
37$*4!'
SELECT
37$)4-3
37$/
37$/%.
37#,+4#+
4-3
N0/4234
N0/4234
$"'2%3%4N
&ROM
POWER ON
RESET
$"'$)
$"'$/
37 $0
$"'$/%.
$"'#,+
AI
Figure 291 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.
31.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
31.4
Pinout and debug port pins
The STM32F37xxx 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.
DocID022448 Rev 4
859/900
888