#----------------------------------------------
# Sample of Flash Download configuration file
#----------------------------------------------

# BinaryFiles - Download binary file full path name, up to 10 files supported 
# Format [BinaryFiles]: <bin file name>,<address in hex>,<Binary File Verify mode>
# Valid parameter:
#  	<bin file name>: Full path Binary file name
#   <address in hex>: Flash Destination Address of binary file 
#        Flash Address to store a binary file. The address range will be varied based on
#        a Flash device and hardware configuration
#   <Binary File Verify mode>: Indicates the method of verify the data.Only valid when 
#        Download Mode is set to NORMAL. Default value is VERIFY_ALL. 
#        Download Mode is set to OVERWRITE. Default value is IGNORE_ALL. 
#        The following modes are supported: 
#	     IGNORE_ALL,            // Do not perform signature, Checksum or CRC verification
#	     CHECKSUM_ONLY,         // Do not perform signature or CRC verification.  Checksum Only.
#	     CRC_ONLY,              // Do not perform signature or Checksum verification.  CRC Only.
#	     IGNORE_SIGNATURE,      // Do not perform signature verification.  Checksum and CRC Only.
#	     VERIFY_ALL             // Perform signature, CRC and Checksum verification
[BinaryFiles]:..\..\bin\ROM11_CODE.BIN, 0x1000000, IGNORE_SIGNATURE
[BinaryFiles]:..\..\bin\ROM21_FONT.BIN, 0x2000000, IGNORE_SIGNATURE
[BinaryFiles]:..\..\bin\ROM22_FFS.BIN, 0x2610000, IGNORE_SIGNATURE

#>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<
# cal data(RF,BATT) ﶧ ϴ BinaryԴϴ!
# ϽǶ  Ͻð Ͻñ ٶϴ.

#[BinaryFiles]:..\..\bin\ROM2_CAL.BIN, 0x2600000, IGNORE_SIGNATURE

#----------------------------------------------
# Ram CS - Ram Chip Select depend on hardware configuration
# Format:
# [Ram CS]: <CS>, <S37 Record File>, <Location>, <Network Path>
# Valid parameters:
#    <CS>: Valid Ram Chip select - supports Ram at chip select 0, 1, 3, 5, 7, 9 
#    <S37 Record File>: The S37 Record file of the second stage loader
#         RamCS0.s37 - Ram at Chip Select 0
#         RamCS1.s37 - Ram at Chip Select 1
#         RamCS3.s37 - Ram at Chip Select 3
#         RamCS5.s37 - Ram at Chip Select 5
#         RamCS7_805.s37 - Ram at Chip Select 7, Cx805 
#         RamCS7_815.s37 - Ram at Chip Select 7, Cx815 
#         RamCS9.s37 - Ram at Chip Select 9
#    <Location>: Location of S37 record file
#         NETWORK, <PATH> - load S37 record file from network path in the PATH, then P:\tools, C:\tools, or current directory  
#         LOCAL -  load S37 record file from current directory

[Ram CS]: 7, RamCS7_805.s37, LOCAL

#----------------------------------------------

# Flash Chip Selects, valid numbers -  0 to 9 depend on hardware configuration
# Format 
# [Flash CSs]:  <Flash Family>, <CS1>, <CS2>, ..., <CSn>.  
# Valid parameters:
#    <CSn>:  Valid Chip Seclect is from 0 to 9
#    <Flash Family> : Family of Flash Device Driver, Currently supports
#       AMD_FAMILY -  AMD family
#       INTEL_FAMILY  - INTEL family
#       AUTO_DETECT - Auto detect the Flash family

[Flash CSs]: AUTO_DETECT, 5, 6

#----------------------------------------------

# Download Mode - download support the following modes:
#   VERIFY_CRC - Verify the integrity of the code in the flash without downloading the binary
#   DISPLAY_CRC - Find the checksum and CRC of the image downloaded, ignoring the binary file
#   NORMAL - Download binary file to the specified Flash Address
#   UPLOAD - Upload flash data to a binary file. Provide upload info in the Upload Info Section.
#   OVERWRITE - Overwrite portion of the Flash content with the binary file,
#		start at Flash location specified by the address parameter in the[BinaryFiles] 		field.
#[Download Mode]: NORMAL
[Download Mode]: NORMAL

#----------------------------------------------

# Terminate Mode - When download complete, a phone can go to the following mode:
# RESET - after download complete, phone goes to download loop back mode.
# VECTOR_NORMAL_BOOT - after download complete, phone goes to normal mode. (Not currently Supported)
# TERMINATED - after download complete, phone was turned off. 
# RESET_NO_LOOP_BACK - after download complete, phone goes to download with No loop back mode.

[Terminate Mode]: TERMINATED 

#----------------------------------------------

# Upload Info - Upload flash data to a binary file. Maximum of 10 files supported for upload
# Format - [Upload Info]: <start address>, <end address>, <bin file name>, <dump mode>
#    <start address>: An address in Hex that specify the starting address of memory dump
#    <end address>:   An address in Hex that specify the end address. The address range will vary
#                     based on a Flash device and hardware configuration
#    <bin file name>: Full path of the binary file name on which the data will be uploaded
#    <dump mode>    :	M - Memory dump    (upload data from start address to end address)
#						F - Full file dump from start address (end address is calculated from the file size)
#							File size is read from flash (insrtcrc must have been used for this option to work)
# Usage:  [Upload Info]: 0x1000000, 0x1009000, C:\gsmuc\gsmuc\flash1.bin, f
#	  [Upload Info]: 0x1000000, 0x1009000, C:\gsmuc\gsmuc\flash2.bin, f
#		....
#	  [Upload Info]: 0x1000000, 0x1014000, C:\gsmuc\gsmuc\flash5.bin, m

[Upload Info]: 0x1000000, 0x1009000, C:\gsmuc\gsmuc\Upload\Integration\Test\flash1.bin, f

#----------------------------------------------

# Comm Mode - two communication mode, wire mode and infrared mode are supported in flash download.
#   WIRED_MODE - Wired Mode
#   IR_D_MODE - Infrared Mode on Dongle 
#   IR_P_MODE - Infrared Mode on laptop

[Comm Mode]: WIRED_MODE

#----------------------------------------------

# COM Port - COM port used for downloading a file
#   Valid comports - 1, 2, 3, ...

[COM Port]: 4

#----------------------------------------------

# Baud Rate - Data transfer baud rate 
#   Valid baud rates - 115200, 230400, 460800 

[Baud Rate]: 460800

#----------------------------------------------

# Processor type - The Chip set used in the phone
# Valid parameters:
#   P805 - Cx805
#   P815 - Cx815
#   P815C - Cx815C in Cx805 compatibility mode
#   M46 -  Not Currently Supported

[Processor type]:P805

#----------------------------------------------

# FlashProgramEnable option can be enable or disable, and the GPIO active sequences (PBS) for enabling. 
# GPIO sequences <Port Bit State> (PBS)
# Where P - GPIO port- portA-A, portB-B, portC-C, portD-D, portE-E 
#       B - GPIO Bit -  0-7
#       S - GPIO state: 0-Low, 1-high
# Format <DISABLE/ENABLE>, <PBS>, <PBS>, ...

[FlashProgramEnable]: DISABLE, C71

#----------------------------------------------

# Download LED option can be Enable or Disable, following by the GPIO sequences for LED display if Enable. 
# Otherwise the GPIO sequences <Port Bit State> (PBS) will be ignored
# GPIO sequences <Port Bit State> (PBS)
# Where P - GPIO port- portA-A, portB-B, portC-C, portD-D, portE-E 
#       B - GPIO Bit -  0-7
#       S - GPIO state: 0-Low, 1-high
# Format <DISABLE/ENABLE>, <PBS>, <PBS>, ...

[DownLoad LED]: DISABLE, A30, A51, A60

#----------------------------------------------

# Success LED option can be Enable or Disable, following by the GPIO sequences for LED display if Enable. 
# Otherwise the GPIO sequences <Port Bit State> (PBS) will be ignored
# GPIO sequences <Port Bit State> (PBS)
# Where P - GPIO port- portA-A, portB-B, portC-C, portD-D, portE-E 
#       B - GPIO Bit -  0-7
#       S - GPIO state: 0-Low, 1-high
# Format <DISABLE/ENABLE>, <PBS>, <PBS>, ...

[Success LED]: DISABLE, A31, A50, A60

#----------------------------------------------

# Fail LED option can be Enable or Disable, following by the GPIO sequences for LED display if Enable. 
# Otherwise the GPIO sequences <Port Bit State> (PBS) will be ignored
# GPIO sequences <Port Bit State> (PBS)
# Where P - GPIO port- portA-A, portB-B, portC-C, portD-D, portE-E 
#       B - GPIO Bit -  0-7
#       S - GPIO state: 0-Low, 1-high
# Format <DISABLE/ENABLE>, <PBS>, <PBS>, ...

[Fail LED]: DISABLE, A30, A50, A60

#----------------------------------------------

# Use Customer Device- Allow Customer use their own Flash
# Valid parameter:
#   <ENABLE/DISABLE> 
#   ENABLE - use the Flash device specified by Customer
#   DISABLE - Auto detect the Flash device supported by Download Software>

[Customer Flash Select]: DISABLE

#----------------------------------------------

# Customer Flash sector map - sectors mappings on a per bank basis
# This field is valid only if {Use Customer Device] is enable 
# Format:
# [Customer Flash Sector Map]: <DeviceID>, (<SectoLen0>,<SectorSize0>), (<SectorLen1>,<SectorSize1>),..., (<SectorLenn>,<SectorSizen>)
# [Customer Flash Sector Map]: <DeviceID>, (<SectorLen0>,<SectoSize0>), (<SectorLen1>,<SectorSize1>),..., (<SectorLenn>,<SectorSizen>)
#   ...
#                              <DeviceID>, (<SectorLen0>,<SectoSize0>), (<SectorLen1>,<SectorSize1>),..., (<SectorLenn>,<SectorSizen>)
# Valid parameter:
#   Support maximum of 10 banks of Flash
#   <DeviceID>: The four-digit Hex number identify the device Id of a Flash device
#               <Manufacturer code><Device code>
#               example: Sharp 1386 device: 0xB0B0 - Manufacturer code is B0, device code is B0
#               example: Sharp 1387 device: 0xB0B1 - Manufacturer code is B0, device code is B1
#   <(<SectoLen N>),<SectorSize N>>: sector mapping pair. Support maximum of 4 sector mapping pairs
#        <SectorLen N>: Number of contiguous sectors of this size  
#        <SectorSize N>: Sector size in Kb
 
[Customer Flash Sector Map]: 0x017e, (8,8), (127,64) 
#[Customer Flash Sector Map]: 0x8957, (8,8), (127,64) 
#[Customer Flash Sector Map]: 0x8956, (127,64), (8,8)

#----------------------------------------------

#	Sample bat file to specify the configuration file to use
#
# download /u:cfg805CS7.txt
# pause
#	
