Data Packet; Response Packet - NXP Semiconductors freescale KV4 Series Reference Manual

Table of Contents

Advertisement

Table 14-10. Responses that are supported (continued)
Response
0xA3
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.

14.2.5.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.
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.

14.2.5.6 Response packet

The responses are carried using the same command packet format wrapped with framing
packet data. Types of responses include:
• GenericResponse
• GetPropertyResponse
• ReadMemoryResponse
GenericResponse: After the Kinetis Flashloader has processed a command, the
flashloader will send a generic response with status and command tag information to the
host. The generic response is the last packet in the command protocol sequence. The
generic response packet contains the framing packet data and the command packet data
Freescale Semiconductor, Inc.
Name
ReadMemoryResponse (used for sending responses to ReadMemory command
only)
KV4x Reference Manual, Rev. 2, 02/2015
Preliminary
Chapter 14 Kinetis Flashloader
227

Advertisement

Table of Contents
loading

Table of Contents