Debug access port

An external debugger can access the device through the debug access port (DAP).

The DAP implements a standard serial wire debug (SWD) Arm CoreSight™ protocol with a two-pin serial interface (SWDCLK and SWDIO).

The SWDIO pin has an internal pull-up resistor. The SWDCLK pin has an internal pull-down resistor.

The serial wire debug (SWD) pins can be used as GPIO pins when debugging is not active. For more information, see Pin assignments.

There are several access ports for connecting to different parts of the system, as shown in the following table.

Table 1. Access port overview
AP IDTypeDescription
0AHB-APCM33 access port
2CTRL-APControl access port

The AHB-AP is a standard Arm component. See the ArmCoreSight SoC-400 Technical Reference Manual for more information. The control access port (CTRL-AP) is proprietary and described in more detail in CTRL-AP — Control access port.

Debug access port registers

Register overview
RegisterOffsetDescription
TARGETID0x024

The TARGETID register provides information about the target when the host is connected to a single device.

The TARGETID register is accessed by a read of DP register 0x4 when the DPBANKSEL bit in the SELECT register is set to 0x2.

DLPIDR0x034

The DLPIDR register provides information about the serial wire debug protocol version.

Accessed by a read of DP register 0x4 when the DPBANKSEL bit in the SELECT register is set to 0x3.

TARGETID

Address offset: 0x024

The TARGETID register provides information about the target when the host is connected to a single device.

The TARGETID register is accessed by a read of DP register 0x4 when the DPBANKSEL bit in the SELECT register is set to 0x2.

Bit number313029282726252423222120191817161514131211109876543210
IDCCCCBBBBBBBBBBBBAAAAAAAAAAA
Reset 0x0000028900000000000000000000001010001001
IDR/WFieldValue IDValueDescription
A

R

TDESIGNER

An 11-bit code JEDEC JEP106 continuation code and identity code. The ID identifies the designer of the part.

NordicSemi

0x144

Nordic Semiconductor ASA.

B

R

TPARTNO

Part number.

C

R

TREVISION

Target revision.

DLPIDR

Address offset: 0x034

The DLPIDR register provides information about the serial wire debug protocol version.

Accessed by a read of DP register 0x4 when the DPBANKSEL bit in the SELECT register is set to 0x3.

Bit number313029282726252423222120191817161514131211109876543210
IDBBBBAAAA
Reset 0x0000000100000000000000000000000000000001
IDR/WFieldValue IDValueDescription
A

R

PROTVSN

Protocol version.

SWDPv2

1

SW protocol version 2.

B

R

TINSTANCE

Target instance.