Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

ESP-IDF 常用命令

说明

  • 本文记录 ESP-IDF 开发中常用的构建, 清理和信息查看命令.
  • 更偏板级和具体开发板问题, 可参考 nanoESP32-C3.

常用命令

查看组件体积

idf.py size-components

重新生成配置与构建文件

idf.py reconfigure

常见配套命令

idf.py set-target esp32c3
idf.py menuconfig
idf.py build
idf.py flash
idf.py monitor
idf.py fullclean

使用建议

  • 目标芯片切换前, 先执行 set-target, 避免残留旧配置.
  • 遇到配置缓存异常时, 可尝试 reconfigurefullclean.
  • 关注 size-components 输出, 便于定位占空间较大的组件.

相关文档