EspExceptionDecoder icon indicating copy to clipboard operation
EspExceptionDecoder copied to clipboard

Select ELF?

Open SteveRMann opened this issue 3 years ago • 8 comments

"ERROR: elf was not found!"

What is ELF and what do I select?

SteveRMann avatar Nov 19 '21 21:11 SteveRMann

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.

AcuarioCat avatar Nov 21 '21 07:11 AcuarioCat

what is the directory to the .elf file I need to finger out what is going on with my esp8266 esp-01 board. "You need to navigate to the folder where your .ino.bin file is written." I'm a nob at finding folders where my sketch writes its .ino.bin files go. code

quinman24 avatar Nov 30 '21 04:11 quinman24

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.

riban-bw avatar Dec 11 '21 10:12 riban-bw

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.

877dev avatar Jan 02 '22 10:01 877dev

after a quick google i found out you first need to compile before you open the exception decoder

JazekerXX avatar Feb 12 '22 13:02 JazekerXX

for the record, on Linux, the elf file is saved in the tmp folder: /tmp/arduino_build_xxxxxx

Batwam avatar May 13 '22 14:05 Batwam

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.

DmitriyVovk avatar Aug 08 '23 20:08 DmitriyVovk