This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS570LC4357: MPU Lock Feature

Part Number: TMS570LC4357

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

  • Hi Shivam,

    Yes, the MPU is programmed using CP15 registers c1 and c6. The memory region control read and write access is permitted only from privileged modes. Code in user mode is not able to enable and configure the MPU.

    I don't know other approach to protect MPU from re-configuration.