Skip to content

Compile failed with bootloader. #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
msojocs opened this issue Mar 1, 2025 · 1 comment
Closed

Compile failed with bootloader. #13

msojocs opened this issue Mar 1, 2025 · 1 comment

Comments

@msojocs
Copy link

msojocs commented Mar 1, 2025

Maybe no one still works on it, but I am just want to post it. (

Step

platformio.ini

[env:rtos_iot]
platform = https://github.com/WallaceWilliam/framework-esp8266-rtos-sdk-idf-platformio.git
board = nodemcuv2
framework = esp8266-rtos-sdk
monitor_speed = 115200
  1. Initial project, failed.
  2. Download xtensa-lx106-elf, and extract it to packages folder.
  3. Initial again, failed.
  4. Clone https://github.com/espressif/ESP8266_RTOS_SDK.git and overwrite packages/framework-esp8266-rtos-sdk
  5. Build failed as following reason.

Detail Log

D:\data\.platformio\penv\Scripts\platformio.exe run -v
Processing rtos_iot (platform: https://github.com/WallaceWilliam/framework-esp8266-rtos-sdk-idf-platformio.git; board: nodemcuv2; framework: esp8266-rtos-sdk; monitor_speed: 115200)
-----------------------------------------------------------------------------------------------------------------------------------------------------
CONFIGURATION: https://docs.platformio.org/page/boards/custom8266/nodemcuv2.html
PLATFORM: custom Espressif 8266 (1.1.0+sha.086ef91) (git+https://github.com/WallaceWilliam/framework-esp8266-rtos-sdk-idf-platformio.git) > NodeMCU 1.0 (ESP-12E Module)
HARDWARE: ESP8266 80MHz, 80KB RAM, 4MB Flash
PACKAGES: 
 - framework-esp8266-rtos-sdk @ 1.1.0+sha.2f586ea (git+https://github.com/espressif/ESP8266_RTOS_SDK.git) 
 - tool-cmake @ 3.16.4 
 - tool-mconf @ 1.4060000.20190628 (406.0.0) 
 - tool-ninja @ 1.9.0 
 - toolchain-xtensa-lx106-elf @ 5.2.0+100
Reading CMake configuration...
Get sdkconfig
Build components
get_project_lib_includes: []
Build bootloader
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 0 compatible libraries
Scanning dependencies...
No dependencies
Building in release mode
Warning! Unknown upload protocol
xtensa-lx106-elf-gcc -o .pio\build\rtos_iot\bootloader.elf -Wl,--Map=D:/github/rtos-iot/.pio/build/rtos_iot/bootloader/bootloader.map -Wl,--cref -Wl,--gc-sections -Wl,--start-group -Wno-frame-address -mlongcalls -nostdlib -T esp8266.bootloader.ld -T esp8266.bootloader.rom.ld -T esp8266.rom.ld -Wl,--start-group .pio\build\rtos_iot\bootloader\esp-idf\esp8266\libesp8266.a .pio\build\rtos_iot\bootloader\esp-idf\spi_flash\libspi_flash.a .pio\build\rtos_iot\bootloader\esp-idf\main\libmain.a -L.pio\build\rtos_iot -LD:\data\.platformio\packages\framework-esp8266-rtos-sdk\components\bootloader\subproject\main -LD:\data\.platformio\packages\framework-esp8266-rtos-sdk\components\esp8266\ld -LD:\data\.platformio\packages\framework-esp8266-rtos-sdk\components\esp8266\lib -Wl,--end-group -lcore
.pio\build\rtos_iot\bootloader\esp-idf\main\libmain.a(bootloader_start.c.o):(.literal.selected_boot_partition+0x0): undefined reference to `bootloader_utility_get_selected_boot_partition'
.pio\build\rtos_iot\bootloader\esp-idf\main\libmain.a(bootloader_start.c.o):(.literal.select_image+0xc): undefined reference to `bootloader_utility_load_partition_table'
.pio\build\rtos_iot\bootloader\esp-idf\main\libmain.a(bootloader_start.c.o):(.literal.select_image+0x10): undefined reference to `esp_early_log_write'
.pio\build\rtos_iot\bootloader\esp-idf\main\libmain.a(bootloader_start.c.o):(.literal.select_image+0x14): undefined reference to `bootloader_utility_load_boot_image'
.pio\build\rtos_iot\bootloader\esp-idf\main\libmain.a(bootloader_start.c.o):(.literal.call_start_cpu+0x0): undefined reference to `bootloader_init'  
.pio\build\rtos_iot\bootloader\esp-idf\main\libmain.a(bootloader_start.c.o):(.literal.call_start_cpu+0x4): undefined reference to `bootloader_utility_load_image'
.pio\build\rtos_iot\bootloader\esp-idf\main\libmain.a(bootloader_start.c.o): In function `selected_boot_partition':
D:\data\.platformio\packages\framework-esp8266-rtos-sdk\components\bootloader\subproject\main/bootloader_start.c:92: undefined reference to `bootloader_utility_get_selected_boot_partition'
.pio\build\rtos_iot\bootloader\esp-idf\main\libmain.a(bootloader_start.c.o): In function `select_image':
D:\data\.platformio\packages\framework-esp8266-rtos-sdk\components\bootloader\subproject\main/bootloader_start.c:68: undefined reference to `bootloader_utility_load_partition_table'
D:\data\.platformio\packages\framework-esp8266-rtos-sdk\components\bootloader\subproject\main/bootloader_start.c:69: undefined reference to `esp_early_log_write'
D:\data\.platformio\packages\framework-esp8266-rtos-sdk\components\bootloader\subproject\main/bootloader_start.c:80: undefined reference to `bootloader_utility_load_boot_image'
.pio\build\rtos_iot\bootloader\esp-idf\main\libmain.a(bootloader_start.c.o): In function `call_start_cpu':
D:\data\.platformio\packages\framework-esp8266-rtos-sdk\components\bootloader\subproject\main/bootloader_start.c:44: undefined reference to `bootloader_init'
D:\data\.platformio\packages\framework-esp8266-rtos-sdk\components\bootloader\subproject\main/bootloader_start.c:54: undefined reference to `bootloader_utility_load_image'
collect2.exe: error: ld returned 1 exit status
*** [.pio\build\rtos_iot\bootloader.elf] Error 1
============================================================ [FAILED] Took 3.14 seconds ============================================================

@msojocs
Copy link
Author

msojocs commented Mar 1, 2025

platformio/platform-espressif8266#284

I change to use this one.

@msojocs msojocs closed this as completed Mar 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant