
Flash Memory
MPC5566 Microcontroller Reference Manual, Rev. 2
Freescale Semiconductor
13-31
NOTE
Lock and Select are independent. If a block is selected and locked, no erase
occurs. Refer to
Section 13.3.2.2, “Low/Mid Address Space Block Locking
Section 13.3.2.3, “High Address Space Block
Low/Mid Address Space Block Locking Register (FLASH_SLMLR)
more information.
3. Write to any address in flash. This is referred to as an erase interlock write.
4. Write a logic 1 to the FLASH_MCR[EHV] bit to start an internal erase sequence or skip to step 9
to terminate.
5. Wait until the FLASH_MCR[DONE] bit goes high.
6. Confirm FLASH_MCR[PEG] = 1.
7. Write a logic 0 to the FLASH_MCR[EHV] bit.
8. If more blocks are to be erased, return to step 2.
9. Write a logic 0 to the FLASH_MCR[ERS] bit to terminate the erase.
The erase sequence is presented graphically in
. The erase suspend operation detailed in
is discussed in section
Section 13.4.2.4.1, “Flash Erase Suspend/Resume
.”
After settingFLASH_MCR[ERS], one write, referred to as an interlock write, must be performed before
FLASH_MCR[EHV] can be set to a 1. Data words written during erase sequence interlock writes are
ignored. The user can terminate the erase sequence by clearing FLASH_MCR[ERS] before setting
FLASH_MCR[EHV].
An erase operation can be aborted by clearing FLASH_MCR[EHV] assuming FLASH_MCR[DONE] is
low, FLASH_MCR[EHV] is high and FLASH_MCR[ESUS] is low. An erase abort forces the module to
step 8 of the erase sequence. An aborted erase results in FLASH_MCR[PEG] being set low, indicating a
failed operation. The blocks being operated on before the abort contain indeterminate data. The user
cannot abort an erase sequence while in erase suspend.
WARNING
Aborting an erase operation leaves the flash core blocks being erased in an
indeterminate data state. This can be recovered by executing an erase on the
affected blocks.
13.4.2.4.1
Flash
Erase Suspend/Resume
The erase sequence can be suspended to allow read access to the flash core. The erase sequence can also
be suspended to program (erase-suspended program) the flash core. A program started during erase
suspend can in turn be suspended. Only one erase suspend and one program suspend are allowed at a time
during an operation. It is not possible to erase during an erase suspend, or program during a program
suspend. During suspend, all reads to flash core locations targeted for program and blocks targeted for
erase return indeterminate data. Programming locations in blocks targeted for erase during
erase-suspended program can result in corrupted data.
Содержание MPC5566
Страница 12: ...MPC5566 Microcontroller Reference Manual Devices Supported MPC5566 MPC5566 RM Rev 2 0 23 Apr 2008...
Страница 81: ...Introduction MPC5566 Microcontroller Reference Manual Rev 2 1 24 Freescale Semiconductor...
Страница 135: ...Signal Description MPC5566 Microcontroller Reference Manual Rev 2 2 54 Freescale Semiconductor...
Страница 189: ...Reset MPC5566 Microcontroller Reference Manual Rev 2 4 20 Freescale Semiconductor...
Страница 331: ...System Integration Unit SIU MPC5566 Microcontroller Reference Manual Rev 2 6 128 Freescale Semiconductor...
Страница 343: ...Crossbar Switch XBAR MPC5566 Microcontroller Reference Manual Rev 2 7 12 Freescale Semiconductor...
Страница 361: ...Error Correction Status Module ECSM MPC5566 Microcontroller Reference Manual Rev 2 8 18 Freescale Semiconductor...
Страница 455: ...Interrupt Controller INTC MPC5566 Microcontroller Reference Manual Rev 2 10 42 Freescale Semiconductor...
Страница 603: ...Flash Memory MPC5566 Microcontroller Reference Manual Rev 2 13 38 Freescale Semiconductor...
Страница 609: ...SRAM MPC5566 Microcontroller Reference Manual Rev 2 14 6 Freescale Semiconductor...
Страница 679: ...Boot Assist Module BAM MPC5566 Microcontroller Reference Manual Rev 2 16 20 Freescale Semiconductor...
Страница 997: ...Deserial Serial Peripheral Interface DSPI MPC5566 Microcontroller Reference Manual Rev 2 20 72 Freescale Semiconductor...
Страница 1037: ...Enhanced Serial Communication Interface eSCI MPC5566 Microcontroller Reference Manual Rev 2 21 40 Freescale Semiconductor...
Страница 1073: ...MPC5566 Microcontroller Reference Manual Rev 2 22 36 Freescale Semiconductor...
Страница 1081: ...Voltage Regulator Controller VRC and POR Module MPC5566 Microcontroller Reference Manual Rev 2 23 8 Freescale Semiconductor...
Страница 1093: ...IEEE 1149 1 Test Access Port Controller JTAGC MPC5566 Microcontroller Reference Manual Rev 2 24 12 Freescale Semiconductor...
Страница 1185: ...Nexus MPC5566 Microcontroller Reference Manual Rev 2 25 92 Freescale Semiconductor...
Страница 1267: ...MPC5566 Reference Manual Revision History MPC5566 Microcontroller Reference Manual Rev 2 Freescale Semiconductor C 10...
Страница 1268: ...MPC5566 Reference Manual Revision History MPC5566 Microcontroller Reference Manual Rev 2 Freescale Semiconductor C 11...