esp32记录一次错误
报错信息
PS C:\XingNian\GeRen\4Gdownload\wireless-esp8266-dap> idf.py build
Executing action: all (aliases: build)
Running cmake in directory c:\xingnian\geren\4gdownload\wireless-esp8266-dap\build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DIDF_TARGET=esp32s3 -DCCACHE_ENABLE=1 c:\xingnian\geren\4gdownload\wireless-esp8266-dap"...
-- Found Git: C:/Espressif4.4.2/tools/idf-git/2.34.2/cmd/git.exe (found version "2.34.1.windows.1")
-- Component directory C:/XingNian/GeRen/4Gdownload/wireless-esp8266-dap/components/corsacOTA does not contain a CMakeLists.txt file. No component will be added
-- ccache will be used for faster recompilation
-- The C compiler identification is GNU 8.4.0
-- The CXX compiler identification is GNU 8.4.0
-- The ASM compiler identification is GNU
-- Found assembler: C:/Espressif4.4.2/tools/xtensa-esp32s3-elf/esp-2021r2-patch3-8.4.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: C:/Espressif4.4.2/tools/xtensa-esp32s3-elf/esp-2021r2-patch3-8.4.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: C:/Espressif4.4.2/tools/xtensa-esp32s3-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-g++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building ESP-IDF components for target esp32s3
-- Project sdkconfig file C:/XingNian/GeRen/4Gdownload/wireless-esp8266-dap/sdkconfig
Loading defaults file C:/XingNian/GeRen/4Gdownload/wireless-esp8266-dap/sdkconfig.defaults...
Loading defaults file C:/XingNian/GeRen/4Gdownload/wireless-esp8266-dap/sdkconfig.defaults.esp32s3...
-- Found Python3: C:/Espressif4.4.2/python_env/idf4.4_py3.8_env/Scripts/python.exe (found version "3.8.7") found components: Interpreter
-- Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS
-- Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS - Success
-- App "wireless_esp_dap" version: v0.3.0-2-gf5a0ea6-dirty
-- Adding linker script C:/XingNian/GeRen/4Gdownload/wireless-esp8266-dap/build/esp-idf/esp_system/ld/memory.ld
-- Adding linker script C:/Espressif4.4.2/frameworks/esp-idf-v4.4.2/components/esp_system/ld/esp32s3/sections.ld.in
-- Adding linker script C:/Espressif4.4.2/frameworks/esp-idf-v4.4.2/components/esp_rom/esp32s3/ld/esp32s3.rom.ld
-- Adding linker script C:/Espressif4.4.2/frameworks/esp-idf-v4.4.2/components/esp_rom/esp32s3/ld/esp32s3.rom.api.ld
-- Adding linker script C:/Espressif4.4.2/frameworks/esp-idf-v4.4.2/components/esp_rom/esp32s3/ld/esp32s3.rom.libgcc.ld
-- Adding linker script C:/Espressif4.4.2/frameworks/esp-idf-v4.4.2/components/esp_rom/esp32s3/ld/esp32s3.rom.newlib.ld
-- Adding linker script C:/Espressif4.4.2/frameworks/esp-idf-v4.4.2/components/esp_rom/esp32s3/ld/esp32s3.rom.version.ld-- Adding linker script C:/Espressif4.4.2/frameworks/esp-idf-v4.4.2/components/esp_rom/esp32s3/ld/esp32s3.rom.newlib-time.ld
-- Adding linker script C:/Espressif4.4.2/frameworks/esp-idf-v4.4.2/components/soc/esp32s3/ld/esp32s3.peripherals.ld
CMake Error at C:/Espressif4.4.2/frameworks/esp-idf-v4.4.2/tools/cmake/component.cmake:297 (foreach):Syntax error in cmake code atC:/Espressif4.4.2/frameworks/esp-idf-v4.4.2/tools/cmake/component.cmake:297when parsing stringconfig;include;C:\Espressif4.4.2\frameworks\esp-idf-v4.4.2/frameworks/esp-idf-v4.4.2/components/esp_ringbuf/include/;C:\Espressif4.4.2\frameworks\esp-idf-v4.4.2/frameworks/esp-idf-v4.4.2/components/Invalid character escape '\E'.
Call Stack (most recent call first):C:/Espressif4.4.2/frameworks/esp-idf-v4.4.2/tools/cmake/component.cmake:473 (__component_add_include_dirs)C:/Espressif4.4.2/frameworks/esp-idf-v4.4.2/tools/cmake/component.cmake:593 (idf_component_register)components/DAP/CMakeLists.txt:19 (register_component)-- Configuring incomplete, errors occurred!
See also "C:/XingNian/GeRen/4Gdownload/wireless-esp8266-dap/build/CMakeFiles/CMakeOutput.log".
cmake failed with exit code 1
最近在调试用esp搞一个dap下载器,直接clone的esp dap
代码编译不过去,一直报错折腾好久
提示IDF_PATH \ /斜杠问题
在idf中输出一下:
echo $Env:IDF_PATH
缺失斜杠不一样
$Env:IDF_PATH = "C:/Espressif4.4.2/frameworks/esp-idf-v4.4.2"
改了一下路径可以开始编译了