Datasheet

Table 4-29. Program flash command error handling
Register Error bit Error condition
NVM_FSTAT
ACCERR
Set if CCOBIX[2:0] ≠ 011 or 101 at command launch
Set if command not available in current mode (see Table 4-9)
Set if an invalid global address [23:0] is supplied (see Table 4-6)
1
Set if a misaligned longword address is supplied (global address [1:0] !=
00)
Set if the requested group of words breaches the end of the flash block.
FPVIOL Set if the global address [23:0] points to a protected data
MGSTAT1 Set if any errors have been encountered during the verify operation
MGSTAT0
Set if any non-correctable errors have been encountered during the verify
operation
1. As defined by the memory map of NVM
4.5.2.9.6 Program once command
The program once command restricts programming to a reserved 64 byte field (8 phrases)
in the nonvolatile information register located in flash. The program once reserved field
can be read using the read once command as described in Read once command. The
program once command must be issued only because the nonvolatile information register
in flash cannot be erased. To avoid code runaway, the read once command must not be
executed from the flash block containing the program once reserved field.
Table 4-30. Program once command FCCOB requirements
CCOBIX[2:0] FCCOB parameters
000 0x07 Not required
001 Program Once phrase index (0x000 – 0x0007)
010 Program once Word 0 value
011 Program once Word 1value
100 Program once Word 2 value
101 Program once Word 3 value
Upon clearing FSTAT[CCIF] to launch the program once command, the memory
controller first verifies that the selected phrase is erased. If erased, then the selected
phrase will be programmed and then verified with read back. The FSTAT[CCIF] flag will
remain clear, setting only after the program once operation has completed.
Flash and EEPROM
MC9S08PA60 Reference Manual, Rev. 1, 9/2012
96 Freescale Semiconductor, Inc.