JoNil / elf2uf2-rs

BSD Zero Clause License
81 stars 31 forks source link

Fails to program large disjoint image? #23

Closed thejpster closed 9 months ago

thejpster commented 1 year ago

I tried to flash https://github.com/Neotron-Compute/Neotron-Pico-BIOS and it failed - I got a hardfault jumping from the BIOS to the OS, indicating the OS was not flashed correctly.

I flashed the same ELF with the official elf2uf2 tool and it worked fine.

I suspect it may be because of the large gap between the end of one part of my binary and the start of the next.

addap commented 1 year ago

In case it's still relevant, the UF2 bootloader of the pico has a bug which breaks writing of UF2 files with partial sectors (https://datasheets.raspberrypi.com/rp2040/rp2040-datasheet.pdf#errata-e14). You can use #22 which implements filling up partial sectors with zero pages.

JoNil commented 9 months ago

Solved by #22?