Monitor improved to measure stack depth of any other application.
[goodfet] / firmware / Makefile
1
2 PORT=/dev/ttyUSB0
3 BSL=msp430-bsl --invert-reset --invert-test -c $(PORT) --speed=38400
4
5 #mcu=msp430x1611
6 mcu=msp430x1612
7
8 #ldscript is wonky
9 GCCINC=-T ldscripts/161x.x
10
11 CC=msp430-gcc -Wall -g -mmcu=$(mcu) -DGCC $(GCCINC) -I include
12
13 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
14 libs= lib/msp430f1612.o lib/command.o apps/jtag/jtag430asm.o
15 app=goodfet
16
17 all: $(app).hex
18
19 goodfet.hex: goodfet
20
21 run:
22         ../client/goodfet.msp430 test
23
24 install: $(app).hex
25         $(BSL) -e -p $(app).hex 
26 $(app): $(app).c $(libs) $(apps)
27 $(app).hex: $(app)
28         msp430-objcopy goodfet -O ihex goodfet.hex
29 m4s: $(app).hex
30         msp430-objdump -D -m msp430 $(app).hex | m4s init
31 erase:
32         $(BSL) -e 
33 clean:
34         rm -f $(app) $(app).hex $(libs) $(apps)