Debug Access Port (DAP)

From Texas Instruments Embedded Processors Wiki

Jump to: navigation, search
Translate this page to   

The debug access port (DAP) is part of the ARM emulation logic and enables an external debugger to directly access the entire memory space of the device without requiring the processor to enter the debug state and be programmed with a load or store instruction. The DAP is particularly useful for accessing registers when the processor is transitioning in and out of low-power states where it is not possible to force the processor into the debug state. Please note that not all TI devices include a DAP controller so please consult the device documentation to see if the device has a DAP controller. This article describes how the DAP can be used on an OMAP3 device to read/write registers without placing the processor into the debug state using CCStudio.


Contents

OMAP3 Emulation Sub-system

The following block diagram shows the emulation circuitry in the OMAP3 device. The ICEPICK is the first device in the JTAG scan chain and through the ICEPICK other devices such as the IVA2 (DSP Sub-system), MPU (ARM Sub-system) and DAP can be accessed. The ICEPICK controller allows devices to be dynamically switched in and out of the JTAG scan chain, such that if one device is power-down, you may access the other devices in the scan chain. Without the ICEPICK this was not possible as powering-off one device broke the JTAG scan chain for all devices.

Omap3-emu.JPG


Using the DAP to access registers on the OMAP3 Beagle Board with CCStudio v3.3

For this example CCStudio v3.3 with Service Release 12 (SR12) and Blackhawk JTAG debugger USB560m with Blackhawk driver release 3.3.300.2 were used.


Configure CCStudio for OMAP3530 Beagle Board and Blackhawk XDS560m

Ccs3.3-setup-omap3beagle.JPG


Connect to ICEPICK and DAP

Ccs3.3-pdm-omap3beagle.JPG


Access registers via DAP

Ccs3.3-dap-omap3beagle.JPG


Using the DAP to access registers on the OMAP3 Beagle Board with CCStudio v4.0

For this example CCStudio v4.0.1.01001 and Blackhawk JTAG debugger USB560m with Blackhawk driver release 1.09.03.23 were used.


Configure CCStudio for OMAP3530 Beagle Board and Blackhawk XDS560m

Ccs4-setup-omap3beagle.JPG


Connect to ICEPICK and DAP

Ccs4-debug-omap3beagle.JPG


Access registers via DAP

Ccs4-dap-omap3beagle.JPG


Using the DAP to access registers on the OMAP3 Beagle Board with Lauterbach Trace32 ICD

For this example Lauterbach Trace32 ICD build 20826 (Dec 8th 2009) and Lauterbach Power Debug were used.


Configure Trace32 for OMAP3530 Beagle Board

SYStem.RESet
SYStem.CPU OMAP3530


Connect to ICEPICK and DAP

SYStem.Mode PREPARE


Access registers via DAP

d ahb:<address>

Trace32-dap.png

Leave a Comment
Personal tools
Namespaces
Variants
Actions
Navigation
Print/export
Toolbox