Build iar

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

Build iar is an AI agent skill from the GitHub repository LeoKemp223/embed-ai-tool. 当需要通过 IAR Embedded Workbench 命令行编译嵌入式工程,调用自带脚本解析工程文件、执行构建并定位固件产物时使用。

How to use this skill

Skill file

构建 IAR Embedded Workbench 工程

适用场景

必要输入

自动探测

执行步骤

  1. 先阅读 references/usage.md,确认本次是环境探测、工程扫描、列出配置,还是执行编译。
  2. 若不确定环境是否就绪,先运行自带脚本 scripts/iar_builder.py 的 --detect 模式确认。
  3. 若不确定工程文件位置,使用 --scan 搜索工作区。
  4. 使用 --list-configs --project X.ewp 确认可用配置,再用 --project + --config 执行编译。
  5. 读取脚本输出的构建结果和产物扫描报告,重点关注首选产物(.out/ELF > HEX > BIN)、错误/警告统计和失败分类。
  6. 将构建配置、产物路径、芯片型号和工具链信息写回 Project Profile,并在需要时交给下游 skill。

失败分流

平台说明

输出约定

交接关系

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.