/***************************************************************************
 *                                                                         *
 *                   SiRF Technology, Inc. GPS Software                    *
 *                                                                         *
 *    Copyright (c) 1996-2014 by SiRF Technology, Inc. a CSR plc Company   *
 *                          All rights reserved.                           *
 *                                                                         *
 *    This Software is protected by United States copyright laws and       *
 *    international treaties.  You may not reverse engineer, decompile     *
 *    or disassemble this Software.                                        *
 *                                                                         *
 *    WARNING:                                                             *
 *    This Software contains SiRF Technology Inc.s confidential and        *
 *    proprietary information. UNAUTHORIZED COPYING, USE, DISTRIBUTION,    *
 *    PUBLICATION, TRANSFER, SALE, RENTAL OR DISCLOSURE IS PROHIBITED      *
 *    AND MAY RESULT IN SERIOUS LEGAL CONSEQUENCES.  Do not copy this      *
 *    Software without SiRF Technology, Inc.s  express written             *
 *    permission.   Use of any portion of the contents of this Software    *
 *    is subject to and restricted by your signed written agreement with   *
 *    SiRF Technology, Inc.                                                *
 *                                                                         *
 ***************************************************************************/

Overview
========
The prgflash_uart.exe is a demonstration CSR SiRFFlashEngineEP program for
Windows Embedded Compact 7 (formerly known as Windows Embedded CE 7.0)
OS Host. It is a command prompt program and it was built for CSR 
SiRFPrima II (ARMV4) hardware platform. This CSR SiRFflashEngineEP program
is a programming flash memories tool for CSR SiRFStarV Technology families chips. 
Programming is done via standard UART based serial line.


Execution
=========
1. Connect the UART serial cable to the SiRFStarV EVK target, change the EVK interface switch to
   UART position and power-up the EVK. It is recommended that the Mode switch (if available)
   is set to FLASH position (instead of RUN). For some EVK, this switch is not available. 
   In this case the [-x LIVE_BAUDRATE] option must be used.
   Reset the EVK and toggle its POWER button.
2. Copy the program prgflash_uart.exe to a directory in CSR SiRFPrima II target
   and run it in command prompt. The syntax for prgflash_uart.exe is:

   prgflash_uart <BINARY IMAGE FILE> <COMn> <BAUDRATE> [-e] [-x LIVE_BAUDRATE]
   The [-e] is the option setting for erasing the whole flash before programming.
   Without the -e option, only the necessary sectors are erase before programming.
   The [-x LIVE_BAUDRATE] is the option setting to switch from Live to BOOT mode prior to programming
   and the LIVE_BAUDRATE is the baudrate the target receiver is running in LIVE mode.
   Without the -x option, the target is assumed to be in BOOT mode (this is the preferred method).

