pyocd_target_wait_halt
Resume target execution and wait for halt to inspect breakpoints, watchpoints, or manual stops. Returns halt reason, PC, registers, and backtrace.
Instructions
Resume target execution and wait for it to halt (breakpoint hit, watchpoint triggered, or manual halt). This is the KEY tool for 'set breakpoint → run → wait for hit → inspect' debugging workflow. Returns halt reason, PC, and registers when the target stops. Sends progress notifications to prevent AI client timeouts during long waits. Automatically includes a compact backtrace (top 4 frames) showing the call chain when halted. Also detects CPU LOCKUP state (double fault) immediately.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timeout | No | Max seconds to wait (default 30) | |
| user_hint | No | Message to include in progress notifications (e.g. 'Please send serial data now') | |
| resume_first | No | Resume target before waiting (default True) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |