Table 264. Swj Debug Port Pins; Table 265. Flexible Swj-Dp Pin Assignment - ST STM32L4x6 Reference Manual

Table of Contents

Advertisement

Debug support (DBG)
44.4.1
SWJ debug port pins
Five pins are used as outputs from the STM32L4x6 for the SWJ-DP as alternate functions of
general-purpose I/Os. These pins are available on all packages.
SWJ-DP pin name
JTMS/SWDIO
JTCK/SWCLK
JTDI
JTDO/TRACESWO
NJTRST
44.4.2
Flexible SWJ-DP pin assignment
After RESET (SYSRESETn or PORESETn), all five pins used for the SWJ-DP are assigned
as dedicated pins immediately usable by the debugger host (note that the trace outputs are
not assigned except if explicitly programmed by the debugger host).
However, the STM32L4x6 MCUs offer the possibility of disabling some or all of the SWJ-DP
ports, and therefore the possibility of releasing the associated pins for general-purpose I/O
(GPIO) usage. For more details on how to disable SWJ-DP port pins, please refer to
Section 7.3.2: I/O pin alternate function multiplexer and
Full SWJ (JTAG-DP + SW-DP) - Reset State
Full SWJ (JTAG-DP + SW-DP) but without NJTRST
JTAG-DP disabled and SW-DP enabled
JTAG-DP disabled and SW-DP disabled
Note:
When the APB bridge write buffer is full, it takes one extra APB cycle when writing the
AFIO_MAPR register. This is because the deactivation of the JTAGSW pins is done in two
cycles to guarantee a clean level on the nTRST and TCK input signals of the core.
Cycle 1: the JTAGSW input signals to the core are tied to 1 or 0 (to 1 for nTRST, TDI
and TMS, to 0 for TCK)
Cycle 2: the GPIO controller takes the control signals of the SWJTAG IO pins (like
controls of direction, pull-up/down, Schmitt trigger activation, etc.).
1648/1693

Table 264. SWJ debug port pins

JTAG debug port
Type
Description
JTAG Test Mode
I
Selection
I
JTAG Test Clock
I
JTAG Test Data Input
O
JTAG Test Data Output
I
JTAG Test nReset

Table 265. Flexible SWJ-DP pin assignment

Available debug ports
DocID024597 Rev 3
SW debug port
Type
Debug assignment
Serial Wire Data
IO
Input/Output
I
Serial Wire Clock
-
-
TRACESWO if
-
asynchronous trace is
enabled
-
-
mapping.
SWJ IO pin assigned
PA13 /
PA14 /
PA15 /
JTMS/
JTCK/
JTDI
SWDIO
SWCLK
X
X
X
X
X
X
X
X
Released
RM0351
Pin
assign
ment
PA13
PA14
PA15
PB3
PB4
PB3 /
PB4/
JTDO
NJTRST
X
X
X

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32L4x6 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents

Save PDF