Trimble Outdoors 58052-00 Benutzerhandbuch

Seite von 251
Copernicus GPS Receiver     1 0 7
FIRMWARE UPGRADE     1 1
Firmware Binary File Format
The firmware is distributed as a 16 Mbit binary file that includes the whole Flash 
image, i.e. the Copernicus GPS Firmware, Boot ROM, and all the other Flash 
sections. The Monitor protocol requires that the actual loadable raw data bytes be sent 
to the target to program into Flash. The loadable data is expected to be sent in a 
sequential manner, in the order from the lowest to the highest loading address. Data 
will be programmed starting at the base address specified when initiating firmware 
loading. Therefore, the GPS Firmware portion of the binary file must be extracted 
prior to sending it to the target. Appendix A provides a reference to example source 
code that shows how to extract data from the binary file.
Firmware Loading Procedure
This section describes the procedure for loading firmware into the Flash chip of the 
Copernicus GPS receiver (referred to as “target” throughout this document).
The following pseudo-code shows the general sequence of steps. The details of each 
step are provided later in this section.Appendix A provides a reference to the sample 
C source code that shows how to implement this pseudo-code.
Pseudo-code
Load Firmware to Target:
{
Read the firmware BIN file, extract the application firmware, and
load into a memory buffer.
Set local serial port settings depending on serial port used.
For Port A, set 38400-8-none-1; for Port B, set 4800-8-none-1;
If using TSIP, establish connection using the TSIP protocol:
Send TSIP version request packet 0x1F;
Wait for TSIP version response packet 0x45;
If TSIP version response packet not received:
Exit/power-cycle target and repeat from beginning;
If using NMEA, establish connection using NMEA protocol:
Send NMEA version request packet VR;
Wait for NMEA version response packet VR;
If NMEA version response packet not received:
Exit/power-cycle target and repeat from beginning;
Force target into Monitor mode;