Closed ardnew closed 2 years ago
Hi @ardnew, sorry for the very late response...
anyway, this issue seems solved now:
$ arduino-cli compile --fqbn adafruit:nrf52:itsybitsy52840 \
--upload --port /dev/ttyACM1 \
--build-path /home/megabug/tmp/build \
--build-cache-path /home/megabug/tmp/cache \
--output-dir /home/megabug/tmp/output \
/home/megabug/Arduino/Blink
[.....]
$ ls -l /home/megabug/tmp/output
total 2324
-rwxrwxr-x 1 megabug megabug 1383552 Oct 20 15:36 Blink.ino.elf
-rw-rw-r-- 1 megabug megabug 139933 Oct 20 15:36 Blink.ino.hex
-rw-rw-r-- 1 megabug megabug 798694 Oct 20 15:36 Blink.ino.map
-rw-rw-r-- 1 megabug megabug 50533 Oct 20 15:36 Blink.ino.zip
I think this has been solved a long time ago, but we forget to close this issue. I'm going ahead and closing it now, please re-open it in case the problem persists.
Bug Report
This is a followup to the fixes merged addressing #641, but it seems like a different enough issue that it should have its own bug report.
Current behavior
After pulling the latest changes (ad224f85) and updating my build script (by replacing the
upload
--input
andcompile
--output
flags with--input-dir
and--output-dir
, respectively), the generated executable packages are empty (file size 0 bytes)!In particular, the compile+upload command used is:
And the resulting files produced in
--output-dir
:The
Adafruit_nRF52
core's programmer utility fails with the following (misleading) error:WORKAROUND
Looking at the build log, it didn't look like there were any failures reported by the linker or by
objcopy
when converting the.elf
to.hex
, so it appeared like something after-the-fact was causing this.I thought that maybe this new
--output-dir
flag was clashing with the other flags (--build-path
, specifically), so I just removed--output-dir
entirely (previously, the--output
flag was required as workaround for this original bug), and sure enough the compile+upload completed successfully!Environment
arduino-cli version
):0.0.0-git Commit: ad224f85
Ubuntu 18.04
Additional context
COMPLETE LOG
The entire compile+build log for the failed upload follows: