
Chapter 11 Memory Mapping Control (S12XMMCV4) SUPPORTING FLEXRAY
MC9S12XF - Family Reference Manual, Rev.1.19
Freescale Semiconductor
429
S12X CPU & BDM Global Address Mapping
The non-internal resources (unimplemented areas or external
space) are used to generate the chip selects (CS0,CS1,CS2 and CS3) (see
Figure ), which are only active
11.4.2.4
XGATE Memory Map Scheme
11.4.2.4.1
Expansion of the XGATE Local Address Map
The XGATE 64 Kbyte memory space allows access to internal resources only (Registers, RAM, and
FLASH). The 2 Kilobyte register address range is the same register address range as for the CPU and the
XGATE can access the FLASH in single chip modes, even when the MCU is secured. In expanded modes,
XGATE can not access the FLASH when MCU is secured.
The local address of the XGATE RAM access is translated to the global RAM address range. The XGATE
shares the RAM resource with the CPU and the BDM module (see
Table 11-17).XGATE RAM size (XGRAMSIZE) may be lower or equal to the MCU RAM size (RAMSIZE).
In case of XGATE RAM size less than 32 Kbytes (see
Figure 11-19), the gap in the xgate local memory
The local address of the XGATE FLASH access is always translated to the global address 0x78_0800 -
0x78_7FFF.
Example 11-3. is a general example of the XGATE memory map implementation.
Example 11-3.
The MCU FLASHSIZE is 64 Kbytes (0x10000) and MCU RAMSIZE is 32 Kbytes (0x8000).
The XGATE RAMSIZE is 16 Kbytes (0x4000).
The space occupied by the XGATE RAM in the global address space will be:
Bottom address: (0x10_0000 minus 0x4000) = 0x0F_C000
Top address: 0x0F_FFFF
XGATE accesses to local address range 0x0800–0x7FFF will result always in accesses to the
following FLASH block in the global address space:
Bottom address: 0x78_0800
Top address: 0x78_7FFF
The gap range in the local memory map 0x8000–0xBFFF will be translated in the global address
space:
Table 11-17. XGATE Implemented Memory Space
Internal Resource
$Address
XGATE RAM
XGRAM_LOW = 0x0F_0000 plus (0x1_0000 minus XGRAMSIZE)(1)
1. XGRAMSIZE is the hexadecimal value of XGATE RAM SIZE in bytes.