cls
dialog 5
Connect (Enter to DEBUG ON)
Load Flash
Backup All Flash
Program All Flash
Exit
begin:
option 1 connect 2 loadflash 3 bkupdata 4 programdata 5 end
connect:
if DEBUG == 1
echo Already in DEBUG ON. Power cycle if needed.
goto continue
endif
detect
wait 2000
if DEBUG == 0
echo Check your connection and power
endif
goto continue
loadflash:
echo Load CFlash
ldram cflash
echo Load DFlash
ldram dflash
goto continue
bkupdata:
if DEBUG == 0
echo Hit connect to go to DEBUG ON
goto continue
endif
echo Backup Data Flash
getram dflash
echo Backup Code Flash
getram cflash
goto continue
programdata:
if DEBUG == 0
echo Hit connect to go to DEBUG ON
goto continue
endif
confirmdlg
if CONFIRM == 0
goto continue
endif
echo Program Data Flash
erase dflash
sprogram dflash
cmpram dflash
echo Program Code Flash
erase cflash
sprogram cflash
cmpram cflash
continue:
goto begin
end:
