2025-04-23 12:02 AM - last edited on 2025-04-23 1:29 AM by Andrew Neil
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!