-
-
Notifications
You must be signed in to change notification settings - Fork 398
with_bootloader binary merger failes for large binaries #1009
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
Comments
As a workaround we can upload the bootloader.hex and program.hex successively. |
yes this is more an issue for arduino-cli (since the builder is now based on it), I'm moving the issue over there. |
While trying to explain a user how not to lose the bootloader when uploading using programmer I bumped into an issue after burning a compiled sketch with bootloader on an Arduino Micro. Programming goes through (using Also uploading the sketch
The compiled sketch (no bootloader) is 11K, and the one with bootloader is 88 :( |
In the comment that you linked I see that you compiled a
The big size of the |
makes sense now, but this still persists on an Arduino Micro
|
This was fixed in #1017 / #1212
This problem is tracked at arduino/ArduinoCore-avr#411
I did not encounter this when I reproduced arduino/ArduinoCore-avr#411. Although I did experience the problem of the exported sketch program not running when I flashed my board with the "with_bootloader" binary, I was able to upload sketches via the bootloader after that. However, it is not clear to me exactly what happens in this case where the sketch application binary is merged with a bootloader binary that already has an embedded application. So perhaps under certain conditions this could result in a binary where the bootloader is non-functional? |
Hi community
We are trying to create the binary with bootloader of an arduino sketch using Arduino IDE 1.8.13 and upload it to an ATSAMD21G18A microprocessor (Arduino Zero) via Atmel Studio 7.0.2397.
It seems to us that the merger that fuses bootloader with sketch code that was fixed in 1.8.13 (arduino/arduino-builder#286, #744) does not work for larger sketches.
The following two sketches have been uploading via IDE and executed successfully.
However, if the binary is uploaded via Atmel Studio, only the small, first sketch works.
10992 bytes sketch, works when uploaded with IDE or Atmel as binary.with_bootloader.bin:
60976 bytes sketch, works when uploaded with IDE, does not work when uploaded via Atmel as binary.with_bootloader.bin:
Without understanding the merging code, maybe this has to do with some maximum size assumptions https://github.com/arduino/arduino-cli/pull/744/files#diff-b0aa01210cafc5319fbc95159b62da0fR72.
The text was updated successfully, but these errors were encountered: