jacobrosenthal / hf2-rs

Microsoft HF2 HID Flashing Format for UF2 Bootloaders
49 stars 14 forks source link

send entire program on flash ingoring device contents #23

Closed jacobrosenthal closed 4 years ago

jacobrosenthal commented 4 years ago

Closes #22

huge thanks to @fionawhim for debugging this

"The samd51 code Adafruit has is ok with random access writing, but it still assumes that you will send the complete program. It just doesn't care the order that it's sent" https://github.com/adafruit/uf2-samdx1/blob/master/src/flash_samd51.c#L64

I dont think thats to spec, but meh, dont skip writing any pages even if their checksum is already present

jacobrosenthal commented 4 years ago

Also batches all elf sections together into a single bin (with any necessary non contiguous sections set to 0x0) Its a separate bug Im seeing, but I think directly related to this finickyness.