Table 13-8. Command Packet Format (continued)
Command Packet Format (32 bytes)
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-9. 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-10. Command Tags
Command Tag
Name
0x01
FlashEraseAll
The command tag specifies one of the
commands supported by the Kinetis
Flashloader. The valid command tags for the
Kinetis Flashloader are listed here.
0x02
FlashEraseRegion
0x03
ReadMemory
0x04
WriteMemory
0x06
FlashSecurityDisable
0x07
GetProperty
0x09
Execute
0x0B
Reset
0x0C
SetProperty
0x0D
Reserved
Functional Description
K22F Sub-Family Reference Manual , Rev. 3, 7/2014
292
Freescale Semiconductor, Inc.