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

Adds binary info block support. #824

Merged
merged 1 commit into from
Jul 28, 2024
Merged

Conversation

thejpster
Copy link
Member

Adds support for picotool compatible binary info. Bumps MSRV to 1.77.

$ cargo build --release --example binary_info_demo --features=critical-section-impl,binary-info
   Compiling rp2040-hal v0.10.0 (/home/jonathan/Documents/github/rp-hal/rp2040-hal)
    Finished `release` profile [optimized] target(s) in 2.24s
$ picotool info ./target/thumbv6m-none-eabi/release/examples/binary_info_demo -t elf --all
File ./target/thumbv6m-none-eabi/release/examples/binary_info_demo:

Program Information
 name:          rp2040-hal Binary Info Example
 version:       0.10.0
 web site:      https://github.com/rp-rs/rp-hal
 description:   A GPIO blinky with extra metadata.
 binary start:  0x10000000

Fixed Pin Information
 none

Build Information
 pico_board:        pico
 build attributes:  release

The static variables containing the magic header are optional and gated behind the binary-info flag. This allows people to create their own headers if they so choose.

Bumps MSRV to 1.77.
@thejpster thejpster merged commit 23a68bc into main Jul 28, 2024
12 checks passed
@ithinuel ithinuel deleted the add-picotool-metadata-again branch July 28, 2024 23:47
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