|
电脑安装了ESP32的开发环境:vscode、ESP-IDF
现在加载本地的demo,编译正常,仿佛cmake环节出错了,如下图所示:
“cannot open linker script file esp32.peripherals.ld: No such file or directory”这句提示,我在电脑上搜了下,能找到“esp32.peripherals.ld”这个文件;
- [102/103] Generating binary image from built executable
- esptool.py v4.6.2
- Creating esp32 image...
- Merged 1 ELF section
- Successfully created esp32 image.
- Generated C:/Espressif/demoTest/blink/build/bootloader/bootloader.bin
- [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"
- Bootloader binary size 0x6810 bytes. 0x7f0 bytes (7%) free.
- [887/889] Linking CXX executable blink.elf
- FAILED: blink.elf
- 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 ."
- 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
- collect2.exe: error: ld returned 1 exit status
- ninja: build stopped: subcommand failed.
- * 终端进程“C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -Command ninja ”已终止,退出代码: 1。
复制代码
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?注册
x
|