Table 29-51. Program Check Command Error Handling
Error Condition
Error Bit
Command not available in current mode/security
FSTAT[ACCERR]
An invalid flash address is supplied
FSTAT[ACCERR]
Flash address is not longword aligned
FSTAT[ACCERR]
An invalid margin choice is supplied
FSTAT[ACCERR]
Flash address is located in an XA controlled segment and the Erase All Blocks or the Read
1s All Blocks command has not successfully completed since the last reset
FSTAT[FPVIOL]
Either of the margin reads does not match the expected data
FSTAT[MGSTAT0]
29.4.11.3 Read Resource Command
The Read Resource command allows the user to read data from special-purpose memory
resources located within the flash memory module. The special-purpose memory
resources available include program flash IFR space and the Version ID field. Each
resource is assigned a select code as shown in
.
Table 29-52. Read Resource Command FCCOB Requirements
FCCOB Number
FCCOB Contents [7:0]
0
0x03 (RDRSRC)
1
Flash address [23:16]
2
Flash address [15:8]
3
Returned Values
4
Read Data [31:24]
5
Read Data [23:16]
6
Read Data [15:8]
7
Read Data [7:0]
User-provided values
8
Resource Select Code (see
1. Must be longword aligned (Flash address [1:0] = 00).
Table 29-53. Read Resource Select Codes
Resource
Select Code
Description
Resource Size
Local Address Range
0x00
Program Flash 0 IFR
256 Bytes
0x00_0000–0x00_00FF
0x01
Version ID
8 Bytes
0x00_0000–0x00_0007
1. Located in program flash 0 reserved space.
Functional Description
K22F Sub-Family Reference Manual , Rev. 3, 7/2014
642
Freescale Semiconductor, Inc.