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

MicroPython • Re: flash partition for read-only storage

$
0
0
I'm after a way to save some static meta-data that shouldn't get erased no matter what, i..e full erase, uf2 update, et'all. what would be the best approach?
A separate EEPROM is only way to ensure it can't be erased/altered no matter what. The RP2040 ROM bootloader has no concept of partitions and a UF2 can overwrite anything in flash. If the UF2 is crafted to avoid the data area then the it'll survive but there is nothing explicitly blocking access.

How much protection do you actually need? The flash chip itself has bank protection features but a program could flip the status bit to reenable write access again.

Statistics: Posted by trejan — Wed Jun 12, 2024 9:51 pm



Viewing all articles
Browse latest Browse all 4861

Trending Articles