pyocd_watchpoint_set
Set a hardware watchpoint to halt the target on memory reads or writes at a specific address, helping catch wild pointers, buffer overflows, and unexpected memory writes.
Instructions
Set a hardware watchpoint (data breakpoint). Triggers a halt when the target reads/writes a specific memory address. Essential for catching wild pointers, buffer overflows, and unexpected memory writes. Cortex-M4 typically has 4 DWT comparators available.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | Watched region size: 1, 2, or 4 bytes | |
| address | Yes | Memory address to watch (integer or hex string) | |
| access_type | No | 'write' (default), 'read', or 'read_write' | write |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |