rp2040_flash
Exclusive, word-oriented NOR region using the RP2040 ROM flash routines.
Programming accepts erased words only; a page buffer contains ones outside the requested words, so appending an entry does not reprogram older entries. Both cores cooperate through the SoC XIP guard, all DMA must be idle, and each ROM operation has a hardware watchdog deadline. A stalled flash resets to recovery; it cannot safely return a software timeout with XIP unavailable.
Structs
Section titled “Structs”FlashRegion
Section titled “FlashRegion”struct FlashRegion { /* private fields */ }One board-reserved partition. No second handle (including overlapping
partitions) can open while this handle exists. Not Sync: calls may not race.
Implements: NorFlash, Drop
enum Error { Alignment, Range, InUse, NotErased, Verify, Unsupported, RomUnavailable, WatchdogTimebase, Exclusion(soc_rp2040::xip::Error),}Implements: Clone, Copy, Debug, Eq, PartialEq, StructuralPartialEq
References: Error
Constants
Section titled “Constants”PAGE_SIZE
Section titled “PAGE_SIZE”const PAGE_SIZE: usize;SECTOR_SIZE
Section titled “SECTOR_SIZE”const SECTOR_SIZE: u32;