2.9.10. Breakpoint instruction (BKPT)

A breakpoint (BKPT) instruction operates as though the instruction caused a Prefetch Abort.

A breakpoint instruction does not cause the ARM7EJ-S processor to take the Prefetch Abort exception until the instruction reaches the Execute stage of the pipeline. If the instruction is not executed, for example because a branch occurs while it is in the pipeline, the breakpoint does not take place.

After dealing with the breakpoint, the handler must execute the following instruction irrespective of the processor operating state:

SUBS PC,R14_abt,#4

This action restores both the PC and the CPSR, and retries the breakpointed instruction.

Note

If the EmbeddedICE-RT logic is in halt mode, a breakpoint instruction causes the processor to enter debug state. See Debug control register.

Copyright ©  2001 ARM Limited. All rights reserved.ARM DDI 0214B
Non-Confidential