2026-01-28 11:51 PM
Is the flash dual-BANK feature of H563 enabled by default?
How to switch banks
2026-01-29 12:38 AM - edited 2026-01-29 12:39 AM
Hello @renlei and welcome to the ST community,
STM32H56x supports the dual bank by architecture.
To switch banks, modify the SWAP_BANK option bit using the FLASH_OPTSR_PRG register and perform a system reset to make the change effective.
Hope that helps
An example on how to swap the banks is available on github: https://github.com/STMicroelectronics/STM32CubeH5/tree/main/Projects/NUCLEO-H563ZI/Examples/FLASH/FLASH_SwapBanks