-
Notifications
You must be signed in to change notification settings - Fork 467
Unable to flash UF2 where flash is >512kb #213
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
Two other things:
|
Thank you for figuring this out! |
yeah, I could reproduce the issue, troubleshooting on the way, will post more update when available. |
I found the issue, the bootloader is limited its size to 512KB since it reserved the rest for internal file system ( for all boards), since the very first implementation of the bootloader.
For that I think we will increase reserved size to 40KB. The overflow to fatfs should be checked by circuitpyhon linker, just try DEBUG=1 with boards internal flash, it overflows and won't linked which is good. |
Set up
Feather nRF52840 Express with 6.0.0 bootloader. CircuitPython e9369d50e16e557ccd1a98c06d6e36bb87b908b7 . UF2s for the opt build flash ok but DEBUG=1 builds do not.
Describe the bug
Only part of the >512k UF2 is flashed leaving the higher end of the flash incorrect. In CircuitPython this means the .data section is not correct and assertions in DEBUG=1 mode fail as a result.
To Reproduce
Steps to reproduce the behavior:
firmware-debug.uf2.zip after unzipping.
Here is an opt build that works: firmware-opt.uf2.zip
Note that the broken UF2 is >1MB in size.
The text was updated successfully, but these errors were encountered: