Information
Table 28-42. Read Resource Command FCCOB Requirements (continued)
FCCOB Number FCCOB Contents [7:0]
User-provided values
8 Resource Select Code (see Table 28-43)
1. Must be longword aligned (Flash address [1:0] = 00).
Table 28-43. Read Resource Select Codes
Resource
Select Code
1
Description Resource Size Local Address Range
0x00 IFR 256 Bytes 0x0000 - 0x00FF
0x01
2
Version ID 8 Bytes 0x0000 - 0x0007
1. Flash address [23] selects between program flash (=0) and data flash (=1) resources.
2. Located in program flash 0 reserved space; Flash address [23] = 0
After clearing CCIF to launch the Read Resource command, four consecutive bytes are
read from the selected resource at the provided relative address and stored in the FCCOB
register. The CCIF flag sets after the Read Resource operation completes. The Read
Resource command exits with an access error if an invalid resource code is provided or if
the address for the applicable area is out-of-range.
Table 28-44. Read Resource Command Error Handling
Error Condition Error Bit
Command not available in current mode/security FSTAT[ACCERR]
An invalid resource code is entered FSTAT[ACCERR]
Flash address is out-of-range for the targeted resource. FSTAT[ACCERR]
Flash address is not longword aligned FSTAT[ACCERR]
28.4.11.5 Program Longword Command
The Program Longword command programs four previously-erased bytes in the program
flash memory or in the data flash memory using an embedded algorithm.
CAUTION
A flash memory location must be in the erased state before
being programmed. Cumulative programming of bits (back-to-
back program operations without an intervening erase) within a
flash memory location is not allowed. Re-programming of
existing 0s to 0 is not allowed as this overstresses the device.
Chapter 28 Flash Memory Module (FTFL)
K20 Sub-Family Reference Manual, Rev. 2, Feb 2012
Freescale Semiconductor, Inc. 539
