Table 10-3 Debug Core Register Selector Register - ARM Cortex-M3 Technical Reference Manual

R2p0
Hide thumbs Also See for Cortex-M3:
Table of Contents

Advertisement

Bits
[31:17]
[16]
[15:5]
[4:0]
ARM DDI 0337G
Unrestricted Access
Table 10-3 shows the bit functions of the Debug Core Selector Register.
Type
Field
-
-
Write
REGWnR
-
-
Write
REGSEL
This write-only register generates a handshake to the core to transfer data to or from
Debug Core Register Data Register and the selected register. Until this core transaction
is complete, bit [16], S_REGRDY, of the DHCSR is 0.
Note
Writes to this register in any size but word are Unpredictable.
PSR registers are fully accessible this way, whereas some read as 0 when using
MRS instructions.
All bits can be written, but some combinations cause a fault when execution is
resumed.
IT might be written and behaves as though in an IT block.
Copyright © 2005-2008 ARM Limited. All rights reserved.

Table 10-3 Debug Core Register Selector Register

Function
Reserved
Write = 1
Read = 0
Reserved.
5b00000 = R0
5b00001 = R1
...
5b01111 = DebugReturnAddress()
5b10000 = xPSR/Flags, execution state information, and exception
number
5b10001 = MSP (Main SP)
5b10010 = PSP (Process SP)
5b10100:
CONTROL bits [31:24]
FAULTMASK bits [23:16]
BASEPRI bits [15:8]
PRIMASK bits [7:0]
All unused values reserved
Non-Confidential
Core Debug
10-7

Advertisement

Table of Contents
loading

Table of Contents