Struct stm32_hal2::flash::Flash [−][src]
pub struct Flash { /* fields omitted */ }
Implementations
The Flash memory is organized as 72-bit wide memory cells (64 bits plus 8 ECC bits) that can be used for storing both code and data constants.
Unlock the flash memory, allowing writes. See L4 Reference manual, section 3.3.5.
Erase an entire page. See L4 Reference manual, section 3.3.5. For why this is required, reference L4 RM, section 3.3.7: “Programming in a previously programmed address is not allowed except if the data to write is full zero, and any attempt will set PROGERR flag in the Flash status register (FLASH_SR).”
Write the contents of a page. Must be erased first. See L4 RM, section 3.3.7.
Read a single 64-bit memory cell, indexed by its page, and an offset from the page.
Read flash memory at a given page and offset into a buffer.