vscode下的ESP-IDF环境安装总不对
Posted: Tue Jan 11, 2022 8:29 am
买了一块ESP32-S3的开发板,在VSCODE环境下安装ESP-IDFV4.3.2成功,编译加烧写均可以完成,但烧写后开发板上运行不正常,到论坛上查到说明需要ESP-IDF V4.4,安装后编译总有问题。
> Executing task: cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 .. <
-- Found Git: D:/.espressif/tools/idf-git/2.30.1/cmd/git.exe (found version "2.30.1.windows.1")
fatal: not a git repository (or any of the parent directories): .git
-- The C compiler identification is GNU 8.4.0
-- The CXX compiler identification is GNU 8.4.0
-- The ASM compiler identification is GNU
-- Found assembler: D:/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-8.4.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-gcc.exe
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: D:/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-8.4.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-gcc.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: D:/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-8.4.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-g++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Project is not inside a git repository, or git repository has no commits; will not use 'git describe' to determine PROJECT_VER.
-- Building ESP-IDF components for target esp32s3
-- Project sdkconfig file E:/ESP32-S3/esp32_demo/hello_world/sdkconfig
CMake Error at D:/ESP32/esp-idf/tools/cmake/component.cmake:301 (message):
Include directory 'D:/ESP32/esp-idf/components/mbedtls/mbedtls/include' is
not a directory.
Call Stack (most recent call first):
D:/ESP32/esp-idf/tools/cmake/component.cmake:472 (__component_add_include_dirs)
D:/ESP32/esp-idf/components/mbedtls/CMakeLists.txt:10 (idf_component_register)
-- Configuring incomplete, errors occurred!
See also "E:/ESP32-S3/esp32_demo/hello_world/build/CMakeFiles/CMakeOutput.log".
终端进程“C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -Command cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 ..”已终止,退出代码: 1。
> Executing task: cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 .. <
-- Found Git: D:/.espressif/tools/idf-git/2.30.1/cmd/git.exe (found version "2.30.1.windows.1")
fatal: not a git repository (or any of the parent directories): .git
-- The C compiler identification is GNU 8.4.0
-- The CXX compiler identification is GNU 8.4.0
-- The ASM compiler identification is GNU
-- Found assembler: D:/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-8.4.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-gcc.exe
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: D:/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-8.4.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-gcc.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: D:/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-8.4.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-g++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Project is not inside a git repository, or git repository has no commits; will not use 'git describe' to determine PROJECT_VER.
-- Building ESP-IDF components for target esp32s3
-- Project sdkconfig file E:/ESP32-S3/esp32_demo/hello_world/sdkconfig
CMake Error at D:/ESP32/esp-idf/tools/cmake/component.cmake:301 (message):
Include directory 'D:/ESP32/esp-idf/components/mbedtls/mbedtls/include' is
not a directory.
Call Stack (most recent call first):
D:/ESP32/esp-idf/tools/cmake/component.cmake:472 (__component_add_include_dirs)
D:/ESP32/esp-idf/components/mbedtls/CMakeLists.txt:10 (idf_component_register)
-- Configuring incomplete, errors occurred!
See also "E:/ESP32-S3/esp32_demo/hello_world/build/CMakeFiles/CMakeOutput.log".
终端进程“C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -Command cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 ..”已终止,退出代码: 1。