OSDN Git Service

V201, added MSP-EXP430FR2433
[fast-forth/master.git] / MSP430read.bat
index 3b3a64c..1f9bd65 100644 (file)
@@ -3,9 +3,11 @@
 
 set howtoread=%1
 set readfile=%2
-if c%1==c set howtoread=MAIN
-if c%2==c set readfile=DUMP
+if "%1" == "" set howtoread=MAIN
+if "%2" == "" set readfile=DUMP
 
-A:\prog\MSP430Flasher\msp430flasher -m SBW2 -r [%readfile%_%howtoread%.hex,%howtoread%] -z [VCC=3000]
-A:\prog\srecord\srec_cat %readfile%_%howtoread%.HEX -intel -output %readfile%_%howtoread%.bin -Binary
-A:\prog\HxD\HxD.exe" %readfile%_%howtoread%.bin
\ No newline at end of file
+A:\prog\MSP430Flasher\msp430flasher -m SBW2 -r [%readfile%_%howtoread%.txt,%howtoread%] -z [VCC=3000]
+::A:\prog\srecord\srec_cat %readfile%_%howtoread%.HEX -intel -output %readfile%_%howtoread%.bin -Binary
+::A:\prog\HxD\HxD.exe" %readfile%_%howtoread%.bin
+
+pause