Atmel ARM-Based Evaluation Kit for SAM4S16C, 32-Bit ARM® Cortex® Microcontroller ATSAM4S-WPIR-RD ATSAM4S-WPIR-RD Data Sheet

Product codes
ATSAM4S-WPIR-RD
Page of 1231
SAM4S Series [DATASHEET]
Atmel-11100G-ATARM-SAM4S-Datasheet_27-May-14
188
12.6.11.1BKPT
Breakpoint.
Syntax
BKPT #imm
where:
immis an expression evaluating to an integer in the range 0–255 (8-bit value).
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 BKPT instruction can be placed inside an IT block, but it executes unconditionally, unaffected by the condition 
specified by the IT instruction.
Condition Flags
This instruction does not change the flags.
Examples
BKPT 0xAB
; Breakpoint with immediate value set to 0xAB (debugger can
; extract the immediate value by locating it using the PC) 
Note:
ARM does not recommend the use of the BKPT instruction with an immediate value set to 0xAB for any purpose other 
than Semi-hosting.
12.6.11.2CPS
Change Processor State. 
Syntax
CPSeffect iflags
where:
effectis one of:
IE Clears the special purpose register.
ID Sets the special purpose register.
iflagsis a sequence of one or more flags:
i Set or clear PRIMASK.
f Set or clear FAULTMASK. 
Operation
CPS changes the PRIMASK and FAULTMASK special register values. See 
 
for more 
information about these registers.
Restrictions
The restrictions are:
Use CPS only from privileged software, it has no effect if used in unprivileged software