mirror of
https://github.com/travisgoodspeed/goodwatch
synced 2024-11-21 23:58:31 +00:00
Makefile uses new BSL script.
This commit is contained in:
parent
5a1bb98bbe
commit
2e62dda031
@ -2,6 +2,9 @@
|
||||
#Standard Debian gcc-msp430 and msp430mcu packages.
|
||||
CC = msp430-gcc -mmcu=cc430f6137
|
||||
|
||||
BSL = ../bin/cc430-bsl.py
|
||||
|
||||
|
||||
modules=main.o lcd.o
|
||||
|
||||
all: goodwatch.hex
|
||||
@ -9,11 +12,12 @@ all: goodwatch.hex
|
||||
goodwatch: $(modules)
|
||||
$(CC) -o goodwatch $(modules)
|
||||
goodwatch.hex: goodwatch
|
||||
msp430-objcopy -O ihex main main.hex
|
||||
msp430-objcopy -O ihex goodwatch goodwatch.hex
|
||||
|
||||
clean:
|
||||
rm -f *~ *.hex *.elf *.o goodwatch
|
||||
|
||||
erase:
|
||||
python -m msp430.bsl5.uart -p /dev/ttyUSB0 --invert-test --invert-reset -v -e
|
||||
$(BSL) -e
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user