Table 13-11. Response Tags
Response Tag
Name
0xA0
GenericResponse
The response tag specifies one of the responses
the Kinetis Flashloader (target) returns to the
host. The valid response tags are listed here.
0xA7
GetPropertyResponse (used for sending
responses to GetProperty command only)
0xA3
ReadMemoryResponse (used for sending
responses to ReadMemory command only)
Flags: Each command packet contains a Flag byte. Only bit 0 of the flag byte is used. If
bit 0 of the flag byte is set to 1, then data packets will follow in the command sequence.
The number of bytes that will be transferred in the data phase is determined by a
command-specific parameter in the parameters array.
ParameterCount: The number of parameters included in the command packet.
Parameters: The parameters are word-length (32 bits). With the default maximum
packet size of 32 bytes, a command packet can contain up to 7 parameters.
13.3.6.5 Data packet
The data packet carries just the data, either host sending data to target, or target sending
data to host. The data transfer direction is determined by the last command sent from the
host. The data packet is also wrapped within a framing packet, to ensure the correct
packet data is received.
Table 13-12. Data Packet Format
Data Packet Format (32 bytes)
The contents of a data packet are simply the data itself. There are no other fields, so that
the most data per packet can be transferred. Framing packets are responsible for ensuring
that the correct packet data is received.
13.3.6.6 Response packet
The responses are carried using the same command packet format wrapped with framing
packet data. There are 3 types of responses:
• GenericResponse
Chapter 13 Kinetis Flashloader
K22F Sub-Family Reference Manual , Rev. 3, 7/2014
Freescale Semiconductor, Inc.
293