}
crc = temp;
}
}
return crc;
}
A special framing packet that contains only a start byte and a packet type is used for
synchronization between the host and target.
Table 13-6. Special Framing Packet Format
Byte #
Value
Parameter
0
0x5A
start byte
1
0xA
n
packetType
The Packet Type field specifies the type of the packet from one of the defined types
(below):
Table 13-7. packetType Field
packetType
Name
Description
0xA1
kFramingPacketType_Ack
The previous packet was received successfully; the sending
of more packets is allowed.
0xA2
kFramingPacketType_Nak
The previous packet was corrupted and must be re-sent.
0xA3
kFramingPacketType_AckAbort
Data phase is being aborted.
0xA4
kFramingPacketType_Command
The framing packet contains a command packet payload.
0xA5
kFramingPacketType_Data
The framing packet contains a data packet payload.
0xA6
kFramingPacketType_Ping
Sent to verify the other side is alive. Also used for UART
autobaud.
0xA7
kFramingPacketType_PingResponse
A response to Ping; contains the framing protocol version
number and options.
13.3.6.4 Command packet
The command packet carries a 32-bit command header and a list of 32-bit parameters.
Table 13-8. Command Packet Format
Command Packet Format (32 bytes)
Command Header (4 bytes)
28 bytes for Parameters (Max 7 parameters)
Table continues on the next page...
Chapter 13 Kinetis Flashloader
K22F Sub-Family Reference Manual , Rev. 3, 7/2014
Freescale Semiconductor, Inc.
291