cls
forever:
dialog 7
Read ECU Info
Read INT Flash
Load Flash
Write Flash
Verify
Change VIN
Exit
begin:
option 1 ecuinfo 2 backup 3 load 4 restore 5 verify 6 changevin 7 end
ecuinfo:
run canparameter
goto forever
backup:
detect
wait 2000
if DEBUG == 0
echo Please power off/on the ECU and try again
goto continue
endif 
echo Read Flash
getram flash
goto continue
load:
echo Load Flash
ldram 0
goto continue
restore:
confirmdlg
if CONFIRM == 0
goto continue
endif
if DEBUG == 0 
detect
wait 2000
if DEBUG == 0
echo Please power off/on the ECU and try again
goto continue
endif 
endif 
echo Write Flash
flashchk 0
if FLASHSET == 0
echo flash not defined
goto continue
endif
erase flash
sprogram flash
cmpram flash
if CMPRAM == 0
echo Please power off/on the ECU and try again
endif
goto continue
verify:
cmpram flash
continue:
goto begin
changevin:
run canvin
goto forever
end:
