English
Language : 

K60P100M100SF2RM Datasheet, PDF (680/1809 Pages) Freescale Semiconductor, Inc – K60 Sub-Family Reference Manual
Flash Operation in Low-Power Modes
Table 28-65. Swap Control Command FCCOB Requirements (continued)
FCCOB Number
7
FCCOB Contents [7:0]
Next Swap Block Status (after any reset):
0x00 - Program flash block 0 at 0x0_0000
0X01 - Program flash block 1 at 0x0_0000
1. Must be phrase-aligned (Flash address [2:0] = 000).
Upon clearing CCIF to launch the Swap Control command, the FTFL will handle swap-
related activities based on the swap control code provided in FCCOB4 as follows:
• 0x01 (Initialize Swap System to UPDATE-ERASED State) - After verifying that the
current swap state is UNINITIALIZED and that the flash address provided is in
Program flash block 0 but not in the Flash Configuration Field, the flash address
(shifted with bits[2:0] removed) will be programmed into the IFR Swap Field found
in program flash 1 IFR. After the swap indicator address has been programmed into
the IFR Swap Field, the swap enable word will be programmed to 0x0000. After the
swap enable word has been programmed, the swap indicator, located within the
Program flash block 0 address provided, will be programmed to 0xFF00.
• 0x02 (Progress Swap to UPDATE State) - After verifying that the current swap state
is READY and that the flash address provided matches the one stored in the IFR
Swap Field, the swap indicator located within bits [15:0] of the flash address in the
currently active program flash block will be programmed to 0xFF00.
• 0x04 (Progress Swap to COMPLETE State) - After verifying that the current swap
state is UPDATE-ERASED and that the flash address provided matches the one
stored in the IFR Swap Field, the swap indicator located within bits [15:0] of the
flash address in the currently active program flash block will be programmed to
0x0000. Before executing with this swap control code, the user must erase the non-
active swap indicator using the Erase Flash Block or Erase Flash Sector commands
and update the application code or data as needed. The non-active swap indicator will
be checked at the erase verify level and if the check fails, the current swap state will
be changed to UPDATE with ACCERR set.
• 0x08 (Report Swap System Status) - After verifying that the flash address provided
matches the one stored in the IFR Swap Field, the status of the swap system will be
reported as follows:
• FCCOB5 (Current Swap State) - indicates the current swap state based on the
status of the swap enable word and the swap indicators. If the MGSTAT0 flag is
set after command completion, the swap state returned was not successfully
transitioned from and the appropriate swap command code must be attempted
again. If the current swap state is UPDATE and the non-active swap indicator is
0xFFFF, the current swap state is changed to UPDATE-ERASED.
K60 Sub-Family Reference Manual, Rev. 6, Nov 2011
680
Freescale Semiconductor, Inc.