Skip to content

Conversation

@thejpster
Copy link
Member

@thejpster thejpster commented Dec 8, 2023

Tested working with probe-rs CLI. Slightly larger binary, but I can live with that for not having to use nightly rust.

$ ./build.sh
    Finished release [optimized + debuginfo] target(s) in 0.10s
    instructions: 8LUDr4mwK0x8RCB4ASgqTX1EKk5+RAPRKGiARzBogEcBIAiQIHAGlRglKogHlBQkIIgFlhtOMUb3MZBHBJAqiCCIGUmJHJBHA5AqiCCIMUaQRwKQKoggiBRJkEcBkCqIIIgTSZBHBkYqiCCIDkmQRwVGBJygRwOYgEcRSHhEApkBYBBIeEQEYA9IeEQBmQFgBpgGYAWYBWAImAeZCHAAIAmw8L1SRQAAQ1gAAFJQAABGQwAAeAEAAIABAACAAQAADAEAAAABAAACAQAA0LUCrwhMfEQgeAEoCtEHSHhEAGiARwZIeEQAaIBHACAgcNC9ASDQva4AAAC0AAAAsAAAAAVIeEQAeAAoAdEBIHBHAUhwR8BG0HAAAH4AAADQtQKvCUl5RAl4ASkM0Q8hCQdAGAZJeUQMaAEiEQMSBNgjoEcAINC9ASDQvV4AAABWAAAA0LUCrwtGCUl5RAl4ASkK0Q8hCQdAGAZJeUQMaBFGGkagRwAg0L0BINC9wEYoAAAAJAAAAADU1NQAAAAAAAAAAAAAAAAAAAAAAAAAAA==
    pc_init: 1
    pc_uninit: 205
    pc_program_page: 337
    pc_erase_sector: 285
    pc_erase_all: 257

It also uses the official ROM function for walking the ROM table entries rather than walking them manually.

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.
@thejpster thejpster merged commit 0c2ac40 into main Dec 12, 2023
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.

3 participants