2024-10-11 01:49 AM
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
2024-10-11 02:18 AM
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.
2024-10-11 09:29 AM
But the bootloader can run the main app in non-privileged mode and protect access to system registers by MPU, including the MPU itself.