Fixed synching bug which was introduced by dropping the custom linker scripts.
[goodfet] / firmware / tests / blink / Makefile
index 85a9828..71a5c9b 100644 (file)
@@ -1,26 +1,25 @@
 
 PORT=/dev/ttyUSB0
-BSL=tos-bsl --invert-reset --invert-test -c $(PORT)
+BSL=goodfet.bsl
+
+#Default to 2001 with least resources.
 
 #mcu=msp430x1611
-mcu=msp430x1612
+#mcu=msp430x2618
+mcu?=msp430x2001
 
-GCCINC=-T ../../ldscripts/161x.x
+#GCCINC=-T ../../ldscripts/161x.x
 CC=msp430-gcc -g -mmcu=$(mcu) -DGCC $(GCCINC) -I ../../include
 
-
-
-
 app=blink
 
 all: $(app).hex
 $(app).hex: $(app)
        msp430-objcopy $(app) -O ihex $(app).hex
-install: $(app)
-       $(BSL) -e -p $(app) 
-       #$(BSL) -P $(app) -g 0x2500
-       $(BSL) -P $(app) -r
+install: $(app).hex
+       $(BSL) -e -p $(app).hex 
+       $(BSL) -P $(app).hex -r
 erase:
        $(BSL) -e 
 clean:
-       rm $(app)
+       rm -f $(app) $(app).hex