/embedded-debugger:embedded-debuggerfrom embedded-debugger
Guides embedded hardware debugging for probe-rs targets (ARM Cortex-M, RISC-V) via CLI or MCP server. Supports flash, RTT, fault diagnosis, and OpenOCD backend for chips like ESP32.
Ships in embedded-debugger. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Use the local embedded-debugger-mcp binary as the source of truth. Prefer CLI
checks first, then MCP tools when an MCP client is available.
embedded-debugger-mcp serveembedded-debugger-mcp doctor, embedded-debugger-mcp probes list, and
embedded-debugger-mcp skill print-prompt.Run these in order and report the exact outcome:
embedded-debugger-mcp doctor
embedded-debugger-mcp probes list
embedded-debugger-mcp config show
Use JSON for automation:
embedded-debugger-mcp doctor --json
embedded-debugger-mcp probes list --json
One tool set runs over two interchangeable engines, chosen at connect:
backend: "probe-rs" (default) — native probe-rs; supports flash and RTT.backend: "openocd" (experimental) — talks to an already-running openocd
over its GDB port via openocd_address (default 127.0.0.1:3333). Use for
chips probe-rs does not cover well (e.g. Xtensa ESP32 via openocd-esp32).
Memory access and halt/run/step/reset are validated on real ESP32-S3; flash
and RTT are not available on this backend. Register reads currently use ARM
gdb register numbers, so PC/SP are wrong on Xtensa (known limitation).
diagnose_fault and unwind_exception are Cortex-M specific and do not
apply to Xtensa targets.
gdb_memory_map disable, otherwise it probes flash on
the GDB connect, fails, and REJECTS the connection. Example:
openocd -f board/esp32s3-builtin.cfg -c "gdb_memory_map disable".The AI uses the same tools regardless of backend; only connect differs.
Use MCP tools for session-based operations:
list_probesconnect (add backend: "openocd" and openocd_address to use OpenOCD)probe_info, get_status, and read_memorydiagnose_fault: it reads the Cortex-M SCB fault
registers (CFSR/HFSR/MMFAR/BFAR/SHCSR/CPUID) plus PC/SP/LR and returns a
compact structured evidence bundle in one call. Halt the target first for
meaningful values; reason over the set fault bits yourself. Then call
unwind_exception with elf_path to map the crash to a source line
(full DWARF backtrace on probe-rs; faulting PC/LR on OpenOCD).write_memory, flash_erase, flash_program, run_firmware (probe-rs)rtt_attach, rtt_channels,
rtt_read, rtt_write, rtt_detach (probe-rs)disconnectYou are a capable model: prefer fetching ground truth over relying on memorized or hardcoded chip data. This skill points you to sources; it does not embed register tables. In order of authority:
read_memory; core identity from CPUID / the connected target.unwind_exception (pass elf_path) to map addresses to
file:line.read_memory. Search the vendor document for the
exact value; do not guess addresses from memory. CMSIS-SVD files are a
machine-readable source for register maps.diagnose_fault reads them.
They do not exist on non-Cortex-M targets (e.g. Xtensa ESP32).Do not hardcode or invent register/peripheral addresses. If a value is not recoverable from the target, the ELF, or a cited datasheet, say so.
Behavior and target support depend on tool versions — check them before concluding something is unsupported or broken:
embedded-debugger-mcp doctor.gdb_memory_map disable.
Check openocd --version.probes list
reports the connected probe.For a reusable CLI+Skill prompt, read
references/default-prompt.md.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Generated from the plugin's indexed repository (adancurusul/embedded-debugger-mcp) — no native marketplace selected
npx claudepluginhub p/adancurusul-embedded-debuggerOther plugins' skills for the same job