![Lightware LW24 LiDAR Скачать руководство пользователя страница 29](http://html1.mh-extra.com/html/lightware/lw24-lidar/lw24-lidar_product-manual_1915298029.webp)
16. Stage firmware
The first part of uploading firmware to the LW24/C is to stage the data. This command accepts pages of the firmware,
each 128 bytes long, and an index to indicate which page is being uploaded. Pages are created by dividing the firmware
upgrade file into multiple 128 byte chunks.
When writing to this command, use the following data structure:
Byte offset
Data
type
Name
Description
0x00
uint16
Page
index
The index of the page currently being
uploaded
0x02
128
bytes
Page data
The byte data of the page currently being
uploaded
When reading this command, or analysing its response after writing a page, the packet will contain an int32 error code:
Value
Description
0 to
1000
Index of successfully written page
-1
Page length is invalid
-2
Page index is out of range
-3
Flash failed to erase
-4
Firmware file has invalid header
-5
Flash failed to write
-6
Firmware is for a different hardware
version or firmware version is too
low
-7
Firmware is for a different product
Read
Write
Persists
uint32
130
bytes
-
17. Commit firmware
The second part of uploading firmware to the LW24/C is to commit the staged data. Once the firmware data has been
fully uploaded using the
command, then this command can be written to (with 0 bytes).
When reading this command, or analysing its response after writing, the packet will contain an int32 error code:
Value
Description
-1
Firmware integrity check failed
1
Firmware integrity check passed and
firmware committed
LW24/C/SI microLiDAR™ sensor - Product guide
|
Version 0
|
03 March 2022
Page
29
of
36