TJR
TJR

Reputation: 484

ARMv6-M memory protection unit

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

Answers (1)

Mohit Choradia
Mohit Choradia

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

Related Questions