Error message
(1) The following error occurred when using ESP32IDF
-- Found Git: D:/git/soft/Git/cmd/git.exe (found version "2.38.1.windows.1")
-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- The ASM compiler identification is GNU
-- Found assembler: F:/HoloCubic/IDF/Enter_ESP-IDF_Tools_directory/tools/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: F:/HoloCubic/IDF/Enter_ESP-IDF_Tools_directory/tools/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin/xtensa-esp32-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: F:/HoloCubic/IDF/Enter_ESP-IDF_Tools_directory/tools/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin/xtensa-esp32-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 esp32
Dependencies lock doesn't exist, solving dependencies.
...................................................................................................................................................................................................................CMake Error at F:/HoloCubic/IDF/Enter_ESP-IDF_container_directory/esp-idf/tools/cmake/build.cmake:540 (message):
HINT: Component "espressif/esp-box" has suitable versions for other
targets: "esp32s3". Is your current target "esp32" set correctly?
ERROR: Solver failed processing dependency "espressif/esp-box" from the
manifest file
"F:/HoloCubic/github_esp_box_V0.5.0/esp-box/components/bsp\idf_component.yml".
Cannot find versions of "espressif/esp-box" satisfying "3.*" for the
current target "esp32".
Call Stack (most recent call first):
F:/HoloCubic/IDF/Enter_ESP-IDF_container_directory/esp-idf/tools/cmake/project.cmake:547 (idf_build_process)
CMakeLists.txt:13 (project)
-- Configuring incomplete, errors occurred!
See also "F:/HoloCubic/github_esp_box_V0.5.0/esp-box/examples/factory_demo/build/CMakeFiles/CMakeOutput.log".
vscode solution
(1) Open the chip model configuration interface
(2) Set chip model
(3) Set the connection method between the chip and the computer. Because mine uses USB connection, I selected the second one.
Use command line processing method
(1) If you are using the command line, you only need to enter the following command.
idf.py set-target <target>
# 示例
idf.py set-target esp32s3
(2) Note that if you use this command in the vscode command line, the setting will not be successful, and the following error will appear.
Target 'esp32' specified on command line is not consistent with target 'esp32s3' in the environment.
verify
(1) Open the sdkconfig file
(2) Pressctrl+f
searchCONFIG_IDF_TARGET
(3) Check whether it is the target chip. For example, I have an esp32s3 model chip, then if itCONFIG_IDF_TARGET="esp32s3"
is an esp32 model chip, that isCONFIG_IDF_TARGET="esp32"