User's Manual

This document is the property of KYMATI GmbH and must not be copied or disclosed without its written authorisation.
© - KYMATI GmbH 2020
KY.MAN.0105 (4.0) KY-LOC 1D.02.01 User Manual
Doc.- No.: KY.MAN.0105
Version: 4.0
Date: 17.05.2021
Page: 35 of 43
Field
Offset
Datatype
Description
State
0
Unsigned Integer (8 bit)
Current State of the
Firmware Update:
1 = Exchange of File
Size
Firmware Type
1
Unsigned Integer (8 bit)
1 = Microcontroller
2 = Radar
reserved
2
reserved
3
filesize
4
Unsigned Integer (32 bit)
The total size of the
firmware file to be
uploaded to the
device.
The file size is then used on both host and device side to compute the number of sectors to be
erased (sector size: 4096 bytes) and how many messages must be used to transmit the entire
firmware content.
In the second phase, one must send the following content to the device “ceil(file size / 4096)”
times to erase the flash on the device.
Field
Offset
Datatype
Description
State
0
Unsigned Integer (8 bit)
Current State of the
Firmware Update
2 = Erase Flash sector
Firmware Type
1
Unsigned Integer (8 bit)
1 = Microcontroller
2 = Radar
reserved
2
reserved
3
Every erase message is confirmed with an ACK Status Message.
In the third phase, we partition the actual file content into multiple messages.
The total number of necessary messages is given by the maximum size per firmware update
message: “ceil(file size / 114)”
Field
Offset
Datatype
Description
State
0
Unsigned Integer (8 bit)
Current State of the
Firmware Update:
3 = Exchange of File
Segment
Firmware Type
1
Unsigned Integer (8 bit)
1 = Microcontroller
2 = Radar
reserved
2
reserved
3
<data>
4
Array of unsigned bytes
(8 Bit)
Content of firmware
file data segment.
Maximum size: 114
Bytes