Information

Table 28-69. Program Partition Command Error Handling
Error Condition Error Bit
Command not available in current mode/security FSTAT[ACCERR]
The EEPROM data size and FlexNVM partition code bytes are not initially 0xFFFF FSTAT[ACCERR]
Invalid EEPROM Data Size Code is entered (see Table 28-67 for valid codes) FSTAT[ACCERR]
Invalid FlexNVM Partition Code is entered (see Table 28-68 for valid codes) FSTAT[ACCERR]
FlexNVM Partition Code = full data flash (no EEPROM) and EEPROM Data Size Code
allocates FlexRAM for EEPROM
FSTAT[ACCERR]
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.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-70. Set FlexRAM Function Command FCCOB Requirements
FCCOB Number FCCOB Contents [7:0]
0 0x81 (SETRAM)
1
FlexRAM Function Control Code
(see Table 28-71)
Table 28-71. 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
Chapter 28 Flash Memory Module (FTFL)
K20 Sub-Family Reference Manual, Rev. 1.1, Dec 2012
Freescale Semiconductor, Inc.
Preliminary
637
General Business Information