Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8051

SDK • Re: Creating a uf2 that doesn't start at address 0

$
0
0
What picotool version are you using, how are you loading the UF2, and could you send the bin file you’re having issues with? If I create a bin file with some data, and use an absolute family (or rp2350-arm-s family) to make the UF2 using the latest picotool, then it loads correctly to 0x10001000 for me when copying to the mass storage drive.
My picotool version is "picotool v2.1.1 (Windows, GNU-14.2.0, Release)".

My data bin file is just the ASCII string "hello". See attached zip.

My command line is:
picotool uf2 convert test.bin test_offset1000_w_absolute.uf2 -o 0x10001000 --family absolute

The resulting UF2 file is in the attached zip.

I'm loading the UF2 file by dragging and dropping onto the bootsel mode mass storage device, via Windows 10 Explorer.

The flash_nuke.uf2 I'm using to erase the flash is also in the attached zip. I can't remember where that came from.
Just tested with your UF2 file and it works fine for me - note that you do get 0s after the "hello", but the "hello" is being written correctly to 0x10001000

Instead of using flash_nuke, my erase command was:

Code:

picotool erase --range 0x10000000 0x10002000
and to check the flash contents after dragging & dropping I used:

Code:

picotool save flash.bin --range 0x10000000 0x10002000

Statistics: Posted by will-v-pi — Tue Jul 08, 2025 9:11 am



Viewing all articles
Browse latest Browse all 8051

Trending Articles