Product Specs

Table Of Contents
16 Debug and trace
Page
72
nRF52832
DAP
SWDCLK
APPROTECT.PALL
SWDIO
DAP bus
interconnect
AHB
CxxxPWRUPREQ
Power
CPU
CxxxPWRUPRACK
ARM Cortex-M4
TRACECLK
TRACEDATA[0] / SWO
TRACEDATA[1]
TRACEDATA[2]
TRACEDATA[3]
Trace
APB/AHB
Peripherals
TPIU
Trace
External
Debugger
POWER
RAM & Flash
AHB-AP
UICR
NVMC
CTRL-AP
SW-DP
ITM
ETM
16
Debug and trace
The debug and trace system offers a flexible and powerful mechanism for non-intrusive debugging.
Figure 11: Debug and trace overview
The main features of the debug and trace system are:
Two-pin Serial Wire Debug (SWD) interface
Flash Patch and Breakpoint Unit (FPB) supports:
Two literal comparators
Six instruction comparators
Data Watchpoint and Trace Unit (DWT)
Four comparators
Instrumentation Trace Macrocell (ITM)
Embedded Trace Macrocell (ETM)
Trace Port Interface Unit (TPIU)
4-bit parallel trace of ITM and ETM trace data
Serial Wire Output (SWO) trace of ITM data
16.1 DAP - Debug Access Port
An external debugger can access the device via the DAP.
The DAP implements a standard ARM® CoreSight™ Serial Wire Debug Port (SW-DP).
The SW-DP implements the Serial Wire Debug protocol (SWD) that is a two-pin serial interface, see
SWDCLK and SWDIO in Figure 11: Debug and trace overview on page 72.
In addition to the default access port in the CPU (AHB-AP), the DAP includes a custom Control Access Port
(CTRL-AP). The CTRL-AP is described in more detail in CTRL-AP - Control Access Port on page 73.
Important:
The SWDIO line has an internal pull-up resistor.
The SWDCLK line has an internal pull-down resistor.