SAM3X8E Atmel Corporation, SAM3X8E Datasheet - Page 195

no-image

SAM3X8E

Manufacturer Part Number
SAM3X8E
Description
Manufacturer
Atmel Corporation
Datasheets
11.23 Memory protection unit
11057A–ATARM–17-Feb-12
11057A–ATARM–17-Feb-12
This section describes the Memory protection unit (MPU).
The MPU divides the memory map into a number of regions, and defines the location, size,
access permissions, and memory attributes of each region. It supports:
The memory attributes affect the behavior of memory accesses to the region. The Cortex-M3
MPU defines:
When memory regions overlap, a memory access is affected by the attributes of the region with
the highest number. For example, the attributes for region 7 take precedence over the attributes
of any region that overlaps region 7.
The background region has the same memory access attributes as the default memory map, but
is accessible from privileged software only.
The Cortex-M3 MPU memory map is unified. This means instruction accesses and data
accesses have same region settings.
If a program accesses a memory location that is prohibited by the MPU, the processor generates
a memory management fault. This causes a fault exception, and might cause termination of the
process in an OS environment.
In an OS environment, the kernel can update the MPU region setting dynamically based on the
process to be executed. Typically, an embedded OS uses the MPU for memory protection.
Configuration of MPU regions is based on memory types, see
butes” on page
Table 11-34
behavior attributes that are not relevant to most microcontroller implementations. See
configuration for a microcontroller” on page 208
implementation.
Table 11-34. Memory attributes summary
Memory
type
Strongly-
ordered
Device
• independent attribute settings for each region
• overlapping regions
• export of memory attributes to the system.
• eight separate memory regions, 0-7
• a background region.
Shareability
-
Shared
shows the possible MPU region attributes. These include Share ability and cache
68.
Other attributes
-
-
Description
All accesses to Strongly-ordered memory occur
in program order. All Strongly-ordered regions
are assumed to be shared.
Memory-mapped peripherals that several
processors share.
for guidelines for programming such an
“Memory regions, types and attri-
SAM3X/A
SAM3X/A
“MPU
195
195

Related parts for SAM3X8E