| |||
| Home > Debug Test Access Port > Entering Debug state | |||
Halting debug-mode is enabled by writing a 1 to bit 14 of the DSCR, see CP14 c1, Debug Status and Control Register (DSCR). This can only be done by a DBGTAP debugger hardware such as RealView ICE. When this mode is enabled the processor halts, instead of taking an exception in software, if one of the following events occurs:
A vector catch occurs.
A breakpoint hits.
A watchpoint hits.
A BKPT instruction is executed.
The processor halts regardless of the state of bit 14 of the DSCR when:
A Halt instruction has been scanned in through the DBGTAP. The DBGTAP controller must pass through Run-Test/Idle to issue the Halt command to the ARM.
EDBGRQ is asserted.
The core halted bit in the DSCR is set when Debug state is entered. At this point, the debugger determines why the integer unit was halted and preserves the processor state. The MSR instruction can be used to change modes and gain access to all banked registers in the machine. While in Debug state:
the PC is not incremented
interrupts are ignored
all instructions are read from the Instruction Transfer Register (scan chain 4).
Debug state is described in Debug state.