Flash idf

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

Flash idf is an AI agent skill from the GitHub repository LeoKemp223/embed-ai-tool. 当需要通过 ESP-IDF 工具链烧录固件到 ESP32 系列芯片,或启动调试会话时使用。

How to use this skill

Skill file

ESP-IDF 烧录调试

适用场景

必要输入

首次参数确认

首次调用时,必须向用户确认以下参数,不得跳过或自动使用探测值:

当 Project Profile 中已记录过上述参数(即非首次),可直接复用,无需再次询问。

自动探测

执行步骤

  1. 先阅读 references/usage.md,确认本次是环境探测、烧录、擦除,还是启动调试。
  2. 若不确定环境状态,先运行自带脚本 scripts/idf_flasher.py 的 --detect 模式确认。
  3. 使用 --flash --project <path> 执行烧录,可通过 --port 和 --baud 指定串口参数。
  4. 若用户需要擦除 Flash,使用 --erase-flash。
  5. 若用户需要烧录后立即查看串口输出,提示手动运行 idf.py flash monitor(交互式长运行命令)。
  6. 若用户需要 JTAG 调试,使用 --debug 检测并启动 OpenOCD 服务。
  7. 读取脚本输出的烧录结果报告,重点关注烧录状态和失败分类。
  8. 将烧录配置和结果写回 Project Profile。

失败分流

平台说明

输出约定

交接关系

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.