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