This wraps the probe-rs CLI for flashing and debugging embedded targets over SWD, JTAG, and CMSIS-DAP probes. You get commands for firmware flashing (elf, hex, bin), memory read/write, chip erase, RTT log streaming, and one-shot GDB sessions for backtraces without keeping a debug server running. It handles multi-probe setups with explicit selectors and pulls chip config from a project-level JSON so you're not typing STM32F407VGTx every time. The workflow is tuned for quick diagnostics rather than long interactive debug sessions. Windows users should note that switching J-Link to WinUSB for probe-rs will break SEGGER's own tooling, so stick with the dedicated jlink skill if you need both.

skills.sh installs
660
GitHub stars
791
last updated
Aug 21, 2026

Install

$ npx -y skills add zhinkgit/embeddedskills --skill probe-rs --agent claude-code

Installs into .claude/skills of the current project.

Files

probe-rs 下载与调试

本 skill 提供 probe-rs CLI 的结构化包装,覆盖探针发现、目标信息、烧录、复位、内存读写、one-shot GDB 调试和 RTT 日志读取。

Windows 下优先使用 py -3 调用脚本;若 arm-none-eabi-gdb 已在 PATH 中,gdb 子命令可自动发现,不强依赖 skill config.json。

配置

环境级配置(skill/config.json)

首次使用前建议在 skill 目录下创建 config.json:

{
  "exe": "probe-rs",
  "gdb_exe": "C:\\Program Files\\Arm\\GNU Toolchain mingw-w64-x86_64-arm-none-eabi\\bin\\arm-none-eabi-gdb.exe",
  "gdb_port": 3333,
  "dap_port": 50000,
  "operation_mode": 1
}
  • exe:probe-rs 可执行文件路径或命令名
  • gdb_exe:arm-none-eabi-gdb 路径,gdb 子命令需要
  • gdb_port:默认 GDB 端口
  • dap_port:预留给交互式 DAP 会话
  • operation_mode:1 直接执行 / 2 输出风险摘要但不阻塞 / 3 执行前确认

工程级配置(.embeddedskills/config.json)

{
  "probe-rs": {
    "chip": "STM32F407VGTx",
    "protocol": "swd",
    "probe": "",
    "speed": 4000,
    "connect_under_reset": false
  }
}
  • chip:芯片型号,probe-rs 主后端必填
  • protocol:swd 或 jtag
  • probe:探针选择器,格式 VID:PID[:Serial]
  • speed:调试速率 kHz
  • connect_under_reset:连接时是否保持 reset

参数优先级:CLI 参数 > 工程配置(.embeddedskills/config.json)> state.json > skill 配置(config.json)> 默认值

Sponsors

Details

Repository
github.com/zhinkgit/embeddedskills
Categories
Backend & APIs, Rust, CLI & Terminal
First seen
Jun 3, 2026

More from zhinkgit/embeddedskills

All 9
1alirezarezvani avatarmigration-architectalirezarezvani/claude-skillsZero-downtime migration planning, compatibility validation, and rollback strategy generation. Tools for system, database, and infrastructure migrations with min656skills.sh installs
2bradsjm avatarhome-assistant-esphomebradsjm/hassio-addonsESPHome + Home Assistant workflows for provisioning, adoption, entity naming, encryption keys (noise_psk / api encryption), OTA updates, and troubleshooting off652skills.sh installs
3dotnet avatarmcp-csharp-publishdotnet/skillsPublish and deploy C# MCP servers. Covers NuGet packaging for stdio servers, Docker containerization for HTTP servers, Azure Container Apps and App Service depl650skills.sh installs
4glebis avatargoogle-image-searchglebis/claude-skillsSearch and download images via Google Custom Search API with LLM-powered selection. This skill should be used when finding images for articles, presentations, r649skills.sh installs
5timescale avatardesign-postgres-tablestimescale/pg-aiguideUse this skill for general PostgreSQL table design. **Trigger when user asks to:** - Design PostgreSQL tables, schemas, or data models when creating new tables 649skills.sh installs
6alirezarezvani avatarrag-architectalirezarezvani/claude-skillsUse when the user asks to design a RAG pipeline, choose a chunking strategy or embedding model, pick a vector database, or evaluate retrieval quality (precision646skills.sh installs