18.4.17 Flash Memory Erasing
Figure 18.16 shows a flowchart example of erasing the flash memory in the LPC/FW memory
write cycle.
Read LMCST1 and LMCST2
No
Issue erasing enable command
Read ERASEE bit in LMCST2
No
ERASEE = 1?
Issue block erasure command
Read ERASEE bit in LMCST2
No
ERASEE = 0?
Read FLEI bit in LMCST1
No
Read FLEERR flag in LMCST1
Start
Initial settings
Flag clear?
Yes
Yes
Yes
FLEI = 0?
Yes
No
FLEERR = 0?
Yes
End
Error processing
Figure 18.16 Example of Erasing Flash Memory
[1] Check the LPC/FW memory write cycle processing state
[2] Enable erasing flash memory
[3] Start erasing flash memory block
[4] Wait for completion of erasing flash memory block
[5] Check whether flash memory block has been erased
Rev. 3.00 Jul. 14, 2005 Page 709 of 986
Section 18 LPC Interface (LPC)
REJ09B0098-0300