///////////////////////////////////////////////////////////////////////////////////
//-------------------------------------------------------------------------------//
//-------------------------------------------------------------------------------//
//-----------H----H--X----X-----CCCCC----22222----0000-----0000------11----------//
//----------H----H----X-X-----C--------------2---0----0---0----0--1--1-----------//
//---------HHHHHH-----X------C----------22222---0----0---0----0-----1------------//
//--------H----H----X--X----C----------2-------0----0---0----0-----1-------------//
//-------H----H---X-----X---CCCCC-----222222----0000-----0000----1111------------//
//-------------------------------------------------------------------------------//
//----------------------------------------------------- http://www.hxc2001.com --//
///////////////////////////////////////////////////////////////////////////////////

SDCard HxC Floppy Emulator Update procedure :

	For users with the firmware V1.2.0.0 or above jump to the step 2) directly (No Bootloader update required) 



1)	Bootloader update  (for users with a firmware below the version 1.2.0.0)

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!		
!!!    Warning : DO NOT CUT the power supply of the board during the bootloader programming !     !!!
!!!    In case of power loss, the device may be unusable and need a factory reprogramming.        !!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

	-> Copy the new bootloader file (HxC_SD_Bootloader_V1_0TOV1_1.upd) to a freshly formated FAT32 SDCard.
	-> Insert the SDCard into the emulator
	-> Press Left and Right buttons before power up and keep it pressed at least 1 seconds at power up.
	-> Wait some seconds. When 2 leds are blinking (Sdcard access led and Floppy Access led) it's done !
	   (to be sure wait 1 minutes before removing the power supply). 

		After this the firmware must be flashed. (Please go to the step 2: Firmware update)



2)	Firmware update

	-> Copy the new firmware file (*.upd) to a freshly formated FAT32 SDCard.
	-> Insert the SDCard into the emulator
	-> Press Left and Right buttons before power up and keep it pressed at least 1 seconds at power up.
	-> Wait some seconds .... its done !



Note 1: 
	The file must be unfragmented on the sdcard and must be in the first part of the root directory. 
        For these reasons it is recommended to use a freshly formatted FAT32 SDCard, otherwise you may get the error 4 or 6 (see note 2).

Note 2:
Bootstrap LED error messages:
	Error 1 : (blink 1 time and 2 seconds pause cycle)  No entry point (->no software flashed)
	Error 2 : (blink 2 time and 2 seconds pause cycle)  SDCard init error.
	Error 3 : (blink 3 time and 2 seconds pause cycle)  FAT error.
	Error 4 : (blink 4 time and 2 seconds pause cycle)  UPD File not found!
	Error 5 : (blink 5 time and 2 seconds pause cycle)  Bad UPD File header! (bad file)
	Error 6 : (blink 6 time and 2 seconds pause cycle)  Bad data crc! (file corrupt)
	Error 7 : (blink 7 time and 2 seconds pause cycle)  Bad data size!
	Error 8 : (blink 8 time and 2 seconds pause cycle)  Write error (Pic flash error)
	

Jeff / HxC2001
