乐鑫技术交流
直播中

吴湛

10年用户 768经验值
擅长:可编程逻辑
私信 关注
[问答]

如何使用VScode IDF插件编译iot-solution程序?

环境相关

·开发板:ESP32-S2-Saola-1

·系统:Windows10

·IDE:VScode v1.63.1

·插件:Espressif IDF v1.2.0

·esp-idf版本:v4.3.1

·插件IDF安装路径:F:esp-idf

·插件TOOLS安装路径:S:WorkESP

·solution文件路径:F:ProjectIOTESP-solutionesp-iot-solution-usb-add_usb_solutions



问题描述

在经过多次尝试后我成功安装了插件,起初我根据网上的教程手动安装python3.8并配置环境但还是不行,后来发现插件自动会安装python所以把前面自己安装的都卸掉了。

尝试编译烧写hello world、IDF库的blink都可以正常工作。

然后我想要尝试ESP32-S2的USB功能,我下载了ESP-IOT-solution的USB分支,使用code打开usb_camera_wifi_transfer文件夹。

编译,分别报找不到路径、找不到USB组件
Code: Select all
CMake Warning at CMakeLists.txt:9 (message):
  Can't detect IOT_SOLUTION_PATH in your environment
  CMake Error at F:/esp-idf/tools/cmake/build.cmake:191 (message):
  Failed to resolve component 'usb'.

于是根据ESP-IOT-solution的指示,我尝试了在cmd中输入
Code: Select all
F:esp-idf>export.bat
Error: The following tools are not installed in your environment.
  python
Please use the Windows Tool installer for setting up your environment.
Download link: https://dl.espressif.com/dl/esp-idf/
For more details please visit our website: https://docs.espressif.com/projects/esp-idf/en/latest/esp32/get-started/windows-setup.html

F:esp-idf>cd S:WorkESPpython_envidf4.3_py3.8_envScripts

F:esp-idf>S:

S:WorkESPpython_envidf4.3_py3.8_envScripts>F:esp-idfexport.bat
Setting IDF_PATH: F:esp-idf
Adding ESP-IDF tools to PATH...
ERROR: tool xtensa-esp32-elf has no installed versions. Please run 'F:esp-idfinstall.bat' to install it.
ERROR: tool xtensa-esp32s2-elf has no installed versions. Please run 'F:esp-idfinstall.bat' to install it.
ERROR: tool xtensa-esp32s3-elf has no installed versions. Please run 'F:esp-idfinstall.bat' to install it.
ERROR: tool riscv32-esp-elf has no installed versions. Please run 'F:esp-idfinstall.bat' to install it.
ERROR: tool esp32ulp-elf has no installed versions. Please run 'F:esp-idfinstall.bat' to install it.
ERROR: tool esp32s2ulp-elf has no installed versions. Please run 'F:esp-idfinstall.bat' to install it.
ERROR: tool cmake has no installed versions. Please run 'F:esp-idfinstall.bat' to install it.
ERROR: tool openocd-esp32 has no installed versions. Please run 'F:esp-idfinstall.bat' to install it.
ERROR: tool ninja has no installed versions. Please run 'F:esp-idfinstall.bat' to install it.
ERROR: tool idf-exe has no installed versions. Please run 'F:esp-idfinstall.bat' to install it.
ERROR: tool ccache has no installed versions. Please run 'F:esp-idfinstall.bat' to install it.
ERROR: tool dfu-util has no installed versions. Please run 'F:esp-idfinstall.bat' to install it.

cmd中分别报监测不到python和找不到tools

在vscode的终端尝试输入后则反馈无法执行bat文件

请问现在需要如何配置才能正确更新solution所需的环境?

更多回帖

发帖
×
20
完善资料,
赚取积分