Skip to main content
WChoi.4
Visitor II
October 6, 2021
Solved

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

  • October 6, 2021
  • 1 reply
  • 928 views

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.
Best answer by Bubbles

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.

1 reply

Bubbles
BubblesBest answer
ST Employee
October 13, 2021

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.