Skip to main content
Aleks
Associate III
April 13, 2023
Solved

STM32H725 reinit MPU.

Hi.

Is it possible to reconfigure one or some regions MPU without fully disabling MPU?

I need configure for example ITCM memory for RW access when load code and set to RO mode after code copied completed.

Code copied from SDRAM to ITCM, so MPU needed for correct access to SDRAM.

Thank You.

This topic has been closed for replies.
FBLBest answer
ST Technical Moderator
May 3, 2023

Hello @Aleks​,

First, It is possible to reconfigure one or some regions MPU without fully disabling MPU.

Second, for access permissions of regions, you may need to check Table 3. in AN4838.

Finally, you can get inspired with this example STM32Cube\Repository\STM32Cube_FW_H7_V1.11.0\Projects\STM32H743I-EVAL\Examples\FMC\FMC_SDRAM_DataMemory

Hope this helps!

To give better visibility on the answered topics, please click on "Best answer" on the reply which solved your issue or answered your question.Best regards,FBL

1 reply

FBLBest answer
ST Technical Moderator
May 3, 2023

Hello @Aleks​,

First, It is possible to reconfigure one or some regions MPU without fully disabling MPU.

Second, for access permissions of regions, you may need to check Table 3. in AN4838.

Finally, you can get inspired with this example STM32Cube\Repository\STM32Cube_FW_H7_V1.11.0\Projects\STM32H743I-EVAL\Examples\FMC\FMC_SDRAM_DataMemory

Hope this helps!

To give better visibility on the answered topics, please click on "Best answer" on the reply which solved your issue or answered your question.Best regards,FBL