SAM3S8C Atmel Corporation, SAM3S8C Datasheet - Page 196

no-image

SAM3S8C

Manufacturer Part Number
SAM3S8C
Description
Manufacturer
Atmel Corporation
Datasheets
10.22 Memory protection unit
196
196
SAM3S8/SD8
SAM3S8/SD8
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 10-34
behavior attributes that are not relevant to most microcontroller implementations. See
configuration for a microcontroller” on page 209
implementation.
Table 10-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
54.
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-
11090A–ATARM–10-Feb-12
11090A–ATARM–10-Feb-12
“MPU

Related parts for SAM3S8C