-
Notifications
You must be signed in to change notification settings - Fork 1k
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
UF2 files with address gaps are not flashed correctly #762
Comments
From the datasheet Section 2.8.4.2. UF2 Format Details: I guess this also needs an update. |
can you please attach a UF2 with some holes? I want to test a slight fix change |
Sure: holes.zip The hole comes from RO data with huge alignment: const uint8_t some_data[128] __attribute__((aligned(32 * 1024))); |
ha i should have said holey |
I‘m using a recent version of GCC on windows:
|
fixed by #800 |
merged into develop |
The rp2040 bootrom uses the uf2 block number to determine when to erase a flash page:
https://github.com/raspberrypi/pico-bootrom/blob/c09c7f08550e8a36fc38dc74f8873b9576de99eb/bootrom/virtual_disk.c#L205
When there is a gap in target addresses between two uf2 blocks this logic does not work out.
As a workaround align all uf2 blocks to page erase boundary, so that the bootrom always removes the correct flash page.
The text was updated successfully, but these errors were encountered: