2017-01-06 06:01:27 -05:00
|
|
|
REQUIREMENTS = dd echo msp430-objcopy msp430-gcc mspdebug
|
2014-12-25 06:49:08 -05:00
|
|
|
|
2017-01-06 06:01:27 -05:00
|
|
|
include Makefile.common
|
2015-01-10 14:02:51 -05:00
|
|
|
|
2017-01-06 06:01:27 -05:00
|
|
|
build/orig_fw.hex:
|
2014-12-25 06:49:08 -05:00
|
|
|
@echo "Reading Novatouch firmware to $@..."
|
2014-12-28 04:55:22 -05:00
|
|
|
$(QUIET)mspdebug rf2500 "hexout 0x8000 0xffff $@"
|
2014-12-25 06:49:08 -05:00
|
|
|
|
2017-01-06 06:01:27 -05:00
|
|
|
build/orig_fw.bin: build/orig_fw.hex
|
2014-12-28 04:55:22 -05:00
|
|
|
@echo "Converting ihex fw to binary blob..."
|
2015-01-10 14:02:51 -05:00
|
|
|
$(QUIET)mkdir -p build
|
2014-12-28 04:55:22 -05:00
|
|
|
$(QUIET)msp430-objcopy -I ihex -O binary $< $@
|
2014-12-25 06:49:08 -05:00
|
|
|
|
2015-01-10 14:02:31 -05:00
|
|
|
.PHONY: flash
|
2017-01-06 06:01:27 -05:00
|
|
|
flash: build/main.elf
|
2015-01-10 14:02:31 -05:00
|
|
|
$(QUIET)mspdebug rf2500 "prog $<"
|