Table 13-31. FlashReadOnce Response Format (Example)
FlashReadOnce
Response
Parameter
Value
Framing packet
start byte
0x5A
packetType
0xA4
length
0x10 0x00
crc
0x3F 0x6F
Command packet
commandTag
0xAF
flags
0x00
reserved
0x00
parameterCount
0x03
status
0x0000_0000
byteCount
0x0000_0004
data
0x1234_5678
Response: upon successful execution of the command, the target (Kinetis Flashloader)
will return a FlashReadOnceResponse packet with a status code set to kStatus_Success, a
byte count and corresponding data read from Program Once Field upon successful
execution of the command, or will return with a status code set to an appropriate error
status code and a byte count set to 0.
13.3.7.8 FlashReadResource command
The FlashReadResource command returns the contents of the IFR field or Flash firmware
ID, by given offset, byte count, and option. The FlashReadResource command uses 3
parameters: start address, byteCount, option.
Table 13-32. Parameters for FlashReadResource Command
Byte #
Parameter
Command
0 - 3
start address
Start address of specific non-volatile memory to be read
4 - 7
byteCount
Byte count to be read
8 - 11
option
0: IFR
1: Flash firmware ID
Chapter 13 Kinetis Flashloader
K22F Sub-Family Reference Manual , Rev. 3, 7/2014
Freescale Semiconductor, Inc.
305