Can't compile projects for esp32c6 target
Posted: Sun Jun 09, 2024 9:59 am
Hello.
Im compilling my projects for ESP32 for a long time via windows console.
Im using Notepad++ for writing code and windows console for building and flashing ESP32.
Everything is perfect. All projects are compiled as well with standard chain:
Today I tried to compile my project for ESP32-C6-WROOM.
I tried to set target by
but the error appeared:
Also I tried to set other variants: esp32, esp32c2, esp32c3, esp32s2, esp32h2 and projects compiled ok.
I'm using IDF versions 5.2.2 and 5.2.1 and the results the same.
IDF 5.2.2 was downloaded today from official site and installed as I have done it before with previous versions.
Could you help me what is the problem and how to fix it?
Im compilling my projects for ESP32 for a long time via windows console.
Im using Notepad++ for writing code and windows console for building and flashing ESP32.
Everything is perfect. All projects are compiled as well with standard chain:
- idf.py build
- idf.py flash or idf.py app-flash
Today I tried to compile my project for ESP32-C6-WROOM.
I tried to set target by
- idf.py set-target esp32c6
but the error appeared:
- C:\Proj\IoTG>idf.py set-target esp32c6
- Adding "set-target"'s dependency "fullclean" to list of commands with default set of options.
- Executing action: fullclean
- Executing action: set-target
- Set Target to: esp32c6, new sdkconfig will be created.
- Running cmake in directory C:\Proj\IoTG\build
- Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DPYTHON=C:\Espressif\python_env\idf5.2_py3.11_env\Scripts\python.exe -DESP_PLATFORM=1 -DIDF_TARGET=esp32c6 -DCCACHE_ENABLE=1 C:\StecProj\IoTGarden"...
- -- Existing sdkconfig 'C:/Proj/IoTG/sdkconfig' renamed to 'C:/Proj/IoTG/sdkconfig.old'.
- -- Found Git: C:/Espressif/tools/idf-git/2.44.0/cmd/git.exe (found version "2.44.0.windows.1")
- -- ccache will be used for faster recompilation
- -- The C compiler identification is GNU 13.2.0
- -- The CXX compiler identification is GNU 13.2.0
- -- The ASM compiler identification is GNU
- -- Found assembler: C:/Espressif/tools/riscv32-esp-elf/esp-13.2.0_20230928/riscv32-esp-elf/bin/riscv32-esp-elf-gcc.exe
- -- Detecting C compiler ABI info
- -- Detecting C compiler ABI info - done
- -- Check for working C compiler: C:/Espressif/tools/riscv32-esp-elf/esp-13.2.0_20230928/riscv32-esp-elf/bin/riscv32-esp-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: C:/Espressif/tools/riscv32-esp-elf/esp-13.2.0_20230928/riscv32-esp-elf/bin/riscv32-esp-elf-g++.exe - skipped
- -- Detecting CXX compile features
- -- Detecting CXX compile features - done
- -- 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
- -- Project sdkconfig file C:/Proj/IoTG/sdkconfig
- Traceback (most recent call last):
- File "<frozen runpy>", line 198, in _run_module_as_main
- File "<frozen runpy>", line 88, in _run_code
- File "C:\Espressif\python_env\idf5.2_py3.11_env\Lib\site-packages\kconfgen\__main__.py", line 16, in <module>
- main()
- File "C:\Espressif\python_env\idf5.2_py3.11_env\Lib\site-packages\kconfgen\core.py", line 402, in main
- output_function(deprecated_options, config, temp_file)
- File "C:\Espressif\python_env\idf5.2_py3.11_env\Lib\site-packages\kconfgen\core.py", line 598, in write_json
- config_dict = get_json_values(config)
- ^^^^^^^^^^^^^^^^^^^^^^^
- File "C:\Espressif\python_env\idf5.2_py3.11_env\Lib\site-packages\kconfgen\core.py", line 593, in get_json_values
- write_node(n)
- File "C:\Espressif\python_env\idf5.2_py3.11_env\Lib\site-packages\kconfgen\core.py", line 589, in write_node
- val = int(val)
- ^^^^^^^^
- ValueError: invalid literal for int() with base 10: ''
- CMake Error at C:/Espressif/frameworks/esp-idf-v5.2.2/tools/cmake/kconfig.cmake:209 (message):
- Failed to run kconfgen
- (C:/Espressif/python_env/idf5.2_py3.11_env/Scripts/python.exe;-m;kconfgen;--list-separator=semicolon;--kconfig;C:/Espressif/frameworks/esp-idf-v5.2.2/Kconfig;--sdkconfig-rename;C:/Espressif/frameworks/esp-idf-v5.2.2/sdkconfig.rename;--config;C:/Proj/IoTG/sdkconfig;--env-file;C:/Proj/IoTG/build/config.env).
- Error 1
- Call Stack (most recent call first):
- C:/Espressif/frameworks/esp-idf-v5.2.2/tools/cmake/build.cmake:615 (__kconfig_generate_config)
- C:/Espressif/frameworks/esp-idf-v5.2.2/tools/cmake/project.cmake:605 (idf_build_process)
- CMakeLists.txt:6 (project)
- -- Configuring incomplete, errors occurred!
- See also "C:/Proj/IoTG/build/CMakeFiles/CMakeOutput.log".
- cmake failed with exit code 1, output of the command is in the C:\Proj\IoTG\build\log\idf_py_stderr_output_7772 and C:\Proj\IoTG\build\log\idf_py_stdout_output_7772
I'm using IDF versions 5.2.2 and 5.2.1 and the results the same.
IDF 5.2.2 was downloaded today from official site and installed as I have done it before with previous versions.
Could you help me what is the problem and how to fix it?