进入环境: 右键在集成环境中打开文件夹,然后执行以下命令: . ~/esp/esp-idf/export.sh
. ~/esp/esp-idf/export.sh
编译 idf.py build
idf.py build