Table 13-26. FillMemory Command Packet Format (Example)
FillMemory
Parameter
Value
Framing packet
start byte
0x5A
packetType
0xA4, kFramingPacketType_Command
length
0x10 0x00
crc16
0xE4 0x57
Command packet
commandTag
0x05 – FillMemory
flags
0x00
reserved
0x00
parameterCount
0x03
startAddress
0x00007000
byteCount
0x00000800
patternWord
0x12345678
The FillMemory command has no data phase.
Response: upon successful execution of the command, the target (Kinetis Flashloader)
will return a GenericResponse packet with a status code set to kStatus_Success, or to an
appropriate error status code.
13.3.7.6 FlashProgramOnce command
The FlashProgramOnce command writes data (that is provided in a command packet) to a
specified range of bytes in the program once field. Special care must be taken when
writing to the program once field.
• The program once field only supports programming once, so any attempted to
reprogram a program once field will get an error response.
• Writing to the program once field requires the byte count to be 4-byte aligned or 8-
byte aligned.
The FlashProgramOnce command uses 3 parameters: index 2, byteCount, data.
Table 13-27. Parameters for FlashProgramOnce Command
Byte #
Command
0 - 3
Index of program once field
4 - 7
Byte count
8 - 11
Data
12 - 16
Data
Functional Description
K22F Sub-Family Reference Manual , Rev. 3, 7/2014
302
Freescale Semiconductor, Inc.