Make install now doesn't erase the chip, make reinstall does.
[goodfet] / firmware / Makefile
index c77467e..2d87705 100644 (file)
@@ -37,11 +37,11 @@ CC =$(GCC) -Wall -O1 -fno-strict-aliasing -g   $(CCEXTRA)
 # ALPHA:
 # jtag430 -- 16-bit MSP430 JTAG
 # jtag430x2 -- 20-bit MSP430 JTAG
+# jtagarm7 -- ARM7TDMI JTAG
 
 # PRE-ALPHA:
 #  Bus protocols:
 # i2c -- Turns GF into USB-to-i2c adapter
-# jtagarm7 -- ARM7TDMI JTAG
 # ejtag -- MIPS JTAG
 # jtagxscale -- XScale JTAG
 # openocd -- OpenOCD bitbang device
@@ -327,6 +327,10 @@ erase:
        $(JTAG) -e $(app).hex
 else
 install: $(app).hex
+       #Note that 'make install' no longer erases the chip.
+       #Use 'make reinstall' if you want that.
+       $(MSP430BSL) -p $(app).hex
+reinstall: $(app).hex
        $(MSP430BSL) -e -p $(app).hex
 installinfo:
        $(MSP430BSL) -P $(app).hex -p info.txt || true  #MSP430F2xx targets only, inelegant.