-
-
Notifications
You must be signed in to change notification settings - Fork 114
with_bootloader issues #286
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
The aforementioned zip I forgot to attach... |
I believe that this issue (2 above) is down to the bootloader including a (blank) configuration section as the last few bytes (these are used by the bootloader to store an OSCAL value when "tuned"), I expect that the "blank line" code in the .go file linked above is running through and finding this and thinking everything before is sketch code and dumping it. It looks like Unless There is also another problem to be added to the list however
Perhaps |
…help with merged exports. Virtual boot partition bootloaders will not merge correctly, but the standard ones should (because the notuner_ variants do not include the OSCAL configuration bytes). See arduino/arduino-builder#286
Hi @sleemanj , As I see now, the best format to merge is Intel Hex since it also contains information on the flash offset. A (very needed) patch could grab bootloader and sketch in hex format and merge them in a smart way (by understanding the sections, not by copy/paste). A second patch could reuse Any help in doing this would be very appreciated 😉 ! |
anybody on this issue? I am having similar problems with SAMD boards. I am trying to upload the |
#295 should be rebased on arduino-cli and eventually merged after some testing. I'd love to have time for this but maybe someone from the community can pick it up. |
fixed by arduino/arduino-cli#744 |
The "with_bootloader" export which happens here...
https://github.com/arduino/arduino-builder/blob/29cf4c8b1473b4d0ba429c67ee497e2e061bd2fc/merge_sketch_with_bootloader.go
has some issues.
There is no output or even logging that it happened, so we can't for example see which bootloader it picked easily, how much it threw away, and that sort of thing.
The attached zip contains a compiled sketch .hex, the bootloader which it (in theory) selected, and the merged hex. The merged hex however contains the sketch hex, and two lines only from the bootloader hex - you will see clearly it can't be right because the bootloader is 9.9k, and the "merged" file which should contain both the sketch and bootloader is only 640 bytes.
The text was updated successfully, but these errors were encountered: