Explain a crash
crosspad_diagnose_crashDiagnose CrossPad panics in one call: retrieve reset reason, panic registers, source-decoded backtrace, heap state, and surrounding console lines from a log, console handle, or device.
Instructions
[ESP HW] Diagnose a CrossPad panic in one call: reset reason, panic registers, decoded backtrace, heap after the restart and the console lines around it. The backtrace is decoded to source lines against the ELF of the build actually flashed, and the surrounding console lines come as a link. Point it at a log file, an open console handle or a device (it listens briefly). Read the frames from the bottom up: the deepest CrossPad frame, not the LVGL ones above it, is where to look. Tells PANIC/WDT/BROWNOUT faults apart from ordinary restarts.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "crosspad_diagnose_crash"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| elf | No | Override the ELF; by default the one matching the firmware's own SHA is used | |
| decode | No | Set false to skip addr2line and just report the raw frames | |
| device | No | Listen on this board's console for a moment | |
| seconds | No | device mode: how long to listen | |
| log_file | No | A captured console log to decode | |
| context_lines | No | ||
| console_handle | No | Use an already-open console (con_N) — it has the history |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ts | No | ||
| docs | No | ||
| next | No | ||
| error | No | ||
| found | No | ||
| notice | No | ||
| report | No | ||
| success | Yes | ||
| backtrace | No | ||
| likely_cause | No |