Tool/software: Code Composer Studio
Hello
HAL software MPU,enable mpu background ,When do I need to select
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software: Code Composer Studio
Hello
HAL software MPU,enable mpu background ,When do I need to select
Hi Whong,
MPU supports overlapping regions. If regions are overlapping, every attribute of a lower prior region gets overwritten by the attributes of the higher prior region.
If the address that the processor issues falls outside any of the defined regions, the MPU is hard-wired to abort the access. That is, all accesses for an address that is not mapped to a region in the MPU generate a background fault.
You can override this behavior by programming region 0 as a 4GB background region. The background region has a lower priority than any other region. Therefore, a background region provides the memory attributes for any memory access that does not match any of the defined memory regions. In this way, if the address does not fall into any of the other 11 regions, the attributes and access permissions you specified for region 0 control the access.
So it's better to enable the background region.
There is one option of " Enable MPU background Region" under MPU general Configuration.
Enabling MPU background region doesn't affect other MPU region settings.