Skip to main content
Explorer
December 16, 2024
Solved

Is there any limit when updating the CONTROL register ?

  • December 16, 2024
  • 2 replies
  • 1029 views

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

    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

    2 replies

    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

    pasuzwAuthor
    Explorer
    December 16, 2024

    Hi Peter

     

    Thanks for your quick response.