-
Notifications
You must be signed in to change notification settings - Fork 246
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
rp-binary-info is not compatible with picotool for rp2350 #853
Comments
That .... is unexpected (I wrote the support and the demos). I'll look into it. |
Can you attach your two elf files, or can you run |
Sure. Objdump results: Elf files with a |
RP2020:
RP2350:
Oops. The |
Indeed, it now works as expected: $ cargo build --bin binary_info_demo
$ picotool info -a -t elf target/thumbv8m.main-none-eabihf/debug/binary_info_demo
File target/thumbv8m.main-none-eabihf/debug/binary_info_demo:
Program Information
name: binary_info_demo
version: 0.1.0
web site: https://github.com/rp-rs/rp-hal
description: A GPIO blinky with extra metadata.
binary start: 0x10000000
target chip: RP2350
image type: ARM Secure
Fixed Pin Information
none
Build Information
pico_board: pico2
build attributes: debug |
With the latest version (2.0.0) of picotool,
picotool info
works with rp2040 binaries but not with rp2350.Steps to reproduce
$ git clone https://github.com/rp-rs/rp-hal.git $ cd rp2040-hal-examples $ cargo build --bin binary_info_demo $ picotool info -a -t elf target/thumbv6m-none-eabi/debug/binary_info_demo File target/thumbv6m-none-eabi/debug/binary_info_demo: Program Information name: rp2040-hal Binary Info Example version: 0.1.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: debug
So it works with RP2040.
But doing the same RP2350 provides no info:
$ cd rp235x-hal-examples $ cargo build --bin binary_info_demo $ picotool info -a -t elf target/thumbv8m.main-none-eabihf/debug/binary_info_demo File target/thumbv8m.main-none-eabihf/debug/binary_info_demo: Program Information none Fixed Pin Information none Build Information none
The text was updated successfully, but these errors were encountered: