Information
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-59. 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]
Any errors have been encountered during the swap determination and
program-verify operations
1, 2, 4 FSTAT[MGSTAT0]
Any brownouts were detected during the swap determination procedure 8 FSTAT[MGSTAT0]
1. Returned fields will not be updated, i.e. no swap state or status reporting
Chapter 28 Flash Memory Module (FTFL)
K20 Sub-Family Reference Manual, Rev. 6, Nov 2011
Freescale Semiconductor, Inc. 645
