embassy-stm32

Crates

git

Versions

stm32h562zi

Flavors

Skip to main content

perform_bank_swap

Function perform_bank_swap 

Source
pub fn perform_bank_swap()
Expand description

Swaps flash banks 1 and 2, persistently.

This allows the application to write a new firmware image into bank 2, then swap the banks and reset, booting the new firmware. The swap takes effect at the next reset; banks_swapped() keeps returning the current state until then.

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