使用vscode创建的例程选择芯片时报错且无法正常编译

Gin_X_z
Posts: 1
Joined: Fri May 24, 2024 2:13 am

使用vscode创建的例程选择芯片时报错且无法正常编译

Postby Gin_X_z » Fri May 24, 2024 2:56 am

使用vscode创建I2S_es7210_tdm的例程,在选择芯片时弹出如下错误,且导致工程无法正常编译;

[Error: non zero exit code 2

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: esp32s3, new sdkconfig will be created.
Running cmake in directory E:\Project\i2s_es7210_tdm\build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DPYTHON=e:\Env\ESP\.espressif\python_env\idf5.2_py3.11_env\Scripts\python.exe -DESP_PLATFORM=1 -DIDF_TARGET=esp32s3 -DCCACHE_ENABLE=0 E:\Project\i2s_es7210_tdm"...
-- Existing sdkconfig 'E:/Project/i2s_es7210_tdm/sdkconfig' renamed to 'E:/Project/i2s_es7210_tdm/sdkconfig.old'.
-- Found Git: E:/Env/ESP/.espressif/tools/idf-git/2.39.2/cmd/git.exe (found version "2.39.2.windows.1")
-- 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: E:/Env/ESP/.espressif/tools/xtensa-esp-elf/esp-13.2.0_20230928/xtensa-esp-elf/bin/xtensa-esp32s3-elf-gcc.exe
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: E:/Env/ESP/.espressif/tools/xtensa-esp-elf/esp-13.2.0_20230928/xtensa-esp-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: E:/Env/ESP/.espressif/tools/xtensa-esp-elf/esp-13.2.0_20230928/xtensa-esp-elf/bin/xtensa-esp32s3-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 esp32s3
Processing 2 dependencies:

[1/2] espressif/es7210 (1.0.1)

[2/2] idf (5.2.1)

CMake Error at build/component_requires.temp.cmake:317 (__component_set_property):
Syntax error in cmake code at

E:/Project/i2s_es7210_tdm/build/component_requires.temp.cmake:317

when parsing string

e:\Env\ESP\v5.2.1\esp-idf/examples/peripherals/i2s/common

Invalid character escape '\E'.
Call Stack (most recent call first):
E:/Env/ESP/v5.2.1/esp-idf/tools/cmake/component.cmake:254 (include)
E:/Env/ESP/v5.2.1/esp-idf/tools/cmake/build.cmake:578 (__component_get_requirements)
E:/Env/ESP/v5.2.1/esp-idf/tools/cmake/project.cmake:605 (idf_build_process)
CMakeLists.txt:6 (project)


-- Configuring incomplete, errors occurred!
See also "E:/Project/i2s_es7210_tdm/build/CMakeFiles/CMakeOutput.log".
cmake failed with exit code 1, output of the command is in the E:\Project\i2s_es7210_tdm\build\log\idf_py_stderr_output_15452 and E:\Project\i2s_es7210_tdm\build\log\idf_py_stdout_output_15452

at ChildProcess.<anonymous> (\dist\extension.js:2:1394091)
at ChildProcess.emit (node:events:517:28)
at ChildProcess._handle.onexit (node:internal/child_process:292:12)]
Attachments
Snipaste_2024-05-24_10-46-41.png
Snipaste_2024-05-24_10-46-41.png (121.44 KiB) Viewed 1372 times

Who is online

Users browsing this forum: No registered users and 155 guests