
Debug support (DBG)
RM0008
1050/1096
Doc ID 13902 Rev 12
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
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.
TRACE
S
WO
JTDO
JTDI
NJTR
S
T
nTR
S
T
TDI
TDO
S
WJ-DP
TDO
TDI
nTR
S
T
TCK
TM
S
nPOTR
S
T
JTAG-DP
nPOTR
S
T
From
power-on
re
s
et
DBGRE
S
ETn
DBGDI
DBGDO
DBGDOEN
DBGCLK
S
W-DP
S
WCLKTCK
S
WDOEN
S
WDO
S
WDITM
S
S
WD/JTAG
s
elect
JTM
S
/
S
WDIO
JTCK/
S
WCLK
(
as
ynchrono
us
tr
a
ce)
a
i171
3
9