Tried to update ESP-IDF and everything broke

ZacDaMan
Posts: 47
Joined: Wed Dec 22, 2021 7:40 pm

Tried to update ESP-IDF and everything broke

Postby ZacDaMan » Fri Oct 21, 2022 2:28 am

I use ESP-IDF through VSCode; I have the extension, which is primarily how I build projects. I previously had ESP-IDF version 3.1.somethingorother installed, which was working, but I wanted to update to the latest. I cleared out my install folder (F:\Users\Isaac\esp-idf) and ran the installation tool, esp-idf-tools-setup-online-2.16.exe. This ran without any errors popping up, but now when I go to build a project (using the cylinder icon in vscode) it outputs this:

Code: Select all

-- Found Git: C:/Program Files/Git/cmd/git.exe (found version "2.19.0.windows.1") 
-- 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: F:/Users/Isaac/.espressif/tools/riscv32-esp-elf/esp-2021r1-8.4.0/riscv32-esp-elf/bin/riscv32-esp-elf-gcc.exe
-- Check for working C compiler: F:/Users/Isaac/.espressif/tools/riscv32-esp-elf/esp-2021r1-8.4.0/riscv32-esp-elf/bin/riscv32-esp-elf-gcc.exe
-- Check for working C compiler: F:/Users/Isaac/.espressif/tools/riscv32-esp-elf/esp-2021r1-8.4.0/riscv32-esp-elf/bin/riscv32-esp-elf-gcc.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features       
-- Detecting C compile features - done
-- Check for working CXX compiler: F:/Users/Isaac/.espressif/tools/riscv32-esp-elf/esp-2021r1-8.4.0/riscv32-esp-elf/bin/riscv32-esp-elf-g++.exe
-- Check for working CXX compiler: F:/Users/Isaac/.espressif/tools/riscv32-esp-elf/esp-2021r1-8.4.0/riscv32-esp-elf/bin/riscv32-esp-elf-g++.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- 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 esp32c3
-- Project sdkconfig file F:/Users/Isaac/Documents/ESP-IDF/onoff_server/sdkconfig
Loading defaults file F:/Users/Isaac/Documents/ESP-IDF/onoff_server/sdkconfig.defaults...
Loading defaults file F:/Users/Isaac/Documents/ESP-IDF/onoff_server/sdkconfig.defaults.esp32c3...
CMake Error at F:/Users/Isaac/esp-idf/tools/cmake/crosstool_version_check.cmake:37 (message):


  Toolchain:
  F:/Users/Isaac/.espressif/tools/riscv32-esp-elf/esp-2021r1-8.4.0/riscv32-esp-elf/bin/riscv32-esp-elf-gcc.exe,
  crosstool-ng version esp-2021r1 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):
  F:/Users/Isaac/esp-idf/components/esp_common/project_include.cmake:7 (crosstool_version_check)
  F:/Users/Isaac/esp-idf/tools/cmake/build.cmake:325 (include)
  F:/Users/Isaac/esp-idf/tools/cmake/build.cmake:534 (__build_process_project_includes)
  F:/Users/Isaac/esp-idf/tools/cmake/project.cmake:384 (idf_build_process)
  CMakeLists.txt:8 (project)


-- Configuring incomplete, errors occurred!
See also "F:/Users/Isaac/Documents/ESP-IDF/onoff_server/build/CMakeFiles/CMakeOutput.log".
See also "F:/Users/Isaac/Documents/ESP-IDF/onoff_server/build/CMakeFiles/CMakeError.log".

 *  The terminal process "C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -Command cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 .." terminated with exit code: 1.
Additionally, I get messages saying something like "Run idf.py", but I seem to be completely unable to do this. Running `idf.py fullclean` from a terminal inside the project folder, I get

Code: Select all

PS F:\Users\Isaac\Documents\ESP-IDF\onoff_server> idf.py fullclean
idf.py : The term 'idf.py' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is 
correct and try again.
At line:1 char:1
+ idf.py fullclean
+ ~~~~~~
    + CategoryInfo          : ObjectNotFound: (idf.py:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
I have added IDF_PATH as
F:\Users\Isaac\esp-idf
to my system variables and added
%IDF_PATH%\tools
to my path.

Help?

HPekiM
Posts: 4
Joined: Mon Oct 10, 2022 5:54 pm

Re: Tried to update ESP-IDF and everything broke

Postby HPekiM » Sat Oct 22, 2022 9:10 am

same problem here :/

HPekiM
Posts: 4
Joined: Mon Oct 10, 2022 5:54 pm

Re: Tried to update ESP-IDF and everything broke

Postby HPekiM » Sat Oct 22, 2022 9:24 am

Adding environment variable IDF_MAINTAINER (set to '1') - as suggested in the above shown error message - fixed it!

ZacDaMan
Posts: 47
Joined: Wed Dec 22, 2021 7:40 pm

Re: Tried to update ESP-IDF and everything broke

Postby ZacDaMan » Mon Oct 24, 2022 7:59 pm

I also tried defining IDF_MAINTAINER, and it does build, but I'm worried that ignoring the error like that could have a negative impact and would like to fix the issue if possible.

Who is online

Users browsing this forum: Baidu [Spider], Google [Bot] and 81 guests