5 call %~dp0Select.bat SelectDevice %target%
6 IF EXIST %~dp0..\binaries\%~n1.txt (
7 call %~dp0..\prog\MSP430Flasher -s -m SBW2 -u -n %device% -v -w %~dp0..\binaries\%~n1.txt -z [RESET,VCC]
9 :: hex files generate error 60: verify error
10 IF EXIST %~dp0..\binaries\%~n1.hex (
11 call %~dp0..\prog\MSP430Flasher -s -m SBW2 -u -n %device% -v -w %~dp0..\binaries\%~n1.hex -z [RESET,VCC]
17 :: %~dp0 is the path of this file.bat
18 :: %n1 = filename of file to flash
20 :: -m : select SBW2 mode
21 :: -u : Unlocks locked flash memory (INFOA) for writing.
22 :: -n %device% : device set from %n1
24 :: -w %~dpn1.txt : file to be flashed
25 :: -z [] : end of flasher behaviour