Skip to main content
Visitor II
January 29, 2026
Solved

STM32H563 DBank choose

  • January 29, 2026
  • 1 reply
  • 142 views

Is the flash dual-BANK feature of H563 enabled by default?

 

How to switch banks

Best answer by mƎALLEm

Hello @renlei and welcome to the ST community,

STM32H56x supports the dual bank by architecture.

mALLEm_0-1769675774790.png

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

 

1 reply

mƎALLEm
mƎALLEmBest answer
Technical Moderator
January 29, 2026

Hello @renlei and welcome to the ST community,

STM32H56x supports the dual bank by architecture.

mALLEm_0-1769675774790.png

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

 

"To give better visibility on the answered topics, please click on ""Accept as Solution"" on the reply which solved your issue or answered your question."