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

SDK • Re: Storing data (credentials) to flash keeps getting overwritten (Pico 2 W, C)

$
0
0
I wonder why all this 'Flash setup' cannot be done with useful data, even if that means writing it twice, without disturbing other pages/sectors/blocks.
As noted; it won't work with partitioning. But it can be done when it's known partitioning isn't being used and you have a single image UF2, which will be the case for most home users and hobbyists, and maybe others.

The simplest solution is to strip out any E10 Fix in the UF2 file and make it a completely Absolute Address image. Or generate it that way from the '.elf' using -

Code:

picotool uf2 convert  --family 0xE48BFF57  xyzzy.elf  xyzzy.uf2
My tools handle an ARM or RISC-V image masquerading as an Absolute Address image but others might need to update theirs to support that.

There is no option within 'picotool' to convert an ARM or RISC-V image UF2 into an Absolute Address UF2 or vice-versa but that could be added or achieved with a separate utility. I guess I'll be investigating that, looking at updating my MicroPython build to do this and avoid needing the E10 Fix.

Statistics: Posted by hippy — Tue May 20, 2025 6:42 pm



Viewing all articles
Browse latest Browse all 8621

Trending Articles