![NXP Semiconductors SAFE ASSURE Qorivva MPC5601P Reference Manual Download Page 310](http://html.mh-extra.com/html/nxp-semiconductors/safe-assure-qorivva-mpc5601p/safe-assure-qorivva-mpc5601p_reference-manual_1721898310.webp)
Chapter 17 Flash Memory
MPC5602P Microcontroller Reference Manual, Rev. 4
310
Freescale Semiconductor
17.2.4.1
Memory map
First, consider the Flash memory space accessed via transactions from the platform Flash controller’s AHB
port. To support the two separate Flash memory banks, the platform Flash controller uses address bit 23
(haddr[23]) to steer the access to the appropriate memory bank. In addition to the actual Flash memory
regions, there are shadow and test sectors included in the system memory map. The program-visible
control and configuration registers associated with each memory array are included in the slave peripheral
address region. The system memory map defines one code Flash array and one data Flash array. See
.
CAUTION
Software executing from flash memory must not write to registers that
control flash behavior (such as wait state settings or prefetch
enable/disable). Doing so can cause data corruption. On this chip, these
registers include PFCR0 and PFAPR.
NOTE
Flash memory configuration registers should be written only with 32-bit
write operations to avoid any issues associated with register incoherency
caused by bit fields spanning smaller size (8-, 16-bit) boundaries.
For additional information on the address-based read access timing for emulation of other memory types,
see
Section 17.2.17, “Wait state emulation.
Table 17-1. Flash-related regions in the system memory map
Start address
End address
Size
(KB)
Region
0x0000_0000
0x0007_FFFF
512
Code Flash array 0
0x0008_0000
0x001F_FFFF
1536
Reserved
0x0020_0000
0x0020_3FFF
16
Code Flash array 0: shadow sector
0x0020_4000
0x003F_FFFF
2032
Reserved
0x0040_0000
0x0040_3FFF
16
Code Flash array 0: test sector
0x0040_4000
0x007F_FFFF
4080
Reserved
0x0080_0000
0x0080_FFFF
64
Data Flash array 0
0x0081_0000
0x00C0_1FFF
4040
Reserved
0x00C0_2000
0x00C0_3FFF
8
Data Flash array 0: test sector
0x00C0_4000
0x00FF_FFFF
4080
Reserved
0x0100_0000
0x1FFF_FFFF
507904
Emulation Mapping
0xFFE8_8000
0xFFE8_BFFF
16
Code Flash array 0 configuration
1
1
This region is also aliased to address 0xC3F8_nnnn.
0xFFE8_C000
0xFFE8_FFFF
16
Data Flash array 0 configuration
0xFFEB_0000
0xFFEB_BFFF
48
Reserved