embassy-stm32

Crates

git

Versions

stm32u535rb

Flavors

Skip to main content

perform_bank_swap

Function perform_bank_swap 

Source
pub fn perform_bank_swap() -> Result<Infallible, Error>
Expand description

Swap flash banks 1 and 2 and reset into the swapped banks.

SWAP_BANK is loaded with OBL_LAUNCH, which resets the chip. Returns only if programming the option bytes failed (OPTWERR).

PLEASE READ THE REFERENCE MANUAL - there are nuances to this feature.