Skip to main content
XChen.6
Visitor II
June 6, 2019
Question

STM32L5 privilege mode

  • June 6, 2019
  • 1 reply
  • 2230 views

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

This topic has been closed for replies.

1 reply

ST Technical Moderator
June 11, 2019

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

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks