13.3.7.4 Command packet
The command packet carries a 32-bit command header and a list of 32-bit parameters.
Table 13-11. Command Packet Format
Command Packet Format (32 bytes)
Command Header (4 bytes)
28 bytes for Parameters (Max 7 parameters)
Tag
Flags
Rsvd
Param
Count
Param1
(32-bit)
Param2
(32-bit)
Param3
(32-bit)
Param4
(32-bit)
Param5
(32-bit)
Param6
(32-bit)
Param7
(32-bit)
byte 0 byte 1 byte 2 byte 3
Table 13-12. Command Header Format
Byte #
Command Header Field
0
Command or Response tag
The command header is 4 bytes long, with
these fields.
1
Flags
2
Reserved. Should be 0x00.
3
ParameterCount
The header is followed by 32-bit parameters up to the value of the ParameterCount field
specified in the header. Because a command packet is 32 bytes long, only 7 parameters
can fit into the command packet.
Command packets are also used by the target to send responses back to the host. As
mentioned earlier, command packets and data packets are embedded into framing packets
for all of the transfers.
Table 13-13. Commands that are supported
Command
Name
0x01
FlashEraseAll
0x02
FlashEraseRegion
0x03
ReadMemory
0x04
WriteMemory
0x05
Reserved
0x06
FlashSecurityDisable
0x07
GetProperty
0x08
Reserved
0x09
Execute
0x0A
Reserved
0x0B
Reset
0x0C
SetProperty
0x0D
FlashEraseAllUnsecure
Table continues on the next page...
Functional Description
KL27 Sub-Family Reference Manual , Rev. 5, 01/2016
190
Freescale Semiconductor, Inc.