6.5.7.1.4 DHCSR – Read Debug Halting Control and Status Register
| Steps | rddi_dap |
|---|---|
| Clear sticky bits | WriteDP(DP_ABORT, (ORUNERRCLR | WDERRCLR | STKERRCLR |
STKCMPCLR)) |
| Select BANK0 | WriteDP(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 Buffer | ReadAP(DP_RDBUFF, Value) |
