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

picotool uf2 convert cannot append arbitrary data #169

Open
Athorus opened this issue Nov 8, 2024 · 2 comments
Open

picotool uf2 convert cannot append arbitrary data #169

Athorus opened this issue Nov 8, 2024 · 2 comments

Comments

@Athorus
Copy link

Athorus commented Nov 8, 2024

I’ve got 2 data files :
table.bin (283 bytes)
configuration.bin (64 bytes)

if I do
picotool uf2 convert -o 0x10001000 table.bin pico.uf2
picotool uf2 convert -o 0x10002000 configuration.bin pico.uf2
then I got :
a file pico.uf2 of 512 bytes long. It means table.bin has been removed from pico.uf2 (or pico.uf2 has been deleted before adding configuration.bin)

Thanks to picotool uf2 convert we should be able to add arbitrary data at arbitrary location.

I do not have this issue when I append binary codes compiled for the right location.

@Athorus
Copy link
Author

Athorus commented Nov 8, 2024

I was able to do the work with uf2conv.py tool from Sming (https://sming.readthedocs.io/en/stable/_inc/Sming/Arch/Rp2040/Components/uf2/uf2conv.html)
Would be great to do it with picotool uf2 convert

@will-v-pi
Copy link

The picotool uf2 convert command does not append data to the uf2 file - it just creates a new UF2 file with the data you give it. Hence overwriting the pico.uf2 file when you run the command a second time.

We could maybe add a picotool uf2 combine command to combine 2 UF2 files into one, but that wouldn't be a priority as you can just make 2 UF2 files then copy them one at a time.

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

No branches or pull requests

2 participants