projects
/
goodfet
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
msp430_init_dco on 2xx devices now knows defaults for MSP430F2618 chips with missing...
[goodfet]
/
firmware
/
Makefile
diff --git
a/firmware/Makefile
b/firmware/Makefile
index
b17708b
..
75ada15
100644
(file)
--- a/
firmware/Makefile
+++ b/
firmware/Makefile
@@
-1,17
+1,19
@@
PORT=/dev/ttyUSB0
PORT=/dev/ttyUSB0
-BSL=
msp430
-bsl --invert-reset --invert-test -c $(PORT) --speed=38400
+BSL=
../../contrib/tos
-bsl --invert-reset --invert-test -c $(PORT) --speed=38400
-#mcu=msp430x
1611
+#mcu=msp430x
2618
mcu=msp430x1612
mcu=msp430x1612
-#ldscript is wonky
-GCCINC=-T ldscripts/161x.x
+
+#N.B., gcc WILL NOT BITCH if this file doesn't exist.
+#GCCINC=-T ldscripts/161x.x
+GCCINC=-T ldscripts/$(mcu).x
CC=msp430-gcc -Wall -g -mmcu=$(mcu) -DGCC $(GCCINC) -I include
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
CC=msp430-gcc -Wall -g -mmcu=$(mcu) -DGCC $(GCCINC) -I include
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
+libs= lib/
$(mcu)
.o lib/command.o apps/jtag/jtag430asm.o
app=goodfet
all: $(app).hex
app=goodfet
all: $(app).hex
@@
-22,8
+24,13
@@
run:
../client/goodfet.msp430 test
install: $(app).hex
../client/goodfet.msp430 test
install: $(app).hex
- $(BSL) -e -p $(app).hex
- #$(BSL) -P $(app).hex -r
+ $(BSL) -e
+ #$(BSL) -p info.txt || true #MSP430F2xx targets only, inelegant.
+ $(BSL) -p $(app).hex
+verify:
+ $(BSL) -P $(app).hex -v $(app).hex
+dumpinfo:
+ $(BSL) --dumpinfo -c /dev/ttyUSB0
$(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