6.5.8.4.5 Halt
A debugger can use halting debug stepping to exit the Debug state, execute a single instruction, and then re-enter the Debug state. Halting debug stepping is active when all of the following apply:
- DHCSR.C_DEBUGEN is set to ‘1’ (halting debug enabled)
- DHCSR.C_STEP is set to ‘1’ (halting stepping enabled)
- The processor is in the Non-Debug state
Reference: ARM DDI 0403E.b, C1.5.1 Debug stepping - Halting debug stepping
| Steps | rddi_dap |
|---|---|
| Debug halt | WriteD32(DHCSR, (DBGKEY | DHCSR.C_DEBUGEN | DHCSR.C_MASKINTS | DHCSR.C_HALT)) |
