projects
/
goodfet
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Trying to get 2618 going.
[goodfet]
/
firmware
/
Makefile
diff --git
a/firmware/Makefile
b/firmware/Makefile
index
1d6134e
..
5bc3555
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
@@
-23,6
+25,8
@@
run:
install: $(app).hex
$(BSL) -e -p $(app).hex
install: $(app).hex
$(BSL) -e -p $(app).hex
+verify:
+ $(BSL) -P $(app).hex -v $(app).hex
$(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