一键导入
esp-idf-terminal
How to run ESP-IDF commands (idf.py) in this project
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
How to run ESP-IDF commands (idf.py) in this project
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | ESP-IDF Terminal |
| description | How to run ESP-IDF commands (idf.py) in this project |
This project uses ESP-IDF installed via the Espressif VS Code extension. The ESP-IDF environment is not available in a default shell — you must source a PowerShell profile script first.
.vscode/settings.json and find the idf.currentSetup value — this is IDF_PATH.Microsoft.*PowerShell_profile.ps1 under the ESP-IDF tools directory (typically C:\Espressif\tools\ on Windows).# Example: discover the profile script
Get-ChildItem -Path "C:\Espressif\tools" -Filter "Microsoft.*PowerShell_profile.ps1" -Recurse | Select -First 1
Source the discovered PowerShell profile, then run idf.py:
& '<path-to-PowerShell-profile>'; idf.py <command>
# Set target chip
& '<profile>'; idf.py set-target esp32s3
# Build
& '<profile>'; idf.py build
# Clean build
& '<profile>'; idf.py fullclean
# Flash and monitor
& '<profile>'; idf.py flash monitor
# Open menuconfig
& '<profile>'; idf.py menuconfig
idf.py. The idf.py.exe wrapper alone will fail without the full environment.export.bat or export.ps1 from the ESP-IDF source tree — they reference a different Python venv path and will fail.WaitMsBeforeAsync: 10000 and poll with command_status.main/idf_component.yml (ESP-IDF Component Manager).How to find and maintain hardware pinout documentation for supported boards
Ensure the serial COM port is available before flashing or monitoring an ESP32 device
Structured workflow for researching ESP-IDF component drivers, BSP headers, and struct compatibility before integration
Verify and manage the IDF build target (esp32, esp32s3, etc.) to avoid chip mismatch errors and wasted rebuild cycles