2021-01-05 11:45 PM
what does MPU_InitStruct.TypeExtField ? mean
only three options available
#define MPU_TEX_LEVEL0 ((uint8_t)0x00)
#define MPU_TEX_LEVEL1 ((uint8_t)0x01)
#define MPU_TEX_LEVEL2 ((uint8_t)0x02)
does it mean only 3 set of HAL_MPU_ConfigRegion(&MPU_InitStruct); can be called?
is any of many macros can be repeated or if HAL_MPU_ConfigRegion can be called more than three times with multiple regions?
2021-01-06 08:50 PM
This controls the TEX field in the MPU->RASR register, which, along with C/B/S bits, define the properties of that section of memory.
> is any of many macros can be repeated or if HAL_MPU_ConfigRegion can be called more than three times with multiple regions?
The MPU_InitStruct.Number specifies the region number. For the chip I'm looking at, you can have up to 8 different regions.