Skip to main content
BDoon.1
Associate III
May 24, 2023
Question

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

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?

This topic has been closed for replies.

1 reply

ST Employee
May 26, 2023

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