Everything was working , I took a break for dinner, and upon return... nothing compiles.
I get this strange error, even on sketches that previously compiled without any problem. Even on the example sketch "Blink".
Any ideas?
The error:
Traceback (most recent call last):
File "C:\Users\steve\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2/tools/elf2bin.py", line 211, in <module>
sys.exit(main())
File "C:\Users\steve\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2/tools/elf2bin.py", line 192, in main
to_addr=4096
File "C:\Users\steve\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\steve\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\steve\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2/tools/elf2bin.py", line 47, in get_segment_size_addr
p = subprocess.Popen([path + '/xtensa-lx106-elf-objdump', '-h', '-j', segment, elf], stdout=subprocess.PIPE, universal_newlines=True )
File "D:\obj\Windows-Release\37win32_Release\msi_python\zip_win32\subprocess.py", line 775, in __init__
File "D:\obj\Windows-Release\37win32_Release\msi_python\zip_win32\subprocess.py", line 1178, in _execute_child
FileNotFoundError: [WinError 2] The system cannot find the file specified
exit status 1
Error compiling for board LOLIN(WEMOS) D1 R2 & mini.
Does the problem go away after you close all Arduino IDE windows and then start it again? It might have been caused by Windows doing a tidy up of the temporary folders while you were away.
Hi,
Where is your sketch book folder.
I have in the IDE preferences C:\Arduino Projects as the sketch book folder.
The Library folder is in that folder and that is where I put all my libraries, they don't get moved or deleted when you do an IDE upgrade.
Try temporarily disabling your antivirus, or check to see if the antivirus has recently deleted any files. It could have received an update and suddenly decided one of your files looks suspicious.
Also try reloading the boards package for the ESP8266, or go back to a previous version.
That's where most of my libraries are located. But there are libraries only in arduino-1.8.15'\libraries that the compiler finds. That is why I am confused because I don't know why the compiler knows to look there.
I think you are on to something because reinstalling (and upgrading) the IDE to Version 1.8.16 changed nothing. I still get the linking error. Even the basic blink.ino in the example sketches.
But- when I select the Uno in tools, no problem. Switch back to the Wemos D1 Mini and the problem reappears.
I went to the boards manager and reinstalled a prior version (3.0.2 to 3.0.1), and the problem went away.
I went to the boards manager and reinstalled ESP boards Version 3.0.2 (the most recent) and the problem went away. For about an hour. I installed Version 3.0.0 and the problem went away for a few compiles. And it's back. I reinstalled V3.0.2 and again, my project compiles fine.
I can't just keep reinstalling the ESP boards. What could possibly be happening?
What folder are the boards files installed in? When I reinstall the IDE, is there something else that I should have deleted first?
It does sound like a computer security program is deleting the file.
No idea what you have in that regards but most also have an EXCLUSIONS or WHITELIST where you can add a path or filename.
That would be my starting point.
Also be very wary if you are using CLOUD based storage such as ONEDRIVE etc. as they can cause thier own issues with the IDE.