PlatformIO Community

Menuconfig fails after update

I might not be in the right subforum, but as I have a problem with a command I typed in the CLI I’d post it here. I’m sure it’s a small thing and you can help me in no time.

Trying to alter the partition table of an ESP32 in an existing project ESP-IDF in Visual Studio Code after updating the platform, I’m running into the following errors:

PS D:\CASWorkspace\NodeMCU-HelloWorld> pio run -t menuconfig
Processing nodemcu-32s (platform: espressif32; board: nodemcu-32s; framework: espidf)
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via `-v, --verbose` option
PLATFORM: Espressif 32 (4.1.0) > NodeMCU-32S
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (esp-prog) External (esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
 - framework-espidf 3.40302.0 (4.3.2)
 - tool-cmake 3.16.4
 - tool-esptoolpy 1.30100.210531 (3.1.0)
 - tool-idf 1.0.1
 - tool-mconf 1.4060000.20190628 (406.0.0)
 - tool-ninja 1.9.0
 - toolchain-esp32ulp 1.22851.191205 (2.28.51)
Reading CMake configuration...
LDF: Library Dependency Finder ->
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 0 compatible libraries
Scanning dependencies...
No dependencies
Building in release mode
Running menuconfig...
[0/1] Re-running CMake...
fatal: not a git repository (or any of the parent directories): .git
-- 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 esp32
-- Project sdkconfig file D:/CASWorkspace/NodeMCU-HelloWorld/sdkconfig.nodemcu-32s
CMake Error at C:/Users/cbergs/.platformio/packages/framework-espidf/tools/cmake/crosstool_version_check.cmake:37 (message):

  crosstool-ng version esp-2020r3 doesn't match supported version esp-2021r2

  Please try to run ' 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):
  C:/Users/cbergs/.platformio/packages/framework-espidf/components/esp32/project_include.cmake:31 (crosstool_version_check)
  C:/Users/cbergs/.platformio/packages/framework-espidf/tools/cmake/build.cmake:315 (include)
  C:/Users/cbergs/.platformio/packages/framework-espidf/tools/cmake/build.cmake:466 (__build_process_project_includes)
  CMakeLists.txt:3 (project)

-- Configuring incomplete, errors occurred!
See also "D:/CASWorkspace/NodeMCU-HelloWorld/.pio/build/nodemcu-32s/CMakeFiles/CMakeOutput.log".
C:\Users\cbergs\.platformio\packages\tool-cmake\bin\cmake.exe -SD:\CASWorkspace\NodeMCU-HelloWorld -BD:\CASWorkspace\NodeMCU-HelloWorld\.pio\build\nodemcu-32s
ninja: error: rebuilding '': subcommand failed
Error: Couldn't execute 'menuconfig' target.
scons: *** [menuconfig] Explicit exit, status 1
========================== [FAILED] Took 12.96 seconds  ======================= 

I’d be glad for any help. Thanks for putting your time into this!


Does this occur with platform-espressif32/examples/espidf-blink at develop · platformio/platform-espressif32 · GitHub? When you open a CLI and use pio platform update espressif32 does it help?

Thanks for your Input.

Somehow the installation was corrupted by the mentioned update.
I solved the problem by reinstalling vscode, platformio and the espressif platform.