EasyManua.ls Logo

Cypress PSoC 4000 Series - Registers

Cypress PSoC 4000 Series
178 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
PSoC 4000 Family: PSoC 4 Architecture TRM, Document No. 001-89309 Rev. *D 145
Program and Debug Interface
rect CM0 DAP SWDID is read from the target device. For
the debug transactions to occur on the SWD interface, the
corresponding pins should not be used for any other pur-
pose. See the I/O System chapter on page 45 to understand
how to configure the SWD port pins, allowing them to be
used only for SWD interface or for other functions such as
GPIO. If debugging is required, the SWD port pins should
not be used for other purposes. If only programming support
is needed, the SWD pins can be used for other purposes.
When the SWD port is acquired, the external debugger sets
the C_DEBUGEN bit in the DHCSR register to enable
debugging. Then, the different debugging operations such
as stepping, halting, breakpoint configuration, and watch-
point configuration are carried out by writing to the appropri-
ate registers in the debug system.
Debugging the target device is also affected by the overall
device protection setting, which is explained in the Device
Security chapter on page 79. Only the OPEN protected
mode supports device debugging. The external debugger
and the target device connection is not lost for a device tran-
sition from Active mode to either Sleep or Deep-Sleep
modes. When the device enters the Active mode from either
Deep-Sleep or Sleep modes, the debugger can resume its
actions without initiating a connect sequence again.
18.7 Registers
Table 18-5. List of Registers
Register Name Description
CM0_DHCSR Debug Halting Control and Status Register
CM0_DFSR Debug Fault Status Register
CM0_DCRSR Debug Core Register Selector Register
CM0_DCRDR Debug Core Register Data Register
CM0_DEMCR Debug Exception and Monitor Control Register
CM0_BP_CTRL Breakpoint control register
CM0_BP_COMPx Breakpoint Compare Register
CM0_DWT_COMPx Watchpoint Compare Register
CM0_DWT_MASKx Watchpoint Mask Register
CM0_DWT_FUNCTIONx Watchpoint Function Register
CM0_DWT_PCSR Watchpoint Comparator PC Sample Register

Table of Contents

Related product manuals