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

Use flash-algorithm crate #19

Merged
merged 4 commits into from
Feb 18, 2024
Merged

Use flash-algorithm crate #19

merged 4 commits into from
Feb 18, 2024

Conversation

thejpster
Copy link
Member

The flash-algorithm crate also implements some description information.

Replaces #14. Builds on #18.

Tested working with probe-rs CLI. Slightly larger binary, but I can live with that for not having to use nightly rust.
Belt-and-braces in case we ever get a different RP2040 ROM with missing functions.

Also use constants for the ROM addresses.
I wasn't sure what the error code should be for ROM Func load failure.
Copy link
Member

@9names 9names left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Code size is 12 bytes larger, which is close enough.
Seems to work just fine in my testing.

@9names 9names merged commit c29c100 into main Feb 18, 2024
1 check passed
@9names 9names deleted the use-flash-algorithm branch February 18, 2024 11:53
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

Successfully merging this pull request may close these issues.

2 participants