bakesheep/emberprobe-mcu-flash-debug/mcu-flash

Claude Code and agent skill by bakesheep/emberprobe-mcu-flash-debug

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Program MCU firmware or verify on-chip Flash against the workspace ELF through OpenOCD. Use when the user asks to flash, download, program, burn, verify, compare, or confirm firmware on an attached target.

Install

npx vskill@latest install bakesheep/emberprobe-mcu-flash-debug/mcu-flash

SKILL.md

MCU Flash

Before you run

  • MCP first: if this session provides EmberProbe MCP tools (such as flash_program), use them; the scripts here are the fallback. The authorization and hardware rules on this page apply to both.
  • Applies to: programming/downloading/burning firmware, or verifying on-chip Flash against the workspace ELF.
  • Requires: the EmberProbe Agent Bridge, OpenOCD, a connected probe, a powered target, and a resolvable ELF.
  • Preconditions: the probe is free (not sampling, downloading, or debugging); ELF, target, and probe are resolved — never guess a missing one; programming and verification need separate user authorization in the Agent conversation; programming may use a 24-hour workspace permission the user explicitly chose, verification is one-time unless the Bridge explicitly authorizes the sidebar full-access grant.
  • Side effects: programming rewrites target Flash and resets the target; verification briefly halts then resumes it, restoring the prior run state.
  • Success evidence: preflight reports the selected ELF, ELF SHA-256, target, probe, OpenOCD, and each value's sources; the run reports OpenOCD's own result. A verify success does not prove a program success.

For failure handling, retry limits, cross-skill routing, and result scoping, read ../_emberprobe/agent-workflow.md.

Choose exactly one operation from the user's request:

Programming already performs OpenOCD's program-and-verify sequence. If the user asks to flash and confirm success in one request, run only the programming workflow and report its verification result; do not start a second verification session.

Both operations must complete detection first and report the selected ELF, ELF SHA-256, target, probe, and OpenOCD executable. Never guess a missing target or probe. Do not run either operation while EmberProbe is sampling, downloading, or debugging because the probe has a single owner.

OpenOCD compatibility

  • Preflight ready requires a readable ELF, compatible executable, valid interface/target scripts, compiled adapter support and a resolved connection identity. Report diagnostics and notes when false; do not execute or request confirmation.
  • --transport auto|swd|jtag|hla_swd|hla_jtag overrides the workspace transport. Missing values use the workspace setting, then auto. Keep the same transport for confirmation and execution.
  • J-Link auto resolves to SWD for known Cortex-M targets, otherwise the interface script default, validated with noinit. Preserve the resolved transport reported by preflight; do not retry other protocols on failure. --probe-serial <serial> selects the physical probe: J-Link uses a decimal integer; CMSIS-DAP/ST-Link preserve exact strings, case and leading zeros. --adapter-speed-khz <integer> sets kHz and caps requests in target reset events while preserving their initialization and any lower speed (0 keeps script defaults). Report and preserve these values from preflight through confirmation and execution. A changed identity invalidates confirmation.
  • Multiple detected probe types require an explicit --probe. Same-family J-Link, CMSIS-DAP and ST-Link probes use their serial numbers; duplicate/unreadable identities must be resolved before proceeding. Use mcu-config --probes to inspect OS metadata. Never fall back to a different serial when the selected device is absent.
  • Flash failures report the last known stage and a bounded OpenOCD log tail. Timeout/output-limit results are unknown; do not automatically repeat a write. Managed flashing retains probe ownership until the OpenOCD process has closed.
  • Windows J-Link USB failures may indicate a legacy SEGGER driver binding. Explain the reported diagnostic; do not automatically replace drivers or retry flashing.

Execution safety

Bridge-backed authorization, programming and verification use the OpenOCD executable configured in EmberProbe. An explicit --openocd must resolve to that same executable; otherwise execution returns OPENOCD_EXECUTABLE_MISMATCH. Change the extension setting through the user interface before selecting another installation. ELF inputs must be regular ELF32 little-endian files no larger than 64 MiB. The extension hashes bounded reads and programs only a private snapshot matching the authorized digest.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
62
Repository forks
6
7-day trend score
0

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/bakesheep/emberprobe-mcu-flash-debug/mcu-flash/badge)](https://verified-skill.com/skills/bakesheep/emberprobe-mcu-flash-debug/mcu-flash)

Something wrong with this skill or its page? Tell us.