搜索
bottom↓
回复: 0

【请教】ESP32使用vscode+ESP-IDF编译例程出错

[复制链接]

出0入0汤圆

发表于 2023-6-29 14:48:20 | 显示全部楼层 |阅读模式
电脑安装了ESP32的开发环境:vscode、ESP-IDF

现在加载本地的demo,编译正常,仿佛cmake环节出错了,如下图所示:


“cannot open linker script file esp32.peripherals.ld: No such file or directory”这句提示,我在电脑上搜了下,能找到“esp32.peripherals.ld”这个文件;




  1. [102/103] Generating binary image from built executable
  2. esptool.py v4.6.2
  3. Creating esp32 image...
  4. Merged 1 ELF section
  5. Successfully created esp32 image.
  6. Generated C:/Espressif/demoTest/blink/build/bootloader/bootloader.bin
  7. [103/103] cmd.exe /C "cd /D C:\Espressif\demoTest\blink\build\bootloader\esp-idf\esptool_py && C:\Espressif\python_env\idf5.1_py3.8_env\Scripts\python.exe C:/Espressif/esp-idf/components/partition_table/check_sizes.py --offset 0x8000 bootloader 0x1000 C:/Espressif/demoTest/blink/build/bootloader/bootloader.bin"
  8. Bootloader binary size 0x6810 bytes. 0x7f0 bytes (7%) free.
  9. [887/889] Linking CXX executable blink.elf
  10. FAILED: blink.elf
  11. cmd.exe /C "cd . && C:\Espressif\tools\xtensa-esp32-elf\esp-12.2.0_20230208\xtensa-esp32-elf\bin\xtensa-esp32-elf-g++.exe -mlongcalls -Wno-frame-address -Wl,--cref -Wl,--defsym=IDF_TARGET_ESP32=0 -Wl,--Map=C:/Espressif/demoTest/blink/build/blink.map -Wl,--no-warn-rwx-segments -fno-rtti -fno-lto -Wl,--gc-sections -Wl,--warn-common -T esp32.peripherals.ld -T esp32.rom.ld -T esp32.rom.api.ld -T esp32.rom.libgcc.ld -T esp32.rom.newlib-data.ld -T esp32.rom.syscalls.ld -T esp32.rom.newlib-funcs.ld -T memory.ld -T sections.ld @CMakeFiles\blink.elf.rsp -o blink.elf  && cd ."
  12. c:/espressif/tools/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/12.2.0/../../../../xtensa-esp32-elf/bin/ld.exe: cannot open linker script file esp32.peripherals.ld: No such file or directory
  13. collect2.exe: error: ld returned 1 exit status
  14. ninja: build stopped: subcommand failed.

  15. *  终端进程“C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -Command ninja ”已终止,退出代码: 1。
复制代码


本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回帖提示: 反政府言论将被立即封锁ID 在按“提交”前,请自问一下:我这样表达会给举报吗,会给自己惹麻烦吗? 另外:尽量不要使用Mark、顶等没有意义的回复。不得大量使用大字体和彩色字。【本论坛不允许直接上传手机拍摄图片,浪费大家下载带宽和论坛服务器空间,请压缩后(图片小于1兆)才上传。压缩方法可以在微信里面发给自己(不要勾选“原图),然后下载,就能得到压缩后的图片】。另外,手机版只能上传图片,要上传附件需要切换到电脑版(不需要使用电脑,手机上切换到电脑版就行,页面底部)。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|Archiver|amobbs.com 阿莫电子技术论坛 ( 粤ICP备2022115958号, 版权所有:东莞阿莫电子贸易商行 创办于2004年 (公安交互式论坛备案:44190002001997 ) )

GMT+8, 2024-5-10 07:04

© Since 2004 www.amobbs.com, 原www.ourdev.cn, 原www.ouravr.com

快速回复 返回顶部 返回列表