编译只有一个警告:
"assignment to 'void (*)(spi_flash_host_inst_t *)' from incompatible pointer type 'esp_err_t (*)(esp_flash_t *)' {aka 'int (*)(esp_flash_t *)'} [-Wincompatible-pointer-types]",
编译时进行不下去,以下是部分后台代码:
[1/1] cmd.exe /C "cd /D D:\work\24third\XBCI\code1030cache\hello_world\build\bootloader\esp-idf\esptool_py && c:\Users\13230\.vscode\python_env\idf5.3_py3.11_env\Scripts\python.exe "D:/software/ESP IDF/v5.3.1/esp-idf/components/partition_table/check_sizes.py" --offset 0x8000 bootloader 0x0 D:/work/24third/XBCI/code1030cache/hello_world/build/bootloader/bootloader.bin"
Bootloader binary size 0x5260 bytes. 0x2da0 bytes (36%) free.
[2/7] Building C object esp-idf/main/CMakeFiles/__idf_main.dir/hello_world_main.c.obj
D:/work/24third/XBCI/code1030cache/hello_world/main/hello_world_main.c: In function 'app_main':
D:/work/24third/XBCI/code1030cache/hello_world/main/hello_world_main.c:21:47: warning: assignment to 'void (*)(spi_flash_host_inst_t *)' from incompatible pointer type 'esp_err_t (*)(esp_flash_t *)' {aka 'int (*)(esp_flash_t *)'} [-Wincompatible-pointer-types]
21 | ZMC_Erase_Flash->host->driver->erase_chip = esp_flash_erase_chip;
| ^
[5/7] Linking CXX executable hello_world.elf
FAILED: hello_world.elf
ESP32_S3编译报错FAILED: hello_world.elf
-
- Posts: 5
- Joined: Mon Oct 14, 2024 10:32 am
Re: ESP32_S3编译报错FAILED: hello_world.elf
警告问题已解决,编译时已没有警告和错误,还是无法编译:
[1/6] Performing build step for 'bootloader'
[1/1] cmd.exe /C "cd /D D:\work\24third\XBCI\code1030cache\hello_world\build\bootloader\esp-idf\esptool_py && c:\Users\13230\.vscode\python_env\idf5.3_py3.11_env\Scripts\python.exe "D:/software/ESP IDF/v5.3.1/esp-idf/components/partition_table/check_sizes.py" --offset 0x8000 bootloader 0x0 D:/work/24third/XBCI/code1030cache/hello_world/build/bootloader/bootloader.bin"
Bootloader binary size 0x5260 bytes. 0x2da0 bytes (36%) free.
[2/4] Linking CXX executable hello_world.elf
FAILED: hello_world.elf
[1/6] Performing build step for 'bootloader'
[1/1] cmd.exe /C "cd /D D:\work\24third\XBCI\code1030cache\hello_world\build\bootloader\esp-idf\esptool_py && c:\Users\13230\.vscode\python_env\idf5.3_py3.11_env\Scripts\python.exe "D:/software/ESP IDF/v5.3.1/esp-idf/components/partition_table/check_sizes.py" --offset 0x8000 bootloader 0x0 D:/work/24third/XBCI/code1030cache/hello_world/build/bootloader/bootloader.bin"
Bootloader binary size 0x5260 bytes. 0x2da0 bytes (36%) free.
[2/4] Linking CXX executable hello_world.elf
FAILED: hello_world.elf
Who is online
Users browsing this forum: No registered users and 43 guests