6.5.7.1.4 DHCSR – Read Debug Halting Control and Status Register

Table 6-21. Read DHCSR Register Sequence
Stepsrddi_dap
Clear sticky bitsWriteDP(DP_ABORT, (ORUNERRCLR | WDERRCLR | STKERRCLR | STKCMPCLR))
Select BANK0WriteDP(DP_SELECT, MEMAP_BANK_0)
WriteAP(MEM_AP_CSW, (MSTRDBG | RESERVED | HPROT | SIZE32))
Load the Debug Halting Control and Status Register (DHCRS) into the Transfer Address Register (TAR)WriteAP(MEM_AP_TAR, DHCSR)
Read the Debug Halting Control and Status Register (DHCRS)ReadAP(MEM_AP_DRW, Value)
Read the Read BufferReadAP(DP_RDBUFF, Value)