Esp32 Crash Review logo

Esp32 Crash Review

Community
agodianel
esp32-crash-review

Decodes and analyses ESP32-family panics — Guru Meditation errors, register dumps, backtraces, aborts, stack overflows and watchdog timeouts on both Xtensa (ESP32, S2, S3) and RISC-V (C2, C3, C5, C6, H2, P4) chips — to find the root cause and recommend a fix plus diagnostic config. Use when the user pastes a crash or says "Guru Meditation", "LoadProhibited", "StoreProhibited", "InstrFetchProhibited", "IllegalInstruction", "Load access fault", "Store access fault", "MEPC", "MTVAL", "EXCVADDR", "Backtrace:", "abort() was called", "Stack canary watchpoint triggered", "Interrupt wdt timeout", "Task watchdog got triggered", "crash loop", "/review-crash", or "decode this backtrace".

Overview

Publisheragodianel
Repositoryesp32-claude-workbench
Skill nameesp32-crash-review
Stars
81
Forks
7
Bundled files
3
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 3 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by agodianel on GitHub. Read the source before you install it.

Installation

Install the Esp32 Crash Review AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/agodianel/esp32-claude-workbench/tree/main/skills/esp32-crash-review
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/agodianel/esp32-claude-workbench.git /tmp/esp32-claude-workbench
mkdir -p .claude/skills
cp -r /tmp/esp32-claude-workbench/skills/esp32-crash-review .claude/skills/esp32-crash-review
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Esp32 Crash Review in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Esp32 Crash Review on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Esp32 Crash Review is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

ESP32 Crash Review

Crash analysis is architecture-specific. Identify the chip first.

Tools

If the esp32-workbench MCP server is connected, call its tools; otherwise run the CLI. If esp32wb is not on PATH, use uvx --from git+https://github.com/agodianel/esp32-claude-workbench esp32wb <args>. Add --json for machine-readable output.

NeedMCP toolCLI
Decode panic (Xtensa + RISC-V; runs addr2line if the toolchain is on PATH)crash_decodeesp32wb crash panic.txt --elf build/<app>.elf [--target T] (- reads stdin)
Arch + toolchain prefix for the chipchip_infoesp32wb chip <target>
Surrounding log contextlog_summaryesp32wb logs monitor.log
Stack sizes after a stack overflowstack_checkesp32wb stacks .

The ELF must be the exact build that produced the crash; a rebuilt ELF gives wrong lines. If --elf is missing, ask for it or say decoding is unavailable.

Steps

1. Identify target and architecture

From CONFIG_IDF_TARGET, the boot banner, or the dump itself:

Dump containsArchitectureChips
PC, PS, A0..A15, EXCCAUSE, EXCVADDR, Backtrace: 0x..:0x..XtensaESP32, ESP32-S2, ESP32-S3
MEPC, RA, SP, MCAUSE, MTVAL, MSTATUS, stack memory dumpRISC-VESP32-C2, C3, C5, C6, H2, P4

Toolchains: Xtensa uses a per-chip prefix (xtensa-esp32-elf-, xtensa-esp32s2-elf-, xtensa-esp32s3-elf-); RISC-V chips use riscv32-esp-elf-. Confirm with esp32wb chip <target>.

2. Exception type

Xtensa nameRISC-V equivalentTypical cause
LoadProhibitedLoad access faultRead through NULL / dangling / uninitialised pointer
StoreProhibitedStore access faultWrite through bad pointer, write to flash/ROM
InstrFetchProhibitedInstruction access faultBad function pointer, corrupted return address
IllegalInstructionIllegal instructionCorrupted stack/code, bad function pointer, abort paths
LoadStoreAlignmentLoad/Store address misalignedMisaligned access via cast or packed struct
IntegerDivideByZero(no trap — RISC-V returns a defined result)Unchecked divisor
Unhandled debug exception + "Stack canary watchpoint triggered"Breakpoint (end-of-stack watchpoint) or Stack protection fault (HW stack guard)Stack overflow
Interrupt wdt timeout on CPU0/1sameISR too long / interrupts disabled too long
Cache error / cache-disabled accessCache errorCode/data in flash accessed while cache disabled (ISR not in IRAM)

