Flash platformio

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

Flash platformio is an AI agent skill from the GitHub repository LeoKemp223/embed-ai-tool. 当需要通过 PlatformIO 烧录固件到目标板时使用,利用 platformio.ini 中的上传配置自动完成烧录。

How to use this skill

Skill file

PlatformIO 烧录

适用场景

必要输入

自动探测

执行步骤

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

```bash

python scripts/pio_flasher.py --flash --project-dir <工程目录> --env <环境名>

```

  1. 若需指定上传端口:

```bash

python scripts/pio_flasher.py --flash --project-dir <工程目录> --env <环境名> --upload-port COM3

```

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

失败分流

输出约定

示例输出格式:

烧录成功 ✅
  工程: ESP32_DEV → 环境: esp32dev
  板卡: esp32dev | 平台: espressif32
  固件: firmware.bin (200.0 KB)
  耗时: 15.3 秒

交接关系

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.