Skip to content
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

Read flash drive from .uf2 bi_decl region #3

Closed
Gadgetoid opened this issue Sep 12, 2023 · 4 comments
Closed

Read flash drive from .uf2 bi_decl region #3

Gadgetoid opened this issue Sep 12, 2023 · 4 comments

Comments

@Gadgetoid
Copy link
Owner

As mentioned here - micropython/micropython#12357 - it occurred to me that we could probably read the flash offsets from the .uf2 file rather than hard-coding them into the CI.

@Daft-Freak I don't suppose you had Python code somewhere to delve into Pico bi_decl stuff?

@Daft-Freak
Copy link

🤔 Not in Python. There's some code in DERP, but that unpacks the whole thing first. Should be another parser in the blit discord bot, but I think that's JavaScript.

@Gadgetoid
Copy link
Owner Author

Gadgetoid commented Sep 12, 2023

Close enough (edit: Thank you, sheesh I'd forget my own head if it weren't screwed on), I'll figure it out when I find a moment to try this 😆

@Daft-Freak
Copy link

Oh, this is the bot's code (might help as I don't think I released the code anywhere): https://gist.github.com/Daft-Freak/63e2f3ff052ba89a0de239c66671617

Attempts to parse UF2 as it goes. Still only handles string tags though.

@Gadgetoid
Copy link
Owner Author

Fixed in #7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants