cancel
Showing results for 
Search instead for 
Did you mean: 

Can MPU be reprogrammed during runtime ?

Epamuk
Associate III

Hello, 

I use STM32F746 , touchgfx, SDRAM, NORFLASH in my project. I use MPU and I make configurations in CUBEMX and I have MPU_Config() funciton in my main.c. 

I wonder that;  is MPU one time programmable after reset or can I  reconfig MPU during runtime?

 I ask this because have a bootloader also use mpu config 

If boot loader configures MPU is it possible to configure MPU by main code ?

 

Thanks

 

2 REPLIES 2
AScha.3
Chief III

Hi,

>is it possible to configure MPU by main code ?

Sure, at every program its configuring cpu in main. ( init and config things...)

You can modify settings later, any time in your program - as long, as you know, what you do.

If you feel a post has answered your question, please click "Accept as Solution".
Pavel A.
Evangelist III

But the bootloader can run the main app in non-privileged mode and protect access to system registers by MPU, including the MPU itself.