Table 28-65. Swap Control Command FCCOB Requirements (continued)
FCCOB Number
FCCOB Contents [7:0]
7
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.
Flash Operation in Low-Power Modes
K53 Sub-Family Reference Manual, Rev. 6, Nov 2011
690
Freescale Semiconductor, Inc.
Содержание K53 Series
Страница 2: ...K53 Sub Family Reference Manual Rev 6 Nov 2011 2 Freescale Semiconductor Inc...
Страница 58: ...K53 Sub Family Reference Manual Rev 6 Nov 2011 58 Freescale Semiconductor Inc...
Страница 70: ...Orderable part numbers K53 Sub Family Reference Manual Rev 6 Nov 2011 70 Freescale Semiconductor Inc...
Страница 168: ...Human machine interfaces HMI K53 Sub Family Reference Manual Rev 6 Nov 2011 168 Freescale Semiconductor Inc...
Страница 206: ...Boot K53 Sub Family Reference Manual Rev 6 Nov 2011 206 Freescale Semiconductor Inc...
Страница 218: ...Security Interactions with other Modules K53 Sub Family Reference Manual Rev 6 Nov 2011 218 Freescale Semiconductor Inc...
Страница 342: ...PMC Memory Map Register Definition K53 Sub Family Reference Manual Rev 6 Nov 2011 342 Freescale Semiconductor Inc...
Страница 362: ...Functional description K53 Sub Family Reference Manual Rev 6 Nov 2011 362 Freescale Semiconductor Inc...
Страница 384: ...Initialization application information K53 Sub Family Reference Manual Rev 6 Nov 2011 384 Freescale Semiconductor Inc...
Страница 406: ...Application Information K53 Sub Family Reference Manual Rev 6 Nov 2011 406 Freescale Semiconductor Inc...
Страница 424: ...Functional Description K53 Sub Family Reference Manual Rev 6 Nov 2011 424 Freescale Semiconductor Inc...
Страница 514: ...Initialization application information K53 Sub Family Reference Manual Rev 6 Nov 2011 514 Freescale Semiconductor Inc...
Страница 524: ...Functional Description K53 Sub Family Reference Manual Rev 6 Nov 2011 524 Freescale Semiconductor Inc...
Страница 546: ...Restrictions on Watchdog Operation K53 Sub Family Reference Manual Rev 6 Nov 2011 546 Freescale Semiconductor Inc...
Страница 594: ...Interrupts K53 Sub Family Reference Manual Rev 6 Nov 2011 594 Freescale Semiconductor Inc...
Страница 628: ...Functional description K53 Sub Family Reference Manual Rev 6 Nov 2011 628 Freescale Semiconductor Inc...
Страница 702: ...Flash Operation in Low Power Modes K53 Sub Family Reference Manual Rev 6 Nov 2011 702 Freescale Semiconductor Inc...
Страница 772: ...Functional description K53 Sub Family Reference Manual Rev 6 Nov 2011 772 Freescale Semiconductor Inc...
Страница 808: ...Initialization Application Information K53 Sub Family Reference Manual Rev 6 Nov 2011 808 Freescale Semiconductor Inc...
Страница 864: ...Application information K53 Sub Family Reference Manual Rev 6 Nov 2011 864 Freescale Semiconductor Inc...
Страница 894: ...DAC Interrupts K53 Sub Family Reference Manual Rev 6 Nov 2011 894 Freescale Semiconductor Inc...
Страница 908: ...Functional Description K53 Sub Family Reference Manual Rev 6 Nov 2011 908 Freescale Semiconductor Inc...
Страница 920: ...Functional Description K53 Sub Family Reference Manual Rev 6 Nov 2011 920 Freescale Semiconductor Inc...
Страница 926: ...Functional Description K53 Sub Family Reference Manual Rev 6 Nov 2011 926 Freescale Semiconductor Inc...
Страница 1092: ...FTM Interrupts K53 Sub Family Reference Manual Rev 6 Nov 2011 1092 Freescale Semiconductor Inc...
Страница 1114: ...Functional description K53 Sub Family Reference Manual Rev 6 Nov 2011 1114 Freescale Semiconductor Inc...
Страница 1156: ...Functional description K53 Sub Family Reference Manual Rev 6 Nov 2011 1156 Freescale Semiconductor Inc...
Страница 1304: ...On The Go Operation K53 Sub Family Reference Manual Rev 6 Nov 2011 1304 Freescale Semiconductor Inc...
Страница 1334: ...USB Voltage Regulator Module Signal Descriptions K53 Sub Family Reference Manual Rev 6 Nov 2011 1334 Freescale Semiconductor Inc...
Страница 1388: ...Initialization Application Information K53 Sub Family Reference Manual Rev 6 Nov 2011 1388 Freescale Semiconductor Inc...
Страница 1514: ...Application information K53 Sub Family Reference Manual Rev 6 Nov 2011 1514 Freescale Semiconductor Inc...
Страница 1622: ...Software restrictions K53 Sub Family Reference Manual Rev 6 Nov 2011 1622 Freescale Semiconductor Inc...
Страница 1694: ...Initialization application information K53 Sub Family Reference Manual Rev 6 Nov 2011 1694 Freescale Semiconductor Inc...
Страница 1704: ...Functional description K53 Sub Family Reference Manual Rev 6 Nov 2011 1704 Freescale Semiconductor Inc...
Страница 1734: ...Application information K53 Sub Family Reference Manual Rev 6 Nov 2011 1734 Freescale Semiconductor Inc...
Страница 1800: ...Application information K53 Sub Family Reference Manual Rev 6 Nov 2011 1800 Freescale Semiconductor Inc...
Страница 1822: ...K53 Sub Family Reference Manual Rev 6 Nov 2011 1822 Freescale Semiconductor Inc...