Page 1 of 1

esp-idf 5.0 升级后 编译问题

Posted: Sat Mar 05, 2022 10:31 am
by lwshowl
以前用的 idf4.4 编译的,今天升级5.0 后出现这样的问题:

OJECT_VER.
-- Building ESP-IDF components for target esp32c3
-- Project sdkconfig file H:/esp32test/esp32c3_test/template-app/sdkconfig
CMake Error at H:/esp-idf/tools/cmake/crosstool_version_check.cmake:37 (message):


Toolchain:
C:/Users/xy/.espressif/tools/riscv32-esp-elf/1.24.0.123_64eb9ff-8.4.0/riscv32-esp-elf/bin/riscv32-esp-elf-gcc.exe,
crosstool-ng version 1.24.0.123_64eb9ff doesn't match supported version
esp-2021r2-patch3

Please try to run 'idf.py fullclean' to solve it quickly.

Check Getting Started documentation if the error continues.

You can override this error and proceed with build by defining the
IDF_MAINTAINER environment variable.

Call Stack (most recent call first):
H:/esp-idf/components/esp_common/project_include.cmake:7 (crosstool_version_check)
H:/esp-idf/tools/cmake/build.cmake:324 (include)
H:/esp-idf/tools/cmake/build.cmake:537 (__build_process_project_includes)
H:/esp-idf/tools/cmake/project.cmake:422 (idf_build_process)
CMakeLists.txt:6 (project)


-- Configuring incomplete, errors occurred!
See also "H:/esp32test/esp32c3_test/template-app/build/CMakeFiles/CMakeOutput.log".
See also "H:/esp32test/esp32c3_test/template-app/build/CMakeFiles/CMakeError.log".
cmake failed with exit code 1

Re: esp-idf 5.0 升级后 编译问题

Posted: Sat Mar 05, 2022 10:40 am
by lwshowl
看起来好像是工具链没选择正确,现在文件夹里有两套工具链 一套是1.24 另一套是 2021r2-path3
请问工具链是在哪里指定的?