Select ELF?
SteveRMann opened this issue · 7 comments
"ERROR: elf was not found!"
What is ELF and what do I select?
You need to navigate to the folder where your .ino.bin file is written. There you will also find the elf file.
Definition: Elf (Executable and Linking Format) is a common, standard format for executable files, object code, and shared libraries. It is created by avr-gcc as the output of the compilation.
The README does not mention that you may get a pop-up asking for the location of the ELF. The location may be deduced by looking at the last few lines of the compile output. On a Windows machine this might be:
"C:\\Users\\username\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\3.0.4-gcc10.3-1757bed/bin/xtensa-lx106-elf-size" -A "C:\\Users\\username\\AppData\\Local\\Temp\\arduino_build_793312/controller.ino.elf"
Sketch uses 396181 bytes (37%) of program storage space. Maximum is 1044464 bytes.
In this case the ELF is located in C:\Users\username\AppData\Local\Temp\arduino_build_793312
It seems that this is detected after building the project so build, run, debug seems to work but if you haven't built since starting IDE you need to know where the last build put its files.
Note that Arduino IDE cleans the temp files so these may not even be there anymore if you have performed other actions like building a different sketch or restarted IDE.
I recommend this is explained in the README, i.e. that the decoder needs to be run after building the image.
Same issue here, could not find the ELF file even in C:\Users\username\AppData\Local\Temp\arduino_build_xxxxxx
. Restarted IDE and then it worked by itself, did not need to locate an ELF file.
after a quick google i found out you first need to compile before you open the exception decoder
for the record, on Linux, the elf file is saved in the tmp folder: /tmp/arduino_build_xxxxxx
Hello. A have faced the same issue. Because i use VS Code + Visual Micro plug-in the tool requires to compile my code without errors using Arduino IDE. Than will find .elf itself.