
Probe Rs
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-codeInstalls 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或jtagprobe:探针选择器,格式VID:PID[:Serial]speed:调试速率 kHzconnect_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