Core Debug
ARM DDI 0337G
Copyright © 2005-2008 ARM Limited. All rights reserved.
10-13
Unrestricted Access
Non-Confidential
10.4
Using application registers in core debug
You can also use the application registers for status access and to effect change on the
system.
If you intend to use the application registers for core debug, be aware that:
•
There are read-modify-write issues if both AHB-AP and the application are
modifying these registers.
•
For the write registers like PENDSET and PENDCLR, there are
read-modify-write issues because these are not read first.
•
For registers containing priority and other read-write registers, the register can
change between the read and the write when performing a read-modify-write
operation. In some cases the registers enable byte access to alleviate this situation,
and the debugger must be aware of these issues when the processor is running.
Table 10-5 shows the application registers and the register bits that are most useful for
use in core debug. For a complete list of the application registers see the
ARMv7-M
Architecture Reference Manual
.
Table 10-5 Application registers for use in core debug
Register
Bits or fields for use in core debug
Interrupt Control State
ISRPREEMPT
ISRPENDING
VECTPENDING
.
Vector Table Offset
To find vector table
Application Interrupt/Reset Control
VECTCLRACTIVE
ENDIANESS
Configuration Control
DIV_0_TRP
UNALIGN_TRP
.
System Handler Control and State
ACTIVE
PENDED