The fault address is EXCVADDR on Xtensa and MTVAL on RISC-V; the faulting instruction is PC (Xtensa) / MEPC (RISC-V).

3. Decode the call chain

  1. esp32wb crash <file> --elf build/<app>.elf (preferred), or
  2. idf.py monitor with the matching ELF (decodes automatically; on RISC-V it unwinds the stack dump), or
  3. Manual: <prefix>addr2line -pfiaC -e build/<app>.elf <PC> <addr...>.

RISC-V panics normally lack a Backtrace: line unless the firmware was built with CONFIG_ESP_SYSTEM_USE_EH_FRAME or CONFIG_ESP_SYSTEM_USE_FRAME_POINTER; without the monitor or the ELF you may only get the faulting function from MEPC and RA.

4. Interpret

  • Fault address 0x00000000 or a small offset → NULL pointer / NULL struct member (offset ≈ member offset).
  • Fault address that is garbage (not in any RAM/flash region of the chip) → uninitialised or corrupted pointer. Memory maps differ per chip; check the TRM rather than reusing classic-ESP32 ranges.
  • Crash inside a FreeRTOS/driver call from an ISR → non-ISR-safe API in ISR.
  • Different crash sites every time → memory corruption (overflow, use-after-free).
  • abort() → read the preceding line (assert text, ESP_ERROR_CHECK error name and file:line).

Detailed patterns: Guru Meditation playbook, watchdog playbook.

5. Diagnostic configuration (debug builds only)

CONFIG_HEAP_POISONING_COMPREHENSIVE=y
CONFIG_HEAP_TASK_TRACKING=y
CONFIG_FREERTOS_WATCHPOINT_END_OF_STACK=y
CONFIG_FREERTOS_CHECK_STACKOVERFLOW_CANARY=y
CONFIG_COMPILER_STACK_CHECK_MODE_STRONG=y   # option name varies by IDF version
CONFIG_ESP_SYSTEM_PANIC_PRINT_HALT=y        # keep the dump on screen instead of rebooting
CONFIG_ESP_COREDUMP_ENABLE_TO_FLASH=y       # capture field crashes; read with idf.py coredump-info

Verify each option exists for your ESP-IDF version in menuconfig before adding it, and remove debug options before release (esp32wb sdkconfig flags them).

6. Report

markdown
# Crash Analysis — <project> (target: <chip>, arch: Xtensa|RISC-V, IDF <ver>)
## Exception
- Type / core / task:
- PC|MEPC → function (file:line):
- Fault address (EXCVADDR|MTVAL):
## Call chain
| # | Address | Function | File:Line |
## Root cause (confidence: high/medium/low, with evidence)
## Classification: NULL pointer | stack overflow | ISR violation | memory corruption | watchdog | cache/IRAM | other
## Recommended fix (goes through an implementation contract)
## Diagnostic config to confirm
## Prevention

Rules

  • Never decode with the wrong toolchain or a different build's ELF.
  • If you cannot decode, say so; do not guess function names from addresses.
  • Fixes are code changes: create/update the mission and contract before editing.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Esp32 Crash Review AI skill do?

Decodes and analyses ESP32-family panics — Guru Meditation errors, register dumps, backtraces, aborts, stack overflows and watchdog timeouts on both Xtensa (ESP32, S2, S3) and RISC-V (C2, C3, C5, C6, H2, P4) chips — to find the root cause and recommend a fix plus diagnostic config. Use when the user pastes a crash or says "Guru Meditation", "LoadProhibited", "StoreProhibited", "InstrFetchProhibited", "IllegalInstruction", "Load access fault", "Store access fault", "MEPC", "MTVAL", "EXCVADDR", "Backtrace:", "abort() was called", "Stack canary watchpoint triggered", "Interrupt wdt timeout", "...

Why use Esp32 Crash Review on TypingMind?

Because you install it once and use it with any model. Esp32 Crash Review is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Esp32 Crash Review in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/agodianel/esp32-claude-workbench/tree/main/skills/esp32-crash-review. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Esp32 Crash Review?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Esp32 Crash Review?

As many as you like. As long as a model supports skills, you can use Esp32 Crash Review with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Esp32 Crash Review AI skill free?

Yes. It is published on GitHub by agodianel under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