Skip to main content
Visitor II
October 11, 2024
Question

Can MPU be reprogrammed during runtime ?

  • October 11, 2024
  • 2 replies
  • 653 views

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

 

    This topic has been closed for replies.

    2 replies

    Super User
    October 11, 2024

    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.

    Super User
    October 11, 2024

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