Watchpoints in CCS¶
Warning
Watchpoint are not available on CC2340R5 and CC2340R21
Right-click on a global variable.
Select
Breakpoint→Hardware Watchpoint.Go to the list of breakpoints (
View→Breakpoints).Right-click and edit the Breakpoint Properties to configure the watchpoint.
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.
Configuring a hardware watchpoint to break on 8-bit write with value 0x42.¶