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

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.

Read or change EmberProbe workspace configuration and synchronize it to the sidebar, including selecting a workspace .ioc. Use for ELF, probe, MCU, SVD and sampling settings, or to inspect CubeMX/OpenOCD paths and route firmware package setup to the extension UI.

Install

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

SKILL.md

MCU Configuration

Use scripts/config.js from this skill directory. Never edit VS Code storage or EmberProbe files directly.

Before you run

  • MCP first: if this session provides EmberProbe MCP tools (such as config_get), use them; the scripts here are the fallback. The authorization and hardware rules on this page apply to both.
  • Applies to: reading or changing EmberProbe workspace configuration (ELF, debugger, MCU target, SVD, selected .ioc, sampling interval, Tcl port, sample history limit), and identifying the supported route for CubeMX and firmware package setup.
  • Requires: the EmberProbe Agent Bridge. No probe or hardware is needed.
  • Preconditions: read the current configuration before changing it; change only the fields the user explicitly requested; openocdPath, cubemxPath and cubemx2Path are read-only through the Bridge.
  • Side effects: --get is read-only and never mutates configuration, bindings, or hardware; --set changes workspace configuration and immediately synchronizes the sidebar.
  • Success evidence: the normalized configuration returned by EmberProbe. A config read does not verify hardware, and a config write success does not prove a later debug or flash will start.

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

  1. Read the current configuration before changing it:

``bash node <skill-dir>/scripts/config.js --workspace <workspace> --get ``

  1. Change only values explicitly requested by the user:

``bash node <skill-dir>/scripts/config.js --workspace <workspace> --set debugger=cmsis-dap.cfg,mcu=stm32f4x.cfg ``

  1. Supported keys are elf, debugger, mcu, svd, iocPath, transport, rtos, adapterSpeedKhz, sampleFrequencyHz, and tclPort. sampleFrequencyHz is the requested sampling rate (0.1–200 Hz); the actual rate may be lower on a slow probe. The experimental waveform "Max rate" (unlimited sampling) toggle is user-only and cannot be enabled through the Agent Bridge; sampling status may report unlimitedActive, limitedBy and effectiveIntervalMs: 0 while it is on. iocPath selects an existing workspace .ioc (STM32CubeMX) or .ioc2 (STM32CubeMX2); it does not edit its contents. rtos enables RTOS task awareness for debugging only; it is case-sensitive, "" turns it off, and it applies at the next debug start. Use mcu-cubemx for initialization configuration and code generation. openocdPath and cubemxPath are read-only through the Agent Bridge; instruct the user to change executable paths in VS Code settings or the EmberProbe sidebar instead.
  2. Report the normalized configuration returned by EmberProbe. The extension validates paths, configuration names, numeric ranges, and synchronizes the sidebar immediately.
  3. On failure, parse the stderr JSON diagnostic and report its error.code, likelyCause, and suggestedActions. Do not guess a hardware or service cause for configuration-validation errors.

--probes calls probe.list and reads J-Link, CMSIS-DAP and ST-Link OS USB metadata without opening the debug interface. It returns available, physical devices and notes; unreadable fields remain unknown. The device the workspace would use carries selected: true. Select probes under Connected probes in the sidebar; config.set cannot change the selected probe. Select transport=swd or transport=jtag according to the user's board wiring. adapterSpeedKhz=0 uses the script default and lets flashing raise the clock to the probe's capability; a nonzero value also caps requests in target reset events, retaining initialization and lower speeds, and is the clock used while programming. Do not infer compatibility from “V9/V10” alone. Stop an active session before changing connection settings; do not bypass PROBE_CONFIGURATION_BUSY or PROBE_SESSION_STALE by editing storage. Configuration and enumeration do not authorize driver replacement.

CubeMX, IOC and firmware packages

Select or clear the project file using --set "iocPath=path/to/project.ioc" (or a .ioc2) or --set "iocPath=". Selection validates an existing file inside the workspace; it neither edits the IOC nor proves its CubeMX version or firmware package is installed. Quote the whole assignment for paths with spaces. The comma-separated --set format cannot represent a path containing a comma.

--get returns cubemxPath and iocPath, but does not return firmware installation status. CubeMX is a global executable setting, not a writable workspace setting through this Skill. Use the sidebar or VS Code user setting emberprobe.cubemxPath to change it. Do not bypass CONFIG_KEY_FORBIDDEN by editing storage.

There is no writable firmwarePackage, firmwareVersion, or repository configuration key. The sidebar derives the STM32 family from mcu and, when an IOC is selected, reads the required version from ProjectManager.FirmwarePackage. It checks CubeMX's configured repository after configuration refresh. With no IOC selected it checks installed packages for the MCU family; this does not establish a particular project's required version.

For a missing package, direct the user to the CubeMX firmware package install action in the sidebar, which opens the native interactive installer. The user handles license/download prompts. The Bridge has no package-install command; mcu-cubemx --inspect is not an installation check. Changing an IOC's package version is not supported by the current generation workflow. Use mcu-cubemx for pin/peripheral changes and authorized code generation after setup.

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-config/badge)](https://verified-skill.com/skills/bakesheep/emberprobe-mcu-flash-debug/mcu-config)

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