Skip to main content

Module flash

Module flash 

Source
Expand description

NOR Flash abstraction with wear leveling and transaction support

Models typical small SPI NOR flash chips:

  • 4KB pages (erase granularity)
  • 256B write granularity (program page size)
  • Limited erase cycles (~100k)

Structs§

Flash
Simulated NOR Flash storage
FlashConfig
Flash configuration
PageId
Page identifier (0-based)

Constants§

DEFAULT_NUM_PAGES
Default number of pages (16 = 64KB)
DEFAULT_PAGE_SIZE
Default page size (4KB)
PROGRAM_PAGE_SIZE
Program page size (256 bytes)