-
-
Notifications
You must be signed in to change notification settings - Fork 40.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
[Core] Add :flash target for UF2 bootloaders #16525
Conversation
Can confirm this works on macOS. However, output is ... not great. Trying again every 0.5s (Ctrl+C to cancel)Converting to uf2, output size: 172032, start address: 0x2000
No drive to deploy.
.Converting to uf2, output size: 172032, start address: 0x2000
No drive to deploy.
.Converting to uf2, output size: 172032, start address: 0x2000
No drive to deploy.
.Converting to uf2, output size: 172032, start address: 0x2000
No drive to deploy.
.Converting to uf2, output size: 172032, start address: 0x2000
No drive to deploy. Assuming linked PR fixes that. |
Yes, exactly. You can try the change yourself. It is very small. After that it should work as expected. |
Realistically the rp2040 lines should probably move to the RP2040 PR, though. |
8d7bcfe
to
00a1778
Compare
Done that, I also included an update of the |
Ah, I did the same in the ChibiOS 21.11.1 merge. Probably the same version, now. |
...using the --deploy cli flag of the uf2conv.py util, which automatically scans for valid mounted UF2 bootloaders and flashes the UF2 file. This also updates the uf2conv.py tools to the lastest state with a patch to the error() function to print to stderr by default. This is also PRed to the regular microsoft uf2 repo.
00a1778
to
6a251d8
Compare
Pretty much, only the error line was changed. Great that the ChibiOS merge has landed. |
Cool, good stuff. |
The failing check is a python lint in the vendor provided uf2conv python file. So probably won't fix. |
Description
Add :flash target for UF2 bootloaders using the
--deploy
cli flag of the uf2conv.py util, which automatically scans for valid mounted UF2 bootloaders and flashes the UF2 file. Depends on microsoft/uf2#61 to filter out the error messages if the drive could not be found.Types of Changes
Issues Fixed or Closed by This PR
Checklist