UM10462
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2016. All rights reserved.
User manual
Rev. 5.5 — 21 December 2016
479 of 523
NXP Semiconductors
UM10462
Chapter 24: LPC11U3x/2x/1x Appendix ARM Cortex-M0
24.4.7.1.2
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 in to lockup if a debugger is not
attached when a BKPT instruction is executed. See
for more
information.
24.4.7.1.3
Restrictions
There are no restrictions.
24.4.7.1.4
Condition flags
This instruction does not change the flags.
24.4.7.1.5
Examples
BKPT #0 ; Breakpoint with immediate value set to 0x0.
24.4.7.2 CPS
Change Processor State.
24.4.7.2.1
Syntax
CPSID i
CPSIE i
24.4.7.2.2
Operation
CPS changes the PRIMASK special register values. CPSID causes interrupts to be
disabled by setting PRIMASK. CPSIE cause interrupts to be enabled by clearing
PRIMASK.See
for more information about these registers.
24.4.7.2.3
Restrictions
There are no restrictions.
24.4.7.2.4
Condition flags
This instruction does not change the condition flags.
24.4.7.2.5
Examples
CPSID i ; Disable all interrupts except NMI (set PRIMASK)
CPSIE i ; Enable interrupts (clear PRIMASK)
24.4.7.3 DMB
Data Memory Barrier.
24.4.7.3.1
Syntax
DMB