Information

FCCOB6 (Current Swap Block Status) - indicates which program flash block is
currently located at relative flash address 0x0_0000.
FCCOB7 (Next Swap Block Status) - indicates which program flash block will
be located at relative flash address 0x0_0000 after the next reset of the FTFL
module.
NOTE
It is recommended that the user execute the Swap Control
command to report swap status (code 0x08) after any reset to
determine if issues with the swap system were detected during
the swap state determination procedure.
NOTE
It is recommended that the user write 0xFF to FCCOB5,
FCCOB6, and FCCOB7 since the Swap Control command will
not always return the swap state and status fields when an
ACCERR is detected.
The swap indicators are implicitly protected from being programmed during Program
Longword or Program Section command operations and are implicitly unprotected during
Swap Control command operations. The swap indicators are implicitly protected from
being erased during Erase Flash Block and Erase Flash Sector command operations
unless the swap indicator being erased is in the non-active program flash block and the
swap system is in the UPDATE or UPDATE-ERASED state. Once the swap system has
been initialized, the Erase All Blocks command can be used to uninitialize the swap
system.
Table 28-66. Swap Control Command Error Handling
Error Condition
Swap
Control
Code
Error Bit
Command not available in current mode/security
1
All FSTAT[ACCERR]
Flash address is not in program flash block 0 All FSTAT[ACCERR]
Flash address is in the Flash Configuration Field All FSTAT[ACCERR]
Flash address is not phrase aligned All FSTAT[ACCERR]
Flash address does not match the swap indicator address in the IFR 2, 4 FSTAT[ACCERR]
Swap initialize requested when swap system is not in the uninitialized state 1 FSTAT[ACCERR]
Swap update requested when swap system is not in the ready state 2 FSTAT[ACCERR]
Swap complete requested when swap system is not in the update-erased
state
4 FSTAT[ACCERR]
An undefined swap control code is provided - FSTAT[ACCERR]
Table continues on the next page...
Chapter 28 Flash Memory Module (FTFL)
K10 Sub-Family Reference Manual, Rev. 6, Nov 2011
Freescale Semiconductor, Inc. 665