ColdFire Flash Module (CFM)
MCF52235 ColdFire® Integrated Microcontroller Reference Manual, Rev. 6
17-28
Freescale Semiconductor
Figure 17-18. Example Mass Erase Command Flow
17.4.2.3.5
Flash Normal Mode Illegal Operations
The ACCERR flag is set during the command write sequence if any of the following illegal operations are
performed, causing the command write sequence to immediately abort:
1. Writing to the flash memory before initializing CFMCLKD.
2. Writing to the flash memory while CBEIF is not set.
Write: Register CFMCLKD
Read: Register CFMCLKD
Write: Array Address and
Write: Register CFMCMD
Mass Erase Command 0x41
Write: Register CFMUSTAT
yes
no
Clear bit CBEIF 0x80
CBEIF
Set?
Bit
yes
Clock Register
Written
Check
1.
2.
3.
no
Protection
Violation Check
Read: Register CFMUSTAT
CCIF
Set?
Bit
no
no
Address, Data,
Command
Buffer Empty Check
Next Write?
yes
no
Dummy Data
Clear bit PVIOL 0x20
Write: Register CFMUSTAT
yes
PVIOL
Set?
Bit
Bit Polling for
Command
Completion Check
Read: Register CFMUSTAT
yes
NOTE: command write sequence
aborted by writing 0x00 to
CFMUSTAT register.
NOTE: command write sequence
aborted by writing 0x00 to
CFMUSTAT register.
EXIT
Read: Register CFMUSTAT
no
CBEIF
Set?
Bit
START
yes
•
DIVLD
Set?
Bit
Change Protection
Clear bit ACCERR/PVIOL 0x30
Write: Register CFMUSTAT
yes
no
Access Error and
Protection Violation
ACCERR/PVIOL
Set?
Bit
Check
Because
of
an
order
from
the
United
States
International
Trade
Commission,
BGA-packaged
product
lines
and
part
numbers
indicated
here
currently
are
not
available
from
Freescale
for
import
or
sale
in
the
United
States
prior
to
September
2010:MCF52234CVM60,
MCF52235CVM60