cancel
Showing results for 
Search instead for 
Did you mean: 

Is there any limit when updating the CONTROL register ?

pasuzw
Associate

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.

2 REPLIES 2
Peter BENSCH
ST Employee

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.
pasuzw
Associate

Hi Peter

 

Thanks for your quick response.