ESP8266 / Err msg when compiling

  • Windows 10, latest updates allway done
  • Arduino IDE is freshly installed
  • Empty sketch is used
  • compiling for any AVR boards >ok
  • compiling for any ESP32 boards >ok
  • compiling for any ESP8266 board >Err msg

Pls help!`Traceback (most recent call last):

Here the complete copy of the err msg:

File "C:\Users\Acer Aspire S7-391\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2/tools/elf2bin.py", line 211, in
sys.exit(main())
File "C:\Users\Acer Aspire S7-391\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2/tools/elf2bin.py", line 198, in main
to_addr=0
File "C:\Users\Acer Aspire S7-391\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2/tools/elf2bin.py", line 187, in wrapper
write_bin(out=out, args=args, **kwargs)
File "C:\Users\Acer Aspire S7-391\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2/tools/elf2bin.py", line 75, in write_bin
[size, addr] = get_segment_size_addr(elf, segment, args.path)
File "C:\Users\Acer Aspire S7-391\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2/tools/elf2bin.py", line 55, in get_segment_size_addr
raise Exception('Unable to find size and start point in file "' + elf + '" for "' + segment + '"')
Exception: Unable to find size and start point in file "C:\Users\Acer Aspire S7-391\AppData\Local\Temp\arduino-sketch-B0F91F2E5AB972439E48CAADDE990B95/sketch_nov24a.ino.elf" for ".data"

exit status 1

Compilation error: exit status 1`

Welcome to the forum

Please copy the full error message from the IDE using the "Copy error message" button and paste it here in code tags (the </> icon) to make it readable

which build ver you are using for esp?

Have a look, this might help
https://github.com/esp8266/Arduino/issues/7253

Do not understand! There is no ESP8266 connected to my pc. Only Arduino-IDE is runnig.
Each ESP8266 board in the library produce this err when compiling.
How to get an ESP build?
I'm new her ..... sorry

AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2

You are already using the latest version of the ESP8266 boards definitions but there is a chance that it is corrupt so I suggest that you delete it and load it again

Go into Tools/Board/Board Manager and search for ESP8266 and you should see something like this

If you do not see that then don't go any further but come back here and report what you see

If you see that version 3.0.2 is installed, which I expect, then click on the Remove button and answer 'Yes' to the next prompt to remove the current ESP8266 board definition then close the window

Go back into Tools/Board/Boards Manager and search for ESP8266 and you should see this

Click 'Install' and the board files will be downloaded an installed. Close the window and try compiling a new sketch with an ESP8266 board selected in Tools/Board/ESP8266 Boards

Report back here and tell us what happens

yes, it is 3.0.2

Have you tried deleting the ESP8266 board definition and reinstalling it ?

Yes I have done. > problem remains
installed 3.0.1 > problem remains
installed 2.7.0 > problem remains

Now doing a complete new installation of the IDE
if problem remains > will do an istalation on an other pc

New installation done >problem remains
(seems all settings are taken from the previous installation)
I will try it now on my other pc

Works on the other PC. Must have anything to do with the settings in my PC #1.
No idea what .... very frustrating.
Anyhow can live with that situation for the moment.
Thanks for advice!

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.