dialog 5
Read Flash
Load Flash
Write Flash
Verify
Exit
begin:
option 1 backup 2 load 3 restore 4 verify 5 end
backup:
reset 1
wait 800
if DEBUG == 0
echo The ECU might be bricked.
goto continue
endif 
echo Read Flash
getram 0 200000
goto continue
load:
echo Load Flash
ldram 0
goto continue
restore:
confirmdlg
if CONFIRM == 0
goto continue
endif
reset 1
wait 800
if DEBUG == 0 
echo The ECU might be bricked.
goto continue
endif 
echo Write Flash
flashchk 0
if FLASHSET == 0
echo flash not defined
goto continue
endif
checkmdw 0
if MEMORY == FFFFFFFF
echo Your Flash does not seems to be right. This might brick the ECU
goto continue
endif
erase 0 200000
sprogram 0 200000
cmpram 0 200000
if CMPRAM == 0
echo Please power off/on the ECU and try again
endif
goto continue
verify:
cmpram 0 200000
continue:
goto begin
end:
