Module stm32_hal2::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§

Enums§

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