Binaries for Embedded Artists' LPC4357 Developer's Kit
------------------------------------------------------
The binaries can be downloaded using the lpc_dfusec tool available at

http://www.lpcware.com/content/project/dfu-download-programming-utility-and-security-lpcdfusec-tool


Downloading to internal SRAM
----------------------------
Prerequisites
	1) The program must fit within 32Kb and be loaded from SRAM at 0x10000000
	2) A .bin file must be created. In Keil uVision this is done by adding the following
		user command: 
		
			fromelf --bin -o "$L@L.bin" "$L@L.axf"
			
		See the project files in the sample applications for how it is entered
		
Settings in lpc_dfusec
	Use the "HDR/RAE modes" tab. Point to the binary file and make sure that both
	"Auto-boot mode..." and "Auto append header..." checkboxes are ticked.
	
	
Downloading to internal FLASH - Small program (<512Kb)
------------------------------------------------------
Prerequisites
	1) The program must fit within 512Kb and be loaded from FLASH at 0x1A000000
	2) A header must be added to the binary. In Keil uVision this is done by adding 
		the following user command: 
	
		$K\ARM\BIN\ELFDWT.EXE !L BASEADDRESS(0x1A000000)
		
		See the project files in the sample applications for how it is entered
	3) A .bin file must be created. In Keil uVision this is done by adding the following
		user command: 
		
			fromelf --bin -o "$L@L.bin" "$L@L.axf"
			
		See the project files in the sample applications for how it is entered

Settings in lpc_dfusec
	1) Use the "Program mode" tab. 
	2) Only Step 0 is used
	3) Select the Programming_algorithms\dfusecp_iflash_18xx43xx.bin.hdr file as algorithm
	4) Select the .bin file for the sample app to download
	5) Enter 0x1A000000 as address
	6) Enter 0x00080000 as size
	7) Param is not used so leave it as default
	8) Tick the "Erase region before programming" checkbox
	9) Tick the "Compute/Insert checksum..." checkbox
	
Usage
	Start the board in DFU mode, wait for the "NO_CONN" status in the lower left corner
	to change into "HIGH SPEED USB". Press the Start button to download. The program should
	be flashed and then started automatically.

Downloading to internal FLASH - Large program (>512Kb)
------------------------------------------------------
Prerequisites
	1) The program uses both FLASH regions but must be started from 0x1A000000
	2) A header must be added to the binary. In Keil uVision this is done by adding 
		the following user command: 
	
		$K\ARM\BIN\ELFDWT.EXE !L BASEADDRESS(0x1A000000)
		
		See the project files in the sample applications for how it is entered
	3) A .bin file must be created. In Keil uVision this is done by adding the following
		user command: 
		
			fromelf --bin -o "$L@L.bin" "$L@L.axf"
			
		See the project files in the sample applications for how it is entered
		
		Note: For large program it will not be a single .bin file. Instead it will be a .bin
				folder with ER_IROM1 and ER_IROM2 files in it.

Settings in lpc_dfusec
	1) Use the "Program mode" tab. 
	2) Configure step 0
		a) Select the Programming_algorithms\dfusecp_iflash_18xx43xx.bin.hdr file as algorithm
		b) Select the ER_IROM1 file for the sample app to download
		c) Enter 0x1A000000 as address
		d) Enter 0x00080000 as size
		e) Param is not used so leave it as default
		f) Tick the "Erase region before programming" checkbox
		g) Tick the "Compute/Insert checksum..." checkbox
	3) Click "Add Step" to configure step 1
		a) Select the Programming_algorithms\dfusecp_iflash_18xx43xx.bin.hdr file as algorithm
		b) Select the ER_IROM2 file for the sample app to download
		c) Enter 0x1B000000 as address
		d) Enter 0x00080000 as size
		e) Param is not used so leave it as default
		f) Tick the "Erase region before programming" checkbox
		g) Tick the "Compute/Insert checksum..." checkbox
	
Usage
	Start the board in DFU mode, wait for the "NO_CONN" status in the lower left corner
	to change into "HIGH SPEED USB". Press the Start button to download. The program should
	be flashed and then started automatically.
	
	Note: The SW6 button that is used to enter DFU mode must be kept pressed down until both
			steps have finished executing
