System Control
3.1.3 System debug registers
This section lists the system debug registers.
Flash Patch and Breakpoint registers
Table 3-3 gives a summary of the Flash Patch and Breakpoint (FPB) registers. For a detailed description of the FPB registers, see Chapter 11 System Debug.
Debug Core Register Selector Register Write-only 0xE000EDF4 - Debug Core Register Data Register Read/Write 0xE000EDF8 -
Debug Exception and Monitor Control Register. Read/Write 0xE000EDFC 0x00000000b a. Bits [5], [3], [2], [1], [0] are reset by PORESETn. Bit [1] is also reset by SYSRESETn and by writing a 1 to
the VECTRESET bit of the Application Interrupt and Reset Control Register.
b. Bits [16], [17], [18], [19] are also reset by SYSRESETn and by writing a 1 to the VECTRESET bit of the Application Interrupt and Reset Control Register.
Table 3-3 Flash patch register summary Name Type Address Reset value Description
FP_CTRL Read/write 0xE0002000 Bit [0] is reset to 1'b0 Flash Patch Control Register FP_REMAP Read/write 0xE0002004 - Flash Patch Remap Register FP_COMP0 Read/write 0xE0002008 Bit [0] is reset to 1'b0 Flash Patch Comparator Registers FP_COMP1 Read/write 0xE000200C Bit [0] is reset to 1'b0 Flash Patch Comparator Registers FP_COMP2 Read/write 0xE0002010 Bit [0] is reset to 1'b0 Flash Patch Comparator Registers FP_COMP3 Read/write 0xE0002014 Bit [0] is reset to 1'b0 Flash Patch Comparator Registers FP_COMP4 Read/write 0xE0002018 Bit [0] is reset to 1'b0 Flash Patch Comparator Registers FP_COMP5 Read/write 0xE000201C Bit [0] is reset to 1'b0 Flash Patch Comparator Registers FP_COMP6 Read/write 0xE0002020 Bit [0] is reset to 1'b0 Flash Patch Comparator Registers FP_COMP7 Read/write 0xE0002024 Bit [0] is reset to 1'b0 Flash Patch Comparator Registers PID4 Read-only 0xE0002FD0 - Value 0x04
Data Watchpoint and Trace registers
Table 3-4 gives a summary of the Data Watchpoint and Trace (DWT) registers. For a detailed description of the DWT registers, see Chapter 11 System Debug.
PID5 Read-only 0xE0002FD4 - Value 0x00
PID6 Read-only 0xE0002FD8 - Value 0x00
PID7 Read-only 0xE0002FDC - Value 0x00
PID0 Read-only 0xE0002FE0 - Value 0x03
PID1 Read-only 0xE0002FE4 - Value 0xB0
PID2 Read-only 0xE0002FE8 - Value 0x0B
PID3 Read-only 0xE0002FEC - Value 0x00
CID0 Read-only 0xE0002FF0 - Value 0x0D
CID1 Read-only 0xE0002FF4 - Value 0xE0
CID2 Read-only 0xE0002FF8 - Value 0x05
CID3 Read-only 0xE0002FFC - Value 0xB1
Table 3-3 Flash patch register summary (continued) Name Type Address Reset value Description
Table 3-4 DWT register summary
Name Type Address Reset
value Description DWT_CTRL Read/write 0xE0001000 0x00000000 DWT Control Register
DWT_CYCCNT Read/write 0xE0001004 0x00000000 DWT Current PC Sampler Cycle Count Register DWT_CPICNT Read/write 0xE0001008 - DWT Current CPI Count Register
DWT_EXCCNT Read/write 0xE000100C - DWT Current Interrupt Overhead Count Register DWT_SLEEPCNT Read/write 0xE0001010 - DWT Current Sleep Count Register
DWT_LSUCNT Read/write 0xE0001014 - DWT Current LSU Count Register DWT_FOLDCNT Read/write 0xE0001018 - DWT Current Fold Count Register
DWT_PCSR Read-only 0xE000101C - DWT PC Sample Register DWT_COMP0 Read/write 0xE0001020 - DWT Comparator Register DWT_MASK0 Read/write 0xE0001024 - DWT Mask Registers DWT_FUNCTION0 Read/write 0xE0001028 0x00000000 DWT Function Registers DWT_COMP1 Read/write 0xE0001030 - DWT Comparator Register DWT_MASK1 Read/write 0xE0001034 - DWT Mask Registers DWT_FUNCTION1 Read/write 0xE0001038 0x00000000 DWT Function Registers DWT_COMP2 Read/write 0xE0001040 - DWT Comparator Register DWT_MASK2 Read/write 0xE0001044 - DWT Mask Registers DWT_FUNCTION2 Read/write 0xE0001048 0x00000000 DWT Function Registers DWT_COMP3 Read/write 0xE0001050 - DWT Comparator Register DWT_MASK3 Read/write 0xE0001054 - DWT Mask Registers DWT_FUNCTION3 Read/write 0xE0001058 0x00000000 DWT Function Registers PID4 Read-only 0xE0001FD0 0x04 Value 0x04
PID5 Read-only 0xE0001FD4 0x00 Value 0x00
PID6 Read-only 0xE0001FD8 0x00 Value 0x00
PID7 Read-only 0xE0001FDC 0x00 Value 0x00
PID0 Read-only 0xE0001FE0 0x02 Value 0x02
PID1 Read-only 0xE0001FE4 0xB0 Value 0xB0
PID2 Read-only 0xE0001FE8 0x0B0 Value 0x1B
PID3 Read-only 0xE0001FEC 0x00 Value 0x00
CID0 Read-only 0xE0001FF0 0x0D Value 0x0D
Instrumentation Trace Macrocell registers
Table 3-5 gives a summary of the Instrumentation Trace Macrocell (ITM) registers. For a detailed description of the ITM registers, see Chapter 11 System Debug
CID1 Read-only 0xE0001FF4 0xE0 Value 0xE0
CID2 Read-only 0xE0001FF8 0x05 Value 0x05
CID3 Read-only 0xE0001FFC 0xB1 Value 0xB1
Table 3-4 DWT register summary (continued)
Name Type Address Reset
value Description
Table 3-5 ITM register summary
Name Type Address Reset value Stimulus Ports 0-31 Read/write 0xE0000000-0xE000007C -
Trace Enable Read/write 0xE0000E00 0x00000000
Trace Privilege Read/write 0xE0000E40 0x00000000
Trace Control Register Read/write 0xE0000E80 0x00000000
Integration Write Write-only 0xE0000EF8 0x00000000
Integration Read Read-only 0xE0000EFC 0x00000000
Integration Mode Control Read/write 0xE0000F00 0x00000000
Lock Access Register Write-only 0xE0000FB0 0x00000000
Lock Status Register Read-only 0xE0000FB4 0x00000003
PID4 Read-only 0xE0000FD0 0x00000004
PID5 Read-only 0xE0000FD4 0x00000000
PID6 Read-only 0xE0000FD8 0x00000000
PID7 Read-only 0xE0000FDC 0x00000000
PID0 Read-only 0xE0000FE0 0x00000001
PID1 Read-only 0xE0000FE4 0x000000B0
Advanced High Performance Bus Access Port registers
Table 3-6 gives a summary of the Advanced High-performance Bus Access Port
(AHB-AP) registers. For a detailed description of the AHB-AP registers, see Chapter 11
System Debug.
PID3 Read-only 0xE0000FEC 0x00000000
CID0 Read-only 0xE0000FF0 0x0000000D
CID1 Read-only 0xE0000FF4 0x000000E0
CID2 Read-only 0xE0000FF8 0x00000005
CID3 Read-only 0xE0000FFC 0x000000B1
Table 3-6 AHB-AP register summary
Name Type Address
Reset value Control and Status Word Read/write 0x00 See Register Transfer Address Read/write 0x04 0x00000000
Data Read/write Read/write 0x0C -
Banked Data 0 Read/write 0x10 - Banked Data 1 Read/write 0x14 - Banked Data 2 Read/write 0x18 - Banked Data 3 Read/write 0x1C -
Debug ROM Address Read-only 0xF8 0xE000E000