pyocd_debug_stack_overflow_check
Detect thread stack overflow by comparing stack pointer to TCB bounds. Reports usage percentage and watermark integrity for embedded debugging.
Instructions
Check if a thread's stack has overflowed by comparing SP against the TCB's stack bounds. For RT-Thread: provide TCB address, offsets default to 0x24 (stack_addr) and 0x28 (stack_size). Reports usage percentage and watermark integrity.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tcb_address | No | Thread Control Block address (from .map file or symbol) | |
| stack_addr_offset | No | Offset of stack_addr in TCB (RT-Thread=0x24) | |
| stack_size_offset | No | Offset of stack_size in TCB (RT-Thread=0x28) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |