Since I updated the dependencies and platfomio installed the Espressif 32 7 platform, the build keeps failing with this error:
pyenv shell 3.10.0
Processing esp32-c6-devkitm-1 (platform: espressif32; board: esp32-c6-devkitm-1; framework: espidf)
Verbose mode can be enabled via -v, --verbose option
CONFIGURATION:
PLATFORM: Espressif 32 (7.0.1) > Espressif ESP32-C6-DevKitM-1
HARDWARE: ESP32C6 160MHz, 320KB RAM, 4MB Flash
DEBUG: Current (cmsis-dap) External (cmsis-dap, esp-bridge, esp-builtin, 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)
PACKAGES:
framework-espidf @ 4.60001.0 (6.0.1)
tool-cmake @ 3.30.2
tool-esp-rom-elfs @ 0.0.1+20241011
tool-esptoolpy @ 2.41100.0 (4.11.0)
tool-ninja @ 1.13.2
tool-riscv32-esp-elf-gdb @ 12.1.0+20221002
tool-xtensa-esp-elf-gdb @ 12.1.0+20221002
toolchain-esp32ulp @ 1.23800.240113 (2.38.0)
toolchain-riscv32-esp @ 15.2.0+20251204
Reading CMake configuration…
– Component directory /Users/myusername/.platformio/packages/framework-espidf/components/mqtt does not contain a CMakeLists.txt file. No component will be added
– git rev-parse returned ‘fatal: not a git repository (or any of the parent directories): .git’
– Minimal build - OFF
– git rev-parse returned ‘fatal: not a git repository (or any of the parent directories): .git’
– Could not use ‘git describe’ to determine PROJECT_VER.
– Building ESP-IDF components for target esp32c6
– KCONFIG_REPORT_VERBOSITY not set, using default
– Project sdkconfig file /Users/myusername/Documents/PlatformIO/Projects/Mini-C6-Controller/sdkconfig.esp32-c6-devkitm-1
/Users/myusername/Documents/PlatformIO/Projects/Mini-C6-Controller/sdkconfig.esp32-c6-devkitm-1:1293 CONFIG_ESP_SYSTEM_PMP_IDRAM_SPLIT was replaced with CONFIG_ESP_SYSTEM_MEMPROT
/Users/myusername/Documents/PlatformIO/Projects/Mini-C6-Controller/sdkconfig.esp32-c6-devkitm-1:1294 CONFIG_ESP_SYSTEM_PMP_LP_CORE_RESERVE_MEM_EXECUTABLE was replaced with CONFIG_ESP_SYSTEM_MEMPROT_PMP_LP_CORE_RESERVE_MEM_EXEC
– Configuring incomplete, errors occurred!
fatal: not a git repository (or any of the parent directories): .git
Traceback (most recent call last):
File “”, line 198, in _run_module_as_main
File “”, line 88, in _run_code
File “/Users/myusername/.platformio/penv/.espidf-6.0.1/lib/python3.11/site-packages/kconfgen/main.py”, line 18, in
main()
File “/Users/myusername/.platformio/penv/.espidf-6.0.1/lib/python3.11/site-packages/kconfgen/core.py”, line 830, in main
config.load_config(temp_file, replace=False, print_report=print_report)
File “/Users/myusername/.platformio/penv/.espidf-6.0.1/lib/python3.11/site-packages/esp_kconfiglib/core.py”, line 1220, in load_config
self._load_config(filename, replace, load_deprecated, is_main_sdkconfig)
File “/Users/myusername/.platformio/penv/.espidf-6.0.1/lib/python3.11/site-packages/esp_kconfiglib/core.py”, line 1539, in _load_config
f"Trying to set symbol {choice.selection.name} to n, but it is currently selected "
^^^^^^^^^^^^^^^^^^^^^
AttributeError: ‘NoneType’ object has no attribute ‘name’
CMake Error at /Users/myusername/.platformio/packages/framework-espidf/tools/cmake/kconfig.cmake:243 (message):
Failed to run kconfgen
(/Users/myusername/.platformio/penv/.espidf-6.0.1/bin/python;-m;kconfgen;–list-separator=semicolon;–kconfig;/Users/myusername/.platformio/packages/framework-espidf/Kconfig;–sdkconfig-rename;/Users/myusername/.platformio/packages/framework-espidf/sdkconfig.rename;–config;/Users/myusername/Documents/PlatformIO/Projects/Mini-C6-Controller/sdkconfig.esp32-c6-devkitm-1;–env;IDF_MINIMAL_BUILD=n;–env-file;/Users/myusername/Documents/PlatformIO/Projects/Mini-C6-Controller/.pio/build/esp32-c6-devkitm-1/config.env).
Error 1
Call Stack (most recent call first):
/Users/myusername/.platformio/packages/framework-espidf/tools/cmake/build.cmake:772 (__kconfig_generate_config)
/Users/myusername/.platformio/packages/framework-espidf/tools/cmake/project.cmake:775 (idf_build_process)
CMakeLists.txt:3 (project)
I notice in the log “PLATFORM: Espressif 32 (7.0.1) “ and then “framework-espidf @ 4.60001.0 (6.0.1)” which seems a mismatch ? But i’m quite beginner to this so I’m not sure.
Creating a new project seems to be building fine though…