Information
Table 28-72. Program Partition Command Error Handling (continued)
Error Condition Error Bit
FlexNVM Partition Code allocates space for EEPROM backup, but EEPROM Data Size
Code allocates no FlexRAM for EEPROM
FSTAT[ACCERR]
FCCOB4[7:6] != 00 FSTAT[ACCERR]
FCCOB5[7:4] != 0000 FSTAT[ACCERR]
Any errors have been encountered during the verify operation FSTAT[MGSTAT0]
28.4.12.16 Set FlexRAM Function Command
The Set FlexRAM Function command changes the function of the FlexRAM:
• When not partitioned for EEPROM, the FlexRAM is typically used as traditional
RAM.
• When partitioned for EEPROM, the FlexRAM is typically used to store EEPROM
data.
Table 28-73. Set FlexRAM Function Command FCCOB Requirements
FCCOB Number FCCOB Contents [7:0]
0 0x81 (SETRAM)
1
FlexRAM Function Control Code
(see Table 28-74)
Table 28-74. FlexRAM Function Control
FlexRAM Function
Control Code
Action
0xFF
Make FlexRAM available as RAM:
• Clear the FCNFG[EEERDY] and FCNFG[RAMRDY] flags
• Write a background of ones to all FlexRAM locations
• Set the FCNFG[RAMRDY] flag
0x00
Make FlexRAM available for EEPROM:
• Clear the FCNFG[EEERDY] and FCNFG[RAMRDY] flags
• Write a background of ones to all FlexRAM locations
• Copy-down existing EEPROM data to FlexRAM
• Set the FCNFG[EEERDY] flag
After clearing CCIF to launch the Set FlexRAM Function command, the FTFL sets the
function of the FlexRAM based on the FlexRAM Function Control Code.
When making the FlexRAM available as traditional RAM, the FTFL clears the
FCNFG[EEERDY] and FCNFG[RAMRDY] flags, overwrites the contents of the entire
FlexRAM with a background pattern of all ones, and sets the FCNFG[RAMRDY] flag.
The state of the FEPROT register does not prevent the FlexRAM from being overwritten.
Flash Operation in Low-Power Modes
K10 Sub-Family Reference Manual, Rev. 6, Nov 2011
672 Freescale Semiconductor, Inc.
