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 1200
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
flashchk 0
if FLASHSET == 0
echo flash not defined. Connect first
goto continue
endif
echo For some reason E39 and E39A works more reliable when in DEBUG OFF mode. Nexus works fine.
reset
wait 750
if DEBUG == 1
echo chec if reset pin is connected properly
goto continue
endif
init
echo Program Flash
erase flash
sprogram flash
cmpram flash
detect
wait 200
detect
goto continue
continue:
goto begin
end:
