
Chapter 8 256 KByte Flash Module (S12XFTM256K2XFV1)
MC9S12XF - Family Reference Manual, Rev.1.19
Freescale Semiconductor
261
CAUTION
A P-Flash phrase must be in the erased state before being programmed.
Cumulative programming of bits within a Flash phrase is not allowed.
Upon clearing CCIF to launch the Program P-Flash command, the Memory Controller will program the
data words to the supplied global address and will then proceed to verify the data words read back as
expected. The CCIF ag will set after the Program P-Flash operation has completed.
8.4.2.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 P-Flash block 0. The Program Once reserved field can be read
using the Read Once command as described in
Section 8.4.2.4. The Program Once command must only
be issued once since the nonvolatile information register in P-Flash block 0 cannot be erased. The Program
Table 8-41. Program P-Flash Command FCCOB Requirements
CCOBIX[2:0]
FCCOB Parameters
000
0x06
Global address [22:16] to
identify P-Flash block
001
Global address [15:0] of phrase location to be programmed(1)
1. Global address [2:0] must be 000
010
Word 0 program value
011
Word 1 program value
100
Word 2 program value
101
Word 3 program value
Table 8-42. Program P-Flash Command Error Handling
Register
Error Bit
Error Condition
FSTAT
ACCERR
Set if CCOBIX[2:0] != 101 at command launch
Set if command not available in current mode (see
Table 8-30)Set if an invalid global address [22:0] is supplied(1)
1. As dened by the memory map for FTM512K3.
Set if a misaligned phrase address is supplied (global address [2:0] != 000)
FPVIOL
Set if the global address [22:0] points to a protected area
MGSTAT1
Set if any errors have been encountered during the verify operation(2)
2. As found in the memory map for FTM512K3.
MGSTAT0
Set if any non-correctable errors have been encountered during the verify
FERSTAT
EPVIOLIF
None