You copied the Doc URL to your clipboard.

3.7.1. BKPT

Breakpoint.

Syntax

BKPT #imm

where:

imm

Is an integer in the range 0-255.

Operation

The BKPT instruction causes the processor to enter Debug state. Debug tools can use this to investigate system state when the instruction at a particular address is reached.

imm is ignored by the processor. If required, a debugger can use it to store additional information about the breakpoint.

The processor might also produce a HardFault or go into Lockup if a debugger is not attached when a BKPT instruction is executed. See Lockup for more information.

Restrictions

There are no restrictions.

Condition flags

This instruction does not change the flags.

Examples

    BKPT #0     ; Breakpoint with immediate value set to 0x0.
Was this page helpful? Yes No