Hi Team,
For our application running on the TMS570LC4357 controller, On Powered-Up we are running in the privileged mode (System Mode), and we are configuring the MPU region once in the Following sequence:
Disable - MPU
Configure all the desired MPU Regions
Enable - MPU.
But we have observed that the reconfiguration of the MPU i.e. disabling and re-enabling MPU is possible even after that.
So here, We have seen one method that to protect the MPU reconfiguration, we can switch to User Mode, which will not allow reconfiguring MPU, However, apart from that, We would like to understand that is there any other approach to Lock/Protect the MPU, such that it will not allow to reconfigures once configured being in a privileged mode.
Regards,
Shivam