cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H7 MPU configuration register read-back ?

Ryan_Lee
Associate

Currently, I've used the MPU_Config function to set up memory protection for multiple regions.

I want to read back the configuration registers to verify the settings. However, after examining the HAL_MPU_ConfigRegion function in the stm32h7xx_hal_cortex.c driver file, I found that each region configuration's is written to the same register.

Upon reading the MPU->RBAR and MPU->RASR registers post - configuration, only the settings of the last region are retained.

I'm wondering if there's a way to read the configurations of all regions. If not, Could someone explain the reason for this operation?

Thanks!

0 REPLIES 0