·开发板: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:\Work\ESP
·solution文件路径:F:\Project\IOT\ESP-solution\esp-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'.
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:\Work\ESP\python_env\idf4.3_py3.8_env\Scripts
F:\esp-idf>S:
S:\Work\ESP\python_env\idf4.3_py3.8_env\Scripts>F:\esp-idf\export.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-idf\install.bat' to install it.
ERROR: tool xtensa-esp32s2-elf has no installed versions. Please run 'F:\esp-idf\install.bat' to install it.
ERROR: tool xtensa-esp32s3-elf has no installed versions. Please run 'F:\esp-idf\install.bat' to install it.
ERROR: tool riscv32-esp-elf has no installed versions. Please run 'F:\esp-idf\install.bat' to install it.
ERROR: tool esp32ulp-elf has no installed versions. Please run 'F:\esp-idf\install.bat' to install it.
ERROR: tool esp32s2ulp-elf has no installed versions. Please run 'F:\esp-idf\install.bat' to install it.
ERROR: tool cmake has no installed versions. Please run 'F:\esp-idf\install.bat' to install it.
ERROR: tool openocd-esp32 has no installed versions. Please run 'F:\esp-idf\install.bat' to install it.
ERROR: tool ninja has no installed versions. Please run 'F:\esp-idf\install.bat' to install it.
ERROR: tool idf-exe has no installed versions. Please run 'F:\esp-idf\install.bat' to install it.
ERROR: tool ccache has no installed versions. Please run 'F:\esp-idf\install.bat' to install it.
ERROR: tool dfu-util has no installed versions. Please run 'F:\esp-idf\install.bat' to install it.
在vscode的终端尝试输入后则反馈无法执行bat文件
请问现在需要如何配置才能正确更新solution所需的环境?