Help us improve
Share bugs, ideas, or general feedback.
From embedded-dev — RIPER-5 嵌入式固件开发协议
Flashes firmware to target boards using Keil MDK's built-in debugger (ST-Link, J-Link, CMSIS-DAP) and project-configured flash algorithms. Automatically detects debugger type and performs Flash Download.
npx claudepluginhub duncanyoung-1/embedded-dev --plugin embedded-devHow this skill is triggered — by the user, by Claude, or both
Slash command
/embedded-dev:flash-keilThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
- `Project Profile` 中标明 `build_system: keil` 或工作区中存在 `.uvprojx` / `.uvproj` 文件。
Compiles embedded Keil MDK projects via command line. Parses .uvprojx files, selects targets, runs UV4.exe build, and locates AXF/HEX/BIN firmware artifacts.
Develops complete firmware and driver modules for ARM Cortex-M microcontrollers (Teensy, STM32, nRF52, SAMD), covering peripherals, concurrency patterns, and performance optimization.
Applies 10 pre-set color/font themes or generates custom ones for slides, documents, reports, and HTML landing pages.
Share bugs, ideas, or general feedback.
Project Profile 中标明 build_system: keil 或工作区中存在 .uvprojx / .uvproj 文件。.uvprojx / .uvproj 工程文件路径(或从 Project Profile 获取)。build-keil 的 UV4.exe 探测逻辑(配置文件 → 环境变量 → 常见路径 → PATH)。<DriverSelection> 识别调试器类型(ST-Link、J-Link、CMSIS-DAP、ULINK)。python scripts/keil_flasher.py --detect --flash --project <工程文件> --target <目标名>
Project Profile,推荐下一步 skill。environment-missing:Keil MDK 未安装或 UV4.exe 不可用。connection-failure:调试器连接失败(USB 未连接、驱动问题、目标板未上电)。project-config-error:工程文件中的 Flash 配置无效或目标名不存在。脚本执行完成后,必须将以下关键信息提取并呈现给用户:
示例输出格式:
烧录成功 ✅
工程: Demo02.uvprojx → 目标: Demo02
芯片: STM32F103RC | 调试器: ST-Link
固件: Demo02.axf (519.6 KB)
状态: Erase Done → Programming Done → Verify OK → Application running
serial-monitor(查看串口输出)或 debug-gdb-openocd(在线调试)。build-keil 接收编译成功的工程信息。serial-monitor(查看串口输出)或 debug-gdb-openocd(在线调试)。