Watchpoints in CCS

Warning

Watchpoint are not available on CC2340R5 and CC2340R21

  1. Right-click on a global variable.

  2. Select BreakpointHardware Watchpoint.

  3. Go to the list of breakpoints (ViewBreakpoints).

  4. Right-click and edit the Breakpoint Properties to configure the watchpoint.

../_images/ccs_watchpoint_add.png

Adding a watchpoint on a variable.

This example configuration ensures that if 0x42 is written to the memory location for Characteristic 1 in the Bluetooth Low Energy basic_ble example project the device halts execution.

../_images/ccs_watchpoint_configure.png

Configuring a hardware watchpoint to break on 8-bit write with value 0x42.