Module flash

Module flash 

Source
Expand description

Read and write onboard flash memory. Erase pages (sectors on H7), write data, and read data.

Before using this module, check the datasheet and/or RM for your specific STM32 variant for page [sector] size, and number of pages [sectors] available. Make sure not to write to a page your MCU doesn’t have, or that includes your program’s memory.

Structs§

Flash

Enums§

Bank
For dual-bank variants. u8 value is used for page erase: sets CR reg, BKER bit.
DualBank
Set dual bank mode (DBANK option bit). Eg G4
FlashError
Possible error states for flash operations.