Table 9-3 Mpu Control Register Bit Assignments - ARM Cortex-M3 Technical Reference Manual

R2p0
Hide thumbs Also See for Cortex-M3:
Table of Contents

Advertisement

Memory Protection Unit
Bits
Field
[31:2]
-
[2]
PRIVDEFENA
[1]
HFNMIENA
[0]
ENABLE
9-6
Table 9-3 describes the bit assignments of the MPU Control Register.
Function
Reserved.
This bit enables the default memory map for privileged access, as a background region, when
the MPU is enabled. The background region acts as if it was region number 1 before any
settable regions. Any region that is set up overlays this default map, and overrides it.
If this bit = 0, the default memory map is disabled, and memory not covered by a region faults.
When the MPU is enabled and PRIVDEFENA is enabled, the default memory map is as
described in Chapter 4 Memory Map. This applies to memory type, Execute Never (XN),
cache and shareable rules. However, this only applies to privileged mode (fetch and data
access). User mode code faults unless a region has been set up for its code and data.
When the MPU is disabled, the default map acts on both privileged and user mode code.
XN and SO rules always apply to the System partition whether this enable is set or not.
If the MPU is disabled, this bit is ignored.
Reset clears the PRIVDEFENA bit.
This bit enables the MPU when in Hard Fault, NMI, and FAULTMASK escalated handlers. If
this bit = 1 and the ENABLE bit = 1, the MPU is enabled when in these handlers. If this bit =
0, the MPU is disabled when in these handlers, regardless of the value of ENABLE. If this bit
=1 and ENABLE = 0, behavior is Unpredictable.
Reset clears the HFNMIENA bit.
MPU enable bit:
1 = enable MPU
0 = disable MPU.
Reset clears the ENABLE bit.
MPU Region Number Register
Use the MPU Region Number Register to select which protection region is accessed.
Then write to the MPU Region Base Address Register or the MPU Attributes and Size
Register to configure the characteristics of the protection region.
The register address, access type, and Reset state are:
Address
0xE000ED98
Access
Read/write
Reset state
Unpredictable
Figure 9-3 on page 9-7 shows the bit assignments of the MPU Region Number Register.
Copyright © 2005-2008 ARM Limited. All rights reserved.

Table 9-3 MPU Control Register bit assignments

Non-Confidential
ARM DDI 0337G
Unrestricted Access

Advertisement

Table of Contents
loading

Table of Contents