Skip to content

Cross-platform probe-rs CLI wrapper for probe discovery, firmware flashing, memory access, one-shot GDB debugging, and RTT logs.

CCM score
54 of 100
skills.sh installs
740
GitHub stars
815
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers probe discovery, target info, flashing (elf/hex/bin/uf2), erase, reset, memory read and write, and RTT log reading
  • Includes probe_rs_exec.py, probe_rs_gdb.py, and probe_rs_rtt.py scripts, with per-step risk levels and a three-tier operation mode
  • Requires an explicit chip name and refuses .bin flashing without an address; flags J-Link WinUSB driver conflicts with SEGGER tools
  • Designed for embedded developers on Windows or Linux who use ST-Link, J-Link, or CMSIS-DAP probes with arm-none-eabi-gdb

Install

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

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

probe-rs 下载与调试

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

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

运行依赖

Windows 或 Linux,Python 3.10+ 和 probe-rs CLI。源码调试需要对应的 GDB。

配置

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

如需覆写本机工具路径或端口,可在 skill 目录下复制 config.example.json 为 config.json(工具已在 PATH 时可省略):

{
  "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

Details

Repository
github.com/zhinkgit/embeddedskills
First seen
Jun 3, 2026

Questions

What does the probe-rs skill do for embedded debugging?

The probe-rs skill wraps the probe-rs command-line tool for probe discovery, firmware flashing, target reset, memory reads and writes, one-shot GDB Server debugging, and RTT log reading. It lets an AI agent run these steps on a microcontroller without manual command entry.

How do I install the probe-rs skill?

Run npx -y skills add zhinkgit/embeddedskills --skill probe-rs -y in your project. Once installed, the agent can flash firmware, read memory, and read RTT logs through probe-rs.

What does the probe-rs skill need before it can flash a chip?

It needs the probe-rs CLI installed, Python 3.10 or newer, and on Windows or Linux. Debugging from source also requires a matching GDB, and the target chip name must be set in the project configuration because it is not guessed.

Does the probe-rs skill work with ST-Link and J-Link probes?

The skill's description names ST-Link, J-Link and CMSIS-DAP probes as triggers, and it selects a probe with a VID:PID[:Serial] selector. On Windows, driving a J-Link with probe-rs usually requires switching to the WinUSB driver, which affects SEGGER's official tools.

More from zhinkgit/embeddedskills

All 9

Similar to Probe Rs