3.17.1. JTAG-AP register descriptions

All the registers are described in ARM® Debug Interface Architecture Specification, ADIv5.0 to ADIv5.2.

JTAG-AP Control/Status Word Register, CSW, 0x00

Purpose

The JTAG-AP control status word is used to configure and control transfers through the JTAG interface.

Attributes

See DAP register summary for more information

Figure 3.204 shows the bit assignments.

Figure 3.204. JTAG-AP CSW Register bit assignments

To view this graphic, your browser must support the SVG format. Either install a browser with native support, or install an appropriate plugin such as Adobe SVG Viewer.


Table 3.217 shows the bit assignments. The register must not be modified while there are outstanding commands in the Write FIFO.

Table 3.217. JTAG-AP CSW Register bit assignments

BitsTypeNameFunction
[31]ROSERACTV

JTAG serializer active. The reset value is b0.

[30:28]ROWFIFOCNT

Outstanding write FIFO byte count. The reset value is b000.

[27]--Reserved, SBZ.
[26:24]RORFIFOCNT

Outstanding read FIFO byte count. The reset value is b000.

[23:4]--Reserved, SBZ.
[3]ROPORTCONNECTEDPORT connected. AND of portconnected inputs of currently selected ports. The reset value is b0.
[2]ROSRSTCONNECTED[a]

SRST connected.

AND of srstconnected inputs of currently selected ports. If multiple ports are selected, it is the AND of all the srstconnected inputs from the selected ports.

The reset value is b0.

[1]RWTRST_OUT

TRST assert, not self clearing. The JTAG TAP controller reset.

The reset value is b0.

[0]RWSRST_OUT

SRST assert, not self clearing. Core reset.

The reset value is b0.

[a] SRSTCONNECTED is a strap pin on the multiplexer inputs. It is set to 1 to indicate that the target JTAG device supports individual SRST controls.


JTAG-AP Port Select Register, PORTSEL, 0x04

Purpose

Enables ports if connected and the slave port is currently enabled. The Port Select Register must be written when the TCK engine is idle, SERACTV=0, and WFIFO, WFIFOCNT=0, is empty. Writing at other times can generate unpredictable results.

Attributes

See DAP register summary for more information

Figure 3.205 shows the bit assignments.

Figure 3.205. JTAG-AP Port Select Register bit assignments

To view this graphic, your browser must support the SVG format. Either install a browser with native support, or install an appropriate plugin such as Adobe SVG Viewer.


Table 3.218 shows the bit assignments.

Table 3.218. JTAG-AP Port Select Register bit assignments

BitsTypeNameFunction
[31:8]--Reserved SBZ.
[7:0]RWPORTSEL

Port Select. The reset value is 0x00.


JTAG-AP Port Status Register, PSTA, 0x08

Purpose

The Port Status Register is a sticky register that captures the state of a connected and selected port on every clock cycle. If a connected and selected port is disabled or powered down, even transiently, the corresponding bit in the Port Status Register is set. It remains set until cleared by writing a one to the corresponding bit.

Attributes

See DAP register summary for more information.

Figure 3.206 shows the bit assignments.

Figure 3.206. JTAG-AP Port Status Register bit assignments

To view this graphic, your browser must support the SVG format. Either install a browser with native support, or install an appropriate plugin such as Adobe SVG Viewer.


Table 3.219 shows the bit assignments.

Table 3.219. JTAG-AP Port Status Register bit assignments

BitsTypeNameFunction
[31:8]--Reserved, SBZ.
[7:0]RWPSTA

Port Status. The reset value is 0x00.


JTAG-AP Byte FIFO registers, BFIFOn, 0x10-0x1C

Purpose

The Byte FIFO registers are a word interface to one, two, three, or four parallel byte entries in the byte command FIFO, LSB first. The DAP internal bus is a 32-bit interface with no SIZE field. So, an address decoding is used to designate size, because the JTAG-AP engine JTAG protocol is byte encoded. Writes to the BFIFOx larger than the current write FIFO depth stall on dapready in normal mode. Reads to the BFIFOx larger than the current read FIFO depth stall on dapready in normal mode. For reads less than the full 32-bits, the upper bits are zero. For example, for a 24-bit read, daprdata[31:24] is 0x00.

Attributes

See DAP register summary for more information.

JTAG-AP Identification Register

Figure 3.207 shows the bit assignments.

Figure 3.207. JTAG-AP Identification Register bit assignments

To view this graphic, your browser must support the SVG format. Either install a browser with native support, or install an appropriate plugin such as Adobe SVG Viewer.


Table 3.220 shows the bit assignments.

Table 3.220. JTAG-AP Identification Register bit assignments

BitsTypeNameValueFunction
[31:28]RORevision0x2Revision 2
[27:24]ROJEDEC bank0x4Designed by ARM
[23:17]ROJEDEC code0x3BDesigned by ARM
[16]ROMem AP0x0Is a Mem AP
[15:8]-Reserved0x00-
[7:0]ROIdentity value0x10JTAG-AP

Copyright © 2011-2012 ARM. All rights reserved.ARM DDI 0480B
Non-ConfidentialID042612