Datasheet
NVM_FSTAT field descriptions (continued)
Field Description
0 Flash command in progress.
1 Flash command has completed.
6
Reserved
This field is reserved.
This read-only field is reserved and always has the value 0.
5
ACCERR
Flash Access Error Flag
The ACCERR bit indicates an illegal access has occurred to the flash memory caused by either a violation
of the command write sequence or issuing an illegal flash command. While ACCERR is set, the CCIF flag
cannot be cleared to launch a command. The ACCERR bit is cleared by writing a 1 to ACCERR. Writing a
0 to the ACCERR bit has no effect on ACCERR.
0 No access error detected.
1 Access error detected.
4
FPVIOL
Flash Protection Violation Flag
The FPVIOL bit indicates an attempt was made to program or erase an address in a protected area of
flash or EEPROM memory during a command write sequence. The FPVIOL bit is cleared by writing a 1 to
FPVIOL. Writing a 0 to the FPIOL bit has no effect on FPIOL. While FPIOL is set, it is not possible to
launch a command or start a command write sequence.
0 No protection violation detected.
1 Protection violation detected.
3
MGBUSY
Memory Controller Busy Flag
The MGBUSY flag reflects the active state of the memory controller.
0 Memory controller is idle.
1 Memory controller is busy executing a flash command (CCIF = 0).
2
Reserved
This field is reserved.
This read-only field is reserved and always has the value 0.
1–0
MGSTAT
Memory Controller Command Completion Status Flag
One or more MGSTAT flag bits are set if an error is detected during execution of a flash command or
during the flash reset sequence.
NOTE: Reset value can deviate from the value shown if a double bit fault is detected during the reset
sequence.
4.6.7 Flash Error Status Register (NVM_FERSTAT)
The FERSTAT register reflects the error status of internal flash and EEPROM
operations.
Address: 3020h base + 7h offset = 3027h
Bit 7 6 5 4 3 2 1 0
Read 0
DFDIF SFDIF
Write
Reset
0 0 0 0 0 0 0 0
Flash and EEPROM registers descriptions
MC9S08PA60 Reference Manual, Rev. 1, 9/2012
110 Freescale Semiconductor, Inc.
