idf.py set-target esp32s3 error

seanfan@qq.com
Posts: 16
Joined: Mon Dec 14, 2020 1:02 pm

idf.py set-target esp32s3 error

Postby seanfan@qq.com » Sat Jul 16, 2022 2:34 am

esp-idf版本分支为release/v5.0,当idf.py set-target esp32s3 时,提示如下错误,请问应如何处理?谢谢
PS D:\software\dTAG\example\hello_world> cd D:\software\dTAG\example\hello_world
PS D:\software\dTAG\example\hello_world> idf.py set-target esp32s3
Adding "set-target"'s dependency "fullclean" to list of commands with default set of options.
Executing action: fullclean
Build directory 'd:\software\dtag\example\hello_world\build' not found. Nothing to clean.
Executing action: set-target
Set Target to: esp32s3, new sdkconfig created. Existing sdkconfig renamed to sdkconfig.old.
Running cmake in directory d:\software\dtag\example\hello_world\build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DIDF_TARGET=esp32s3 -DCCACHE_ENABLE=1 d:\software\dtag\example\hello_world"...
-- Found Git: D:/Espressif/tools/idf-git/2.34.2/cmd/git.exe (found version "2.34.1.windows.1")
-- ccache will be used for faster recompilation
-- The C compiler identification is GNU 11.2.0
-- The CXX compiler identification is GNU 11.2.0
-- The ASM compiler identification is GNU
-- Found assembler: D:/Espressif/tools/xtensa-esp32s3-elf/esp-2022r1-RC1-11.2.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-gcc.exe
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: D:/Espressif/tools/xtensa-esp32s3-elf/esp-2022r1-RC1-11.2.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-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: D:/Espressif/tools/xtensa-esp32s3-elf/esp-2022r1-RC1-11.2.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-g++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Project is not inside a git repository, or git repository has no commits; will not use 'git describe' to determine PROJECT_VER.
-- Building ESP-IDF components for target esp32s3
CMake Error at D:/Espressif/frameworks/esp-idf/tools/cmake/build.cmake:525 (message):
usage: __main__.py [-h] [--project_dir PROJECT_DIR]

{prepare_dependencies,inject_requirements,inject_requrements}
...

__main__.py: error: unrecognized arguments: --interface_version=1

Call Stack (most recent call first):
D:/Espressif/frameworks/esp-idf/tools/cmake/project.cmake:434 (idf_build_process)
CMakeLists.txt:6 (project)


-- Configuring incomplete, errors occurred!
See also "D:/software/dTAG/example/hello_world/build/CMakeFiles/CMakeOutput.log".
cmake failed with exit code 1

ujurmsde
Posts: 38
Joined: Tue Jan 19, 2021 6:37 am

Re: idf.py set-target esp32s3 error

Postby ujurmsde » Sat Jul 16, 2022 9:29 am

Have you installed the toolchains correctly for the esp32s3?

ESP_Gargamel
Posts: 786
Joined: Wed Nov 14, 2018 8:45 am

Re: idf.py set-target esp32s3 error

Postby ESP_Gargamel » Tue Jul 19, 2022 8:40 am

log 中有以下信息:

Code: Select all

CMake Error at D:/Espressif/frameworks/esp-idf/tools/cmake/build.cmake:525 (message):
usage: __main__.py [-h] [--project_dir PROJECT_DIR]

{prepare_dependencies,inject_requirements,inject_requrements}
...

__main__.py: error: unrecognized arguments: --interface_version=1
用 pip3 list,看下 idf-component-manager 的版本,应该是包管理器的版本不匹配导致。
然后看你用的是 PS,那可以用 .\install.ps1 重新安装一下环境。

Who is online

Users browsing this forum: weddawd and 79 guests