I can't make .elf and .hex file

Hello, I use arduino leonardo on lattepanda alpha.
I compiled arduino sketch file, but they can't make .elf and .hex file
I always have .ino file. So I can't communicate serial communication on ubuntu terminal
Anyone give me some answer plz TT

root@diva-Alpha:/home/diva/bin# ./arduino-cli compile --fqbn arduino:avr:leonardo TACAN/
Sketch uses 8966 bytes (31%) of program storage space. Maximum is 28672 bytes.
Global variables use 1142 bytes (44%) of dynamic memory, leaving 1418 bytes for local variables. Maximum is 2560 bytes.

root@diva-Alpha:/home/diva/bin# ls -al TACAN/
total 16
drwxr-xr-x 2 root root 4096 10월 29 09:53 .
drwxr-xr-x 4 root root 4096 10월 21 17:47 ..
-rw-r--r-- 1 root root 7400 10월 29 09:53 TACAN.ino

They exist. Carefully study the verbose output of the link step to determine where these temporary files are to be found. On Windoze you'll see file names like this:


how about ubuntu OS?

If you can't find the files, it would make sense to check the docs and command line options to specify the build directory.

1 Like

There are flags that are more specific to this requirement:

-e, --export-binaries              If set built binaries will be exported to the sketch folder.

Or if you want to save them to a specific location:

--output-dir string            Save build artifacts in this directory.

The --export-binaries behavior used to be the default before it was decided that most users don't want binaries being dumped into the sketch folder. So you might find some tutorials written on that basis.

Doesn't the 'total 16' mean that there are 16 files? I wonder why it is only showing three.

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