Flash keil

From LeoKemp223/embed-ai-tool · View interactive version

Flash keil is an AI agent skill from the GitHub repository LeoKemp223/embed-ai-tool. 当需要通过 Keil MDK 内置调试器烧录固件到目标板时使用,利用工程中已配置的调试器和 Flash 算法执行下载。

How to use this skill

Skill file

Keil MDK 烧录

适用场景

必要输入

自动探测

执行步骤

  1. 先阅读 references/usage.md,确认本次操作。
  2. 对于常见场景,直接一次调用完成探测+烧录:

```bash

python scripts/keil_flasher.py --detect --flash --project <工程文件> --target <目标名>

```

  1. 读取脚本输出的烧录结果报告,关注成功/失败状态、调试器类型和日志证据。
  2. 将烧录结果写回 Project Profile,推荐下一步 skill。

失败分流

平台说明

输出约定

脚本执行完成后,必须将以下关键信息提取并呈现给用户:

示例输出格式:

烧录成功 ✅
  工程: Demo02.uvprojx → 目标: Demo02
  芯片: STM32F103RC | 调试器: ST-Link
  固件: Demo02.axf (519.6 KB)
  状态: Erase Done → Programming Done → Verify OK → Application running

交接关系

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.