Skip to content

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
@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