当前位置: 首页 > news >正文

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"

改了一下路径可以开始编译了


http://www.mrgr.cn/news/68006.html

相关文章:

  • WordPress网站添加嵌入B站视频,自适应屏幕大小,取消自动播放
  • 王健林,被好兄弟追债89亿
  • HTML简介与应用指南
  • Stable Diffusion Web UI 1.9.4常用插件扩展-WD14-tagger
  • ENSP作业——园区网
  • printf影响单片机中断速度
  • 基于SpringBoot的社区讯息服务小程序【附源码】
  • jdk1.7和jdk1.8有什么区别?
  • 基于Multisim8路抢答器电路仿真电路(含仿真和报告)
  • 关于 Qt+Osg中使用背景图HUD受到后绘制几何图形顶点颜色影响 的解决方法
  • Java8新特性/java
  • 为什么主机状态为 closed_busy LSF还会派发任务去运行?
  • 【NLP】使用 SpaCy、ollama 创建用于命名实体识别的合成数据集
  • 从零构建一个基于PHP和MySQL的文件管理系统
  • App推广社交玩法全解析
  • 数据结构---排序总结
  • 基于Multisim六路抢答器电路(含仿真和报告)
  • 数据链路层Mac协议与ARP协议
  • 每日OJ题_牛客_春游_贪心+数学_C++_Java
  • htop-2.2.0在arm64上的手工编译
  • Prompt 工程
  • Git 的基本概念和使用方式
  • DeBiFormer实战:使用DeBiFormer实现图像分类任务(二)
  • macos中安装和设置ninja
  • Linux下的WatchDog
  • 协程2 --- 相关概念