Code: Select all
C:\esp\projects\hello_world>idf.py set-target esp32s2
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: esp32s2, new sdkconfig created. Existing sdkconfig renamed to sdkconfig.old.
Running cmake in directory c:\esp\projects\hello_world\build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DIDF_TARGET=esp32s2 -DCCACHE_ENABLE=1 c:\esp\projects\hello_world"...
-- Found Git: C:/Program Files/Git/cmd/git.exe (found version "2.29.2.windows.3")
CMake Error at C:/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):
C:/esp/esp-idf/tools/cmake/project.cmake:35 (__target_init)
CMakeLists.txt:5 (include)
-- Configuring incomplete, errors occurred!
cmake failed with exit code 1
Code: Select all
A fatal error occurred: This chip is ESP32-S2 not ESP32. Wrong --chip argument?
CMake Error at run_serial_tool.cmake:50 (message):
C:/esp/.espressif/python_env/idf4.3_py3.9_env/Scripts/python.exe
C:/esp/esp-idf/components/esptool_py/esptool/esptool.py --chip esp32 failed
My environment is the latest Python, the latest git, today's ESP-IDF master branch, and esp-idf-tools-setup-2.3.
git clone --recursive https://github.com/espressif/esp-idf.git
Can anyone tell me how to create a working ESP32S2 build environment?
Thank you