Skip to main content
Paul Hein
Visitor II
October 31, 2019
Question

If i use the mpu and for programming another region, does a HAL_MPU_Disable() remove the old config?

  • October 31, 2019
  • 2 replies
  • 772 views

I am using an STM32L471QE, and am programming its MPU. Because of the Software architecture i try to enable the MPU regions one at a time. Does the MPU keep the old configuration if i disable it or do i have to program all the seperate parts again?

This topic has been closed for replies.

2 replies

Tesla DeLorean
Guru
October 31, 2019

Perhaps look at ST's Programming Manuals (PM) or ARM's Technical Reference Manuals (TRM) for the core. Pretty sure the MPU has an enable/disable at the top level, and an enumerated list of regions. If in doubt check the controlling documentation.

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
turboscrew
Senior III
November 4, 2019

I guess ARMv7m ARM is the most covering document. And to me it appears weird if disabling MPU makes it lose its settings...

But better safe than sorry, better check the manuals...