English
Language : 

PXR40RM Datasheet, PDF (477/1434 Pages) Freescale Semiconductor, Inc – PXR40 Microcontroller
Memory Protection Unit (MPU)
Region Description
RGDn
CP0
CP1
eDMA
MPU
6
rw-
rw-
--
Peripherals
7
rw-
rw-
rw
Figure 16-10. Overlapping Region Descriptor Example
FlexRay
--
--
Peripheral
In this example, there are eight descriptors used to span nine regions in the three main spaces of
the system memory map (flash, RAM, and peripheral space). Each region indicates the specific
permissions for each of the four bus masters and this definition provides an appropriate set of
shared, private and executable memory spaces.
Of particular interest are the two overlapping spaces: region descriptors 2 and 3, and 3 and 4.
The space defined by RGD2 with no overlap is a private data and stack area that provides
read/write access to CP0 only. The overlapping space between RGD2 and RGD3 defines a shared
data space for passing data from CP0 to CP1 and the access controls are defined by the logical OR
of the two region descriptors. Thus, CP0 has (rw- | r--) = (rw-) permissions, while CP1 has
(--- | r--) = (r--) permission in this space. Both DMA engines are excluded from this shared
processor data region. The overlapping spaces between RGD3 and RGD4 defines another shared
data space, this one for passing data from CP1 to CP0. For this overlapping space, CP0 has (r--
| ---) = (r--) permission, while CP1 has (rw- | r--) = (rw-) permission. The
non-overlapped space of RGD4 defines a private data and stack area for CP1 only.
The space defined by RGD5 is a shared data region, accessible by all four bus masters. Finally, the
slave peripheral space mapped onto the peripheral bus is partitioned into two regions: one (RGD6)
containing the MPU’s programming model accessible only to the two processor cores, and the
remaining peripheral region (RGD7) accessible to both processors and the traditional eDMA
master.
This example is intended to show one possible application of the capabilities of the memory
protection unit in a typical system.
Freescale Semiconductor
PXR40 Microcontroller Reference Manual, Rev. 1
16-17