Debug support (DBG)
31.2
Reference ARM documentation
●
Cortex™-M3 r1p1 Technical Reference Manual (TRM)
It is available from:
http://infocenter.arm.com/help/topic/com.arm.doc.ddi0337e/DDI0337E_cortex_m3_r1p1_trm.pdf
●
ARM Debug Interface V5
●
ARM CoreSight Design Kit revision r1p1 Technical Reference Manual
31.3
SWJ debug port (serial wire and JTAG)
The STM32F10xxx core integrates the Serial Wire / JTAG Debug Port (SWJ-DP). It is an
ARM standard CoreSight debug port that combines a JTAG-DP (5-pin) interface and a SW-
DP (2-pin) interface.
●
The JTAG Debug Port (JTAG-DP) provides a 5-pin standard JTAG interface to the AHP-
AP port.
●
The Serial Wire Debug Port (SW-DP) provides a 2-pin (clock + data) interface to the
AHP-AP port.
In the SWJ-DP, the two JTAG pins of the SW-DP are multiplexed with some of the five JTAG
pins of the JTAG-DP.
Figure 360. SWJ debug port
JTMS/SWDIO
JTCK/SWCLK
Figure 360
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.
1050/1096
TRACESWO
SWJ-DP
JTDO
TDO
TDI
JTDI
nTRST
NJTRST
SWDITMS
SWDO
SWDOEN
SWCLKTCK
shows that the asynchronous TRACE output (TRACESWO) is multiplexed with
Doc ID 13902 Rev 12
(asynchronous trace)
SWD/JTAG
select
TDO
TDI
nTRST
JTAG-DP
TCK
TMS
nPOTRST
nPOTRST
DBGRESETn
DBGDI
DBGDO
SW-DP
DBGDOEN
DBGCLK
RM0008
From
power-on
reset
ai17139