STM32CubeIDE STM32U575 MPU RBAR_A registers not working correctly in SFRs Debug Window?
- January 30, 2023
- 4 replies
- 2535 views
When debugging the operation of the MPU on the STM32U575 I'm confused by the apparent behaviour of the RBAR_Ax registers in the SFR window of STM32CubeIDE 1.10.1
From the ARM docs I think (but I'm not 100%) that the RBAR_A1, RBAR_A2 & RBAR_A3 registers in the Cortex-M33 are "shortcuts" to the RBAR register (aka RBAR_A0) of subsequent memory regions.
In other words, my understanding is that setting MPU_RNR = 1 and accessing the MPU_RBAR is the same as setting MPU_RNR = 0 and accessing MPU_RBAR_A1.
However, when I observe the SFRs window during debug I note that all of the RBAR_Ax registers show the same value.
Either I'm not understanding something or something's broken.
To be clear, when I change (for example) the value in RBAR_A1, the value of RBAR_A2 also changes to match it.