9.10. Stage firmware [16]
The first part of uploading firmware to the SF40/C is to stage the data. This command accepts pages of the
firmware,each
128 byt es
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
i nt 16
Page index
The index of the page currently being uploaded
0x02
128 byt es
Page data
The byte data of the page currently being
uploaded
When reading this command, or analyzing its response after writinga page, the packet will contain an
i nt 32
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
-7
Firmware is for a different product
Read
Write
Persists
i nt 32
130 byt es
-
9.11. Commit firmware [17]
The second part of uploading firmware to the SF40/C is to committhe staged data. Once the firmware data has
been fully uploaded using the
Stage firmware [16]
command, then this command can be written to (with 0 bytes).
When reading this command, or analyzing its response after writing, the packet will contain an
i nt 32
error code:
Value
Description
-1
Firmware integritycheck failed
1
Firmware integritycheck passed and firmware
committed
SF40/C
Product manual
SF40/C -Product manual
|
21 of 30 |
© LightWare Optoelectronics (Pty) Ltd, 2019 |
www.lightware.co.za