Writing of SPI Flash is more reliable.
[goodfet] / firmware / Makefile
index 2d831e4..b17708b 100644 (file)
@@ -8,10 +8,10 @@ mcu=msp430x1612
 #ldscript is wonky
 GCCINC=-T ldscripts/161x.x
 
 #ldscript is wonky
 GCCINC=-T ldscripts/161x.x
 
-CC=msp430-gcc -g -mmcu=$(mcu) -DGCC $(GCCINC) -I include
+CC=msp430-gcc -Wall -g -mmcu=$(mcu) -DGCC $(GCCINC) -I include
 
 
-apps= apps/monitor/monitor.c apps/spi/spi.c apps/i2c/i2c.c apps/chipcon/chipcon.c apps/jtag/jtag.c apps/jtag/jtag430.c
-libs= lib/msp430f1612.c lib/command.c
+apps= apps/monitor/monitor.o apps/spi/spi.o apps/i2c/i2c.o apps/chipcon/chipcon.o apps/jtag/jtag.o apps/jtag/jtag430.o
+libs= lib/msp430f1612.o lib/command.o apps/jtag/jtag430asm.o
 app=goodfet
 
 all: $(app).hex
 app=goodfet
 
 all: $(app).hex
@@ -23,7 +23,7 @@ run:
 
 install: $(app).hex
        $(BSL) -e -p $(app).hex 
 
 install: $(app).hex
        $(BSL) -e -p $(app).hex 
-       $(BSL) -P $(app).hex -r
+       #$(BSL) -P $(app).hex -r
 $(app): $(app).c $(libs) $(apps)
 $(app).hex: $(app)
        msp430-objcopy goodfet -O ihex goodfet.hex
 $(app): $(app).c $(libs) $(apps)
 $(app).hex: $(app)
        msp430-objcopy goodfet -O ihex goodfet.hex
@@ -32,4 +32,4 @@ m4s: $(app).hex
 erase:
        $(BSL) -e 
 clean:
 erase:
        $(BSL) -e 
 clean:
-       rm -f $(app)
+       rm -f $(app) $(app).hex $(libs) $(apps)