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

MicroPython • Re: Pico 2 W MicroPython UF2

$
0
0
RasPiOS identifies it as having .uf2 firmware content -

Code:

david@rp54bw64full0512:~/Projects/PicoW $ file mp_firmware_unofficial_latest.uf2 mp_firmware_unofficial_latest.uf2: UF2 firmware image, family 0xe48bff57, extension tags present, address 0x10ffff00, 2 total blocksdavid@rp54bw64full0512:~/Projects/PicoW $ 
That doesn't look right?
This is just the Errata E10 abs_block at the start of the file - it was updated for 2.1.0 to add the UF2_EXTENSION_RP2_IGNORE_BLOCK (0x9957e304) extension tag to make it more easily identifiable, although looks like this was missed from the release notes

If you want to view the MicroPython UF2 without that block (which just means it won't work with UF2 drag & drop into partitions), just chop the first 512 bytes off the file, eg with

Code:

dd if="mp_firmware_unofficial_latest.uf2" of="mp_firmware_unofficial_latest.uf2.trunc" bs=512 skip=1 && mv "mp_firmware_unofficial_latest.uf2.trunc" "mp_firmware_unofficial_latest.uf2"

Statistics: Posted by will-v-pi — Wed Nov 27, 2024 11:00 am



Viewing all articles
Browse latest Browse all 4810

Trending Articles