RM0432
56.16.7 OTG programming model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2240
57
Debug support (DBG) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2246
57.1
Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2246
57.2
Reference Arm
57.3
SWJ debug port (serial wire and JTAG) . . . . . . . . . . . . . . . . . . . . . . . . 2247
57.3.1
57.4
Pinout and debug port pins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2248
57.4.1
57.4.2
57.4.3
57.4.4
57.5
JTAG TAP connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2251
57.6
ID codes and locking mechanism . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2252
57.6.1
57.6.2
57.6.3
57.6.4
57.7
JTAG debug port . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2254
57.8
SW debug port . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2256
57.8.1
57.8.2
57.8.3
57.8.4
57.8.5
57.8.6
57.9
AHB-AP (AHB access port) - valid for both JTAG-DP
and SW-DP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2259
57.10 Core debug . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2260
57.11 Capability of the debugger host to connect under system reset . . . . . 2260
57.12 FPB (Flash patch breakpoint) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2261
57.13 DWT (data watchpoint trigger) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2261
57.14 ITM (instrumentation trace macrocell) . . . . . . . . . . . . . . . . . . . . . . . . . 2261
57.14.1 General description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2261
57.14.2 Time stamp packets, synchronization and overflow packets . . . . . . . 2262
57.15 ETM (Embedded trace macrocell) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2263
®
documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2247
Mechanism to select the JTAG-DP or the SW-DP . . . . . . . . . . . . . . . 2248
SWJ debug port pins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2249
Flexible SWJ-DP pin assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2249
Internal pull-up and pull-down on JTAG pins . . . . . . . . . . . . . . . . . . . 2250
Using serial wire and releasing the unused debug pins as GPIOs . . 2251
MCU device ID code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2253
Boundary scan TAP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2253
®
Cortex
-M4 TAP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2253
®
Cortex
-M4 JEDEC-106 ID code . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2254
SW protocol introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2256
SW protocol sequence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2256
SW DP state machine (reset, idle states, ID code) . . . . . . . . . . . . . . 2257
DP and AP read/write accesses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2257
SW-DP registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2258
SW-AP registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2259
RM0432 Rev 6
Contents
59/2301
60
Need help?
Do you have a question about the STM32L4+ Series and is the answer not in the manual?