Reputation: 484
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)
Upvotes: 1
Views: 382
Reputation: 11
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
Upvotes: 1