Question
Enabling TrustZone non-secure internal flash and ram reads as zero from secure state
I am trying to use TrustZone on STM32U5A9:
I am setting up the following regions in SAU:
- 0xc1fe000-0xc1fffff non-secure callable
- 0x8200000-0x83fffff non-secure
- 0x200c0000-0x20273fff non-secure
- 0x60000000-0x6fffffff non-secure
As soon as I flip the enable flag in the SAU control register, the non-secure marked regions become invisible to secure code and start to read as zero. This contradicts the ARM documentation, which says that secure code can read non-secure memory.
So what am I missing?
