Expand description
Flash memory (FLASH)
Flash gives access to the whole internal flash, addressed by offsets from FLASH_BASE.
Flash::into_regions and Flash::into_blocking_regions split it into one driver per
flash region (bank, or group of equally sized sectors), which can be handed to different
parts of the application.
The driver is shared by all families. Writes are done in units of WRITE_SIZE bytes,
which is the native program unit of the chip (a half-word on F0/F1/F3, a 256-bit flash
word on H7, …), and erases are done per sector/page.
Structs§
- Bank1
Region - Bank2
Region - Config
- Flash driver configuration.
- Flash
- Internal flash memory driver.
- Flash
Layout - Flash
Region - Flash memory region
- Flash
Sector - Flash sector.
- Interrupt
Handler - Flash interrupt handler.
Enums§
Constants§
- BANK1_
REGION - BANK2_
REGION - EEPROM_
BASE - EEPROM_
SIZE - FLASH_
BASE - FLASH_
REGIONS - FLASH_
SIZE - MAX_
ERASE_ SIZE - READ_
SIZE - Read size (always 1)
- WRITE_
SIZE
Functions§
- banks_
swapped - Returns whether flash banks 1 and 2 are currently swapped in the memory map.
- get_
flash_ regions - Get all flash regions.