DAP

From SEGGER Wiki
Revision as of 18:02, 13 May 2019 by Alex (talk | contribs)
Jump to: navigation, search

DP

The CoreSight debug port (DP) translates from the physical protocol that is used to communicate with the debug logic to the ARM specific internal debug logic. There are different types of DPs:

  • JTAG-DP
  • SW-DP
  • SWJ-DP

JTAG-DP

4-wire JTAG (IEEE 1149.1) is used to exchange information with the debug logic. Please note that this 4-wire only refers to the device internal logic. It is for example also possible to have a JTAG-DP and using cJTAG (IEEE 1149.7) externally. In such cases, there is a device internal 2-to-4-wire converter in front of the JTAG-DP that translates from cJTAG to traditional JTAG. All of this happens device internally so that physically only the 2-wire cJTAG protocol would need to be exposed.

SW-DP

2-wire Serial Wire Debug (SWD) is used to exchange information with the debug logic.

SWJ-DP

JTAG or SWD may be used to exchange information with the debug logic. The protocol is switched between JTAG and SWD at runtime, using specific switching sequences that are specified by ARM and do not hurt JTAG devices that may be in the same JTAG chain as the SWJ-DP.

AP

A CoreSight access port (AP) mainly is a memory bus interface to access the actual debug logic / resources. While the DP performs the protocol translation, an AP usually performs real memory accesses to read/write debug register. There are different types of APs:

  • AHB-AP
  • APB-AP
  • AXI-AP
  • JTAG-AP

AHB-AP

TBD

APB-AP

TBD

AXI-AP

TBD

JTAG-AP

TBD

DAP

The debug access port (DAP) means the DP and all APs that are connected to the DP. It is to describe the whole debug hierarchy. TBD