Skip to main content
WChoi.4
Visitor II
Oct 6, 2021 7:38 PM UTC
Solved

STM32L5 secure access to non-secure flash block read as zero. Is it an architecturally specified behavior or just an MCU specific behavior?

I am currently experimenting on stm32l562e-dk board, and I discovered that, in the secure world, non-secure flash cannot be read via a secure memory region (i.e. not covered by any of the SAU regions). To be specific, value of zero is read.

I am wondering whether this behavior is architecturally specified or just STM32-specific.

Thanks

This topic has been closed for replies.
Bubbles
BubblesBest answer
ST Employee
Oct 13, 2021 3:04 PM UTC

Hello @WChoi.4​ ,

this is AFAIK intended by ARM architecture and also expected by ARM secure SW such as TFM. If you want the separation to work only one way, you are probably looking for privilege setting, not secure/nonsecure.

BR,

J.

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.

1 reply

Bubbles
BubblesBest answer
ST Employee
Oct 13, 2021 3:04 PM UTC

Hello @WChoi.4​ ,

this is AFAIK intended by ARM architecture and also expected by ARM secure SW such as TFM. If you want the separation to work only one way, you are probably looking for privilege setting, not secure/nonsecure.

BR,

J.

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.