earlephilhower / arduino-pico

Raspberry Pi Pico Arduino core, for all RP2040 and RP2350 boards
GNU Lesser General Public License v2.1
2.03k stars 422 forks source link

binary info not included? #1003

Closed speters closed 1 year ago

speters commented 1 year ago

Thx for the arduino-pico framework!

I tried to include binary info metadata in my program, but I am unable to find this info in the uploaded code.

[...]
#include <pico/binary_info.h>
[...]
void setup()
{
  bi_decl(bi_program_name("myprogram"));
  [...]

picotool info -a does not show any info after uploading to the PiPico. When I do a strings firmware.* | grep 'myprogram' there is also nothing found.

Compilation is done via the Platformio setup from the docs (had to manually remove arduino-mbed framework as pio kept preferring this).

I am hoping for a hint of a solution...

earlephilhower commented 1 year ago

Binary info is not supported in the Arduino core. Because we use a multi-stage bootloader (for OTA support), the Pico SDK tools cannot properly use any info we'd include from then last-stage real app binary.

kilograham commented 1 year ago

@earlephilhower Feel free to comment on https://github.com/raspberrypi/picotool/issues/82 which is something i'd been thinking about for a while