cancel
Showing results for 
Search instead for 
Did you mean: 

STM32L5 privilege mode

XChen.6
Associate

Hi Sir,

I am reading STM32L5 user manual. I noticed the privileged mode and unprivileged mode, as well as security attribution. I want to know if this privileged mode related to arm-cortex m cpu privileged mode?​

For example, cpu in unprivileged mode can only acess unprivileged peripheral?

Thanks!

Xin

1 REPLY 1
Imen.D
ST Employee

Hello @XChen.6​ ,

You are right, and cpu in unprivileged mode can only acess unprivileged peripheral.

Any non-privilege transaction trying to acces a privilege resource is considered as illegal. There is no illegal access event generated for this type of illegal access. The addressed resource follows a silent-fail behavior, returning all zero data for read and ignoring any write. No bus error is generated. 

Refer to the reference manual RM0438 for more details about Privileged and Unprivileged modes.

Kind Regards,

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen