ColdFire Flash Module (CFM)
MCF5213 ColdFire® Integrated Microcontroller Reference Manual, Rev. 3
Freescale Semiconductor
15-11
The flash memory is divided into logical sectors for the purpose of data protection using the CFMPROT
register. The flash memory consists of thirty-two 8-Kbyte sectors, as shown in
.
To change the flash memory protection on a temporary basis, the CFMPROT register should be written
after the LOCK bit in the CFMMCR register has been cleared. To change the flash memory protection
loaded during the reset sequence, the flash logical sector containing the flash configuration field must first
be unprotected, then the flash protection bytes must be programmed with the desired value.
PROTECT[31:0] —
Figure 15-8. CFMPROT Protection Diagram
Table 15-8. CFMPROT Field Descriptions
Field
Description
31 - 0
PROTECT
Each flash logical sector can be protected from program and erase operations by setting the
PROTECT[M] bit.
PROTECT[M] = 1: Flash logical sector M is protected.
PROTECT[M] = 0: Flash logical sector M is not protected.
(PROGRAM_ARRA 0x0000_0000)
(PROGRAM_ARRA 0x0003_FFFF)
SECTOR 0
(PROGRAM_ARRA 0x0000_2000)
PROTECT[31]
PROTECT[0]
(PROGRAM_ARRA 0x0003_E000)
•
•
•
(PROGRAM_ARRA 0x0001_E000)
SECTOR 15
SECTOR 31
•
•
•
SECTOR 16
(PROGRAM_ARRA 0x0002_2000)
(PROGRAM_ARRA 0x0002_0000)
8kBytes
8kBytes
8kBytes
8kBytes
Flash Logical Sectors -
protection defined by CFMPROT