cls
dialog 5
Connect (Enter to DEBUG ON)
Load Flash
Backup Flash
Program 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 Flash
ldram flash
goto continue
bkupdata:
if DEBUG == 0
echo Hit connect to go to DEBUG ON
goto continue
endif
echo Backup Flash
getram flash
echo Shadow
getram shadow
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 Flash
erase flash
sprogram flash
cmpram flash
continue:
goto begin
end:
