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

Select ELF? #69

Open
SteveRMann opened this issue Nov 19, 2021 · 7 comments
Open

Select ELF? #69

SteveRMann opened this issue Nov 19, 2021 · 7 comments

Comments

@SteveRMann
Copy link

"ERROR: elf was not found!"

What is ELF and what do I select?

@AcuarioCat
Copy link

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.

@quinman24
Copy link

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

@riban-bw
Copy link

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.

@877dev
Copy link

877dev commented Jan 2, 2022

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.

@JazekerXX
Copy link

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

@Batwam
Copy link

Batwam commented May 13, 2022

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

@DmitriyVovk
Copy link

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.

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

8 participants