Trimble Outdoors 58052-00 Benutzerhandbuch

Seite von 251
1 1      FIRMWARE UPGRADE
1 1 6      Copernicus GPS Receiver
FlashLoader Tool Reference Guide
Introduction
Flash Loader is a tool for Microsoft Windows that loads firmware into the Flash chip 
of the GPS receiver. This tool is used to upload new firmware into the Copernicus 
GPS Receiver mounted on the Reference Board installed in the Copernicus Starter 
Kit. 
The source code of the tool is documented to provide an example of how to develop a 
custom application to perform firmware updates. It shows how to use the Monitor 
protocol to implement the firmware loading procedure (see 
). It can be used, for example, to develop a program to update 
firmware remotely over a network connection.
FlashLoader has been created using the Microsoft Visual C++® v6.0 development 
environment. It uses the MFC framework to implement the graphical user interface. 
While the compiled executable of the tool is provided together with the source code, 
Microsoft Visual C++ v6.0 or .NET is required to re-compile the source files and 
generate a fresh executable if desired.
File and Folder Structure
The FlashLoader tool directory contains the following 3 sub-directories:
bin – contains the FlashLoader binary executable file;
mak – contains the project files for Microsoft Visual C++ v6.0 and .NET 
development environments;
src – contains the C++ source and header files.
Source Code Reference
All source code files referenced in this section are located in the src directory of the 
FlashLoader tool distribution. The source files are fully commented throughout.
Parsing Firmware BIN File
The function LoadBinFile() defined in Util.cpp shows how to parse the firmware BIN 
file, extract the loadable data, and store into a local buffer for sending to the target.
Creating Packets in the Monitor Protocol Format
The functions GetXxxxxPkt() defined in Util.cpp show how to format various packets 
using the monitor interface protocol.