Persistent application data erased upon firmware update using Secure Manager
Hi support team and developper community. Happy new year to all.
I have a project including Secure Manager and a Non-Secure application on a STM32H573 platform.
My non-secure app is modeled after the SMAK_Appli app provided within STM32Cube. I used HAL_FLASH API to bring flash storage capability to it.
My application data is stored in a code-free sector at the top of the non-secure flash area, but I could not find any way to notify the Secure Manager about it. Not even in CubeMX. As you would expect, my data persists after reset or power cycle, but it gets erased upon an update of the NS app.
I am aware of the possibility for the Secure Manager to provision data for the sake of the NS application, but this does not fit the bill: my application needs to update the persistent data.
So, in a nutshell, how can I implement a persistent storage which survives firmware upgrades ?
Thanks in advance for your support.
CRE
