GPS Receiver User Manual

11 FIRMWARE UPGRADE
114 Copernicus GPS Receiver
Packet ID – 0x8B (Start Firmware Programming)
This packet initiates firmware loading. It has two parameters. The first parameter (4-
byte value) contains the size of the firmware in bytes. This is the actual number of
bytes that will be written to Flash. The second parameter contains the starting address
in Flash where the data will be written.
Once the target receives this packet, it will respond with ACK and wait for the actual
data, one word at a time. Each word must be sent with the most significant byte first.
All data from the host will be written to the target in the order in which it is received.
The target will not recognize any other packets until the loading is completed. If
successful, the target will return ACK upon completion, or NAK if an error has
occurred.
C
WARNING – The target does not check validity of the starting address nor the size. It is
the host’s responsibility to ensure that all parameters are within the system specification.
If incorrect specification of the starting address overwrites Boot Code, the module will be
unusable.
Table 11.8 Start Firmware Programming
BYTE 0 BYTE 1 BYTE 2 BYTE 3 BYTES 4-7 BYTES 8-11 BYTE 12 BYTE 13
0x02 0x00 0x8B 0x08 Size Address CHKSM 0x03
Table 11.9 Start Firmware Programming
Parameter Data Type Description
Size unsigned long Size of loadable data in bytes.
Address unsigned long Starting physical address
where data will be written to.