Skip to content
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

[v3.3-rc1] Error during esptool elf2image: "Found 2 segments that could be irom0. Bad ELF file?" (GIT8266O-429) #858

Open
yh-sb opened this issue Apr 3, 2020 · 0 comments

Comments

@yh-sb
Copy link

yh-sb commented Apr 3, 2020

Environment

  • Development Kit: ESP8266 nodemcu board
  • IDF version: v3.3-rc1 (816f1d21)
  • Development Env: make
  • Operating System: Ubuntu
  • Power Supply: USB

Problem Description

Can't generate --version=1 binary file using components\esp8266\ld\esp8266_out.ld. I need to have it in order to avoid using extra bootloaders which is working with --version=3.

Expected Behavior

Generation binary files should work OK without providing --version=3 to esptool elf2image. Like in previous SDK version (v3.2)

Actual Behavior

Error during the generating binary from elf file when --version=1.

Steps to reproduce

  1. Try to generate bin file from elf using --version=1 (or without specifying version at all) esptool elf2image command:
python /home/user/dev/ESP8266_RTOS_SDK-v3.3-rc1/components/esptool_py/esptool/esptool.py elf2image -o /home/user/dev/ESP8266_RTOS_SDK-v3.3-rc1/examples/wifi/simple_wifi/build/simple_wifi.bin /home/user/dev/ESP8266_RTOS_SDK-v3.3-rc1/examples/wifi/simple_wifi/build/simple_wifi.elf
esptool.py v2.4.0
Creating image for ESP8266...

A fatal error occurred: Found 2 segments that could be irom0. Bad ELF file?

These problematic segments are described in components\esp8266\ld\esp8266_out.ld linker file. It locates .flash.rodata and .flash.text to iram0_2_seg which cause esptool error.

@github-actions github-actions bot changed the title Error during esptool elf2image: "Found 2 segments that could be irom0. Bad ELF file?" Error during esptool elf2image: "Found 2 segments that could be irom0. Bad ELF file?" (GIT8266O-429) Apr 3, 2020
@yh-sb yh-sb changed the title Error during esptool elf2image: "Found 2 segments that could be irom0. Bad ELF file?" (GIT8266O-429) [v3.3-rc1] Error during esptool elf2image: "Found 2 segments that could be irom0. Bad ELF file?" (GIT8266O-429) Apr 5, 2020
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