Code: Select all
$ idf.py set-target esp32c3
Adding "set-target"'s dependency "fullclean" to list of commands with default set of options.
Executing action: fullclean
Build directory '/home/bergm006/esp-projects/hello_world/build' not found. Nothing to clean.
Executing action: set-target
Set Target to: esp32c3, new sdkconfig created. Existing sdkconfig renamed to sdkconfig.old.
Running cmake in directory /home/bergm006/esp-projects/hello_world/build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DPYTHON=/home/bergm006/.espressif/python_env/idf5.0_py3.10_env/bin/python -DESP_PLATFORM=1 -DIDF_TARGET=esp32c3 -DCCACHE_ENABLE=0 /home/bergm006/esp-projects/hello_world"...
CMake Error at /home/bergm006/esp/esp-idf/tools/cmake/targets.cmake:19 (message):
IDF_TARGET in CMake cache does not match IDF_TARGET environment variable.
To change the target, clear the build directory and sdkconfig file, and
build the project again
Call Stack (most recent call first):
/home/bergm006/esp/esp-idf/tools/cmake/project.cmake:7 (__target_init)
CMakeLists.txt:5 (include)
-- Configuring incomplete, errors occurred!
cmake failed with exit code 1, output of the command is in the /home/bergm006/esp-projects/hello_world/build/log/idf_py_stderr_output_529336 and /home/bergm006/esp-projects/hello_world/build/log/idf_py_stdout_output_529336