Information
Table 28-67. Program Partition Command Error Handling (continued)
Error Condition Error Bit
FCCOB5[7:4] != 0000 FSTAT[ACCERR]
Any errors have been encountered during the verify operation FSTAT[MGSTAT0]
28.4.11.15 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-68. Set FlexRAM Function Command FCCOB Requirements
FCCOB Number FCCOB Contents [7:0]
0 0x81 (SETRAM)
1
FlexRAM Function Control Code
(see Table 28-69)
Table 28-69. 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 flash memory
module sets the function of the FlexRAM based on the FlexRAM Function Control Code.
When making the FlexRAM available as traditional RAM, the flash memory module
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. When the FlexRAM is set to function as a RAM,
normal read and write accesses to the FlexRAM are available. When large sections of
Flash Operation in Low-Power Modes
K20 Sub-Family Reference Manual, Rev. 2, Feb 2012
552 Freescale Semiconductor, Inc.
