Skip to main content
Associate II
December 16, 2024
Solved

Is there any limit when updating the CONTROL register ?

Hi 

I am using Memory Protection Unit on a Nucleo-G474 board and trying to adapt the MPU feature to existing software.

I found in the pm214 that we can change the CONTROL register to enter or leave privileged mode. I tried to enter and leave privileged mode and it worked.

My question is as following:

Does this CONTROL register have something like a lifetime cycle ? Can I frequently update the CONTROL register, say 10,000 times a second and expect it will work for the next 10 years ?

 

Thank you very much.

This topic has been closed for replies.
Peter BENSCH
Peter BENSCHBest answer
ST Technical Moderator
December 16, 2024

Welcome @pasuzw, to the community!

As the CONTROL register is located in the core and not in Flash, there is no write cycle restriction. You can write around in it as much as you like.

Hope that helps?

Regards
/Peter

In order 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.

2 replies

Peter BENSCH
Peter BENSCHBest answer
ST Technical Moderator
December 16, 2024

Welcome @pasuzw, to the community!

As the CONTROL register is located in the core and not in Flash, there is no write cycle restriction. You can write around in it as much as you like.

Hope that helps?

Regards
/Peter

In order 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.
pasuzwAuthor
Associate II
December 16, 2024

Hi Peter

 

Thanks for your quick response.