ARMv6-M memory protection unit

310 Views Asked by At

While reading the documentation of ARMv6-M, I met for the first time the memory protection unit (which is not that complicated). According to the documentation, there is a register named the MPU_RASR (which stands for "MPU Region Attribute and Size Register") and clearly there is more than one of the register (one for each memory region if I understood correctly). My question is how can I know how many replicas of this registers exists? (I reached this part of the documentation from the for loop in the ValidateAddress function description - bits(16) size_enable = MPU_RASR[r]<15:0>; ("r" is the iterator)

1

There are 1 best solutions below

0
Mohit Choradia On

It should basically be equal to number of areas/spaces that you have partitioned into, and I guess there is a cap on this number in ARM processors