cancel
Showing results for 
Search instead for 
Did you mean: 

STM32U585QI, can programmed code span both internal flash memory banks?

BDoon.1
Associate III

I have a project that I'm compiling for the STM32U585QI, which has a dual bank architecture with two 1MB banks. My project has gotten large enough that it's going to spill over into the second memory bank. Are there any issues with running code that spans across the two banks?

It seems to build and run okay, but I'm wary of encountering issues down the road... Like if I'm writing data to one of the banks and running code out of the same bank. Or writing to one while running from the other. Any issues with any of that?

1 REPLY 1
Diane POMABIA
ST Employee

Hi @Community member​ 

No issue , you can run code that spans across these two banks.

You can take inspiration from this example:

https://github.com/STMicroelectronics/STM32CubeU5/tree/main/Projects/NUCLEO-U575ZI-Q/Examples/FLASH/FLASH_SwapBanks

Regards

Diane P