cancel
Showing results for 
Search instead for 
Did you mean: 

What is the behavior after configuring the background MPU in Cubemx?

zzzaizz
Associate III

The development board I am using is stm32h723. Assuming I only configured region 0 and wrote a blacklist, all regions (both privileged and non-privileged) are inaccessible. The remaining 15 regions were not configured. However, in the MPU Control Mode, I configured "Background Region Privileged access only + MPU Disable during hard fault, NMI and FAULTMASK handlers". This means that for unconfigured regions, only the privileged can access them, and the MPU is disabled during hard faults, NMI, and FAULTMASK handlers. What would happen after this configuration? The CPU is in bare-metal mode without an operating system, and it is in privileged mode. Who should it listen to?屏幕截图 2026-03-24 174622.png

1 ACCEPTED SOLUTION

Accepted Solutions
mƎALLEm
ST Employee

Hello,

The explanation of that MPU background region is provided in this post: Information about MPU settings for the STM32H743

That background configuration impacts only the external memories and unused memory regions to prevent any CM7 speculative access to invalid memory regions.

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.

View solution in original post

1 REPLY 1
mƎALLEm
ST Employee

Hello,

The explanation of that MPU background region is provided in this post: Information about MPU settings for the STM32H743

That background configuration impacts only the external memories and unused memory regions to prevent any CM7 speculative access to invalid memory regions.

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.