PM0215
3.7
Miscellaneous instructions
Table 23
Table 23.
Mnemonic
BKPT
CPSID
CPSIE
DMB
DSB
ISB
MRS
MSR
NOP
SEV
SVC
WFE
WFI
3.7.1
BKPT
Breakpoint.
Syntax
BKPT #imm
where: 'imm' is an integer in the range 0-255.
Operation
BKPT 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 produce a HardFault or go in to lockup if a debugger is not attached
when a BKPT instruction is executed. See
Restrictions: None
Condition flags
This instruction does not change the flags.
Examples
BKPT
#0
shows the remaining Cortex-M0 instructions:
Miscellaneous instructions
Breakpoint
Change Processor State, Disable Interrupts
Change Processor State, Enable Interrupts
Data Memory Barrier
Data Synchronization Barrier
Instruction Synchronization Barrier
Move from special register to register
Move from register to special register
No Operation
Send Event
Supervisor Call
Wait For Event
Wait For Interrupt
; Breakpoint with immediate value set to 0x0.
Doc ID 022979 Rev 1
The STM32 Cortex-M0 instruction set
Brief description
Lockup on page 28
See
BKPT on page 61
CPSID CPSIE on page 62
CPSID CPSIE on page 62
DMB on page 63
DSB on page 63
ISB on page 64
MRS on page 64
MSR on page 65
NOP on page 66
SEV on page 66
SVC on page 67
WFE on page 67
WFI on page 68
for more information.
61/91
Need help?
Do you have a question about the STM32F0 Series and is the answer not in the manual?