Use of BUILDxxMBIT.BAT

BUILD16MBIT.BAT is used for flash devices of size 16 Mbit
BUILD32MBIT.BAT is used for flash devices of size 32 Mbit
BUILD64MBIT.BAT is used for flash devices of size 32 Mbit

The batch file automatically takes a file called 'progsm.hex' and converts it into
two separate files: 'progsm.fls' and 'progsm.eep' which are valid formats for the fastload tool

16 Mbit
=======
The batch job assumes that flash starts at 0x200000 and default EEPROM block starts at 0x3F6000.
Max length of flash code part is set to either 0x1CFFFE or 0x1EFFFE - see below.
 (checksum occupies 1 word at the end of the code part)
The address space from 0x3D0000 to 0x3FFFFF is reserved for EEPROM in case of 64Kbyte size EEPROM
The address space from 0x3F0000 to 0x3FFFFF is reserved for EEPROM in case of 16Kbyte size EEPROM

32 Mbit
=======
The batch job assumes that flash starts at 0x400000 and default EEPROM block starts at 0x7F6000.
Max length of flash code part is set to either 0x3CFFFE or 0x3EFFFE - see below.
(checksum occupies 1 word at the end of the code part)
The address space from 0x7D0000 to 0x7FFFFF is reserved for EEPROM in case of 64Kbyte size EEPROM
The address space from 0x7F0000 to 0x7FFFFF is reserved for EEPROM in case of 16Kbyte size EEPROM

64 Mbit
=======
The batch job assumes that flash starts at 0x800000 and default EEPROM block starts at 0xFF6000.
Max length of flash code part is set to either 0x7CFFFE or 0x7EFFFE - see below.
(checksum occupies 1 word at the end of the code part)
The address space from 0xFD0000 to 0xFFFFFF is reserved for EEPROM in case of 64Kbyte size EEPROM
The address space from 0xFF0000 to 0xFFFFFF is reserved for EEPROM in case of 16Kbyte size EEPROM

If another filename is to be used, please change it in the build_fls_eep.bat file.

---------------------------------------------------------------------------------------------------------
Use of fastload.cfg

To read the setup of download from a file - the executable must be called as follows

fastload.exe AUTO fastload.cfg

By doing this, the start-up window is discarded and the download starts immediately.

The *.cfg contains the following parameters:

-cCOM1                            // Serial port to use as main port - COM1, COM2, COM3, COM4, COM5, COM6
-n5                               // Number of phones - 1, 2, 3, 4, 5, 6
-aflash                           // flash (only flash code) or flasheeprom (flash code and static eep)
-tfalse                           // Exit on error - true or false
-s115200                          // Serial speed - 38400, 57600, 115200, 230400, 460800
-ed:\sw\tools\fastload\msams.eep  // Path and name of *.eep
-pd:\sw\tools\fastload\msams.fls  // Path and name of *.fls
-dd:\sw\tools\fastload\debug.dbg  // Path and name of debug file
-lupleft                          // Location on screen of download window - upleft, downleft, upright, downright, upmiddle
-vvisible                         // Determines visibility of download window - visible, invisible
-mtest                            // Start up in test mode or normal mode - test, normal


---------------------------------------------------------------------------------------------------------
CHANGES
=======

VER 35
------
- In multimode setup, the phones are no longer applied Vbat initially anymore. This is due to the fact that
  sometimes we encounter that the mobiles start executing code from the flash on Vbat alone (No Vin applied yet).

  Therefore Vbat is now applied 20ms prior to Vin. HW modification as necessary on multi download interface board.

- Error corrected in target code. When downloading both EEPROM and Flash code there was a problem running on 
  115200bps. The problem was that the target did not change the baud rate back to 115200bps after transmission
  on 57600bps, causing the EEPROM programming to either time out or fail.

VER 36
------
- A number of different flash devices are added to the tool.

VER 37
------
- The standard COM port from APRO sync has been replaced by TApdComPort, manufactures by AB, DWD.
  This requires that apdcomport.dll is located together with fastload.exe.

- A new device is added - Samsung K8D3216UT

VER 37.1
--------
- A new device is added - Intel 28F640W30T

VER 37.3
--------
- New fields added in the user interface showing the expected and calculated checksum values
  for both Flash programming and EEPROM programming.
- Also added when running in AUTO mode. Values written in debug.dbg file.

VER 37.4
--------
- Warning pop-up message when EEPROM programming is chosen. This is included on request by HGS
  in order to avoid that calibration parameters are overwritten by accident.

VER 37.5
--------
- Error fixed where baud rate on PC is changed before all characters are physically sent to UART.   This meant that some characters were sent at a wrong baud rate

VER 37.6
--------
- Now it is possible to use code space between 0xXF4000 and 0xXF9FFF for flash programming as well.
  Hextofls tool already supports this functionality

VER 37.7
--------
- Capable of handling both EGOLD+ V2 and V3

VER 37.8
--------
- Program does not terminate execution in case of an error anymore
