mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-11-06 11:08:42 +00:00
19 lines
317 B
Makefile
19 lines
317 B
Makefile
|
ifndef JTAG
|
||
|
JTAG := $(CONTIKI_CPU)/buildscripts/jtag/pyjtag/jtag.py
|
||
|
endif
|
||
|
|
||
|
ifndef JTAG_PORT
|
||
|
JTAG_PORT = /dev/ppi0
|
||
|
endif
|
||
|
|
||
|
%.u: %.$(TARGET)
|
||
|
$(JTAG) -l $(JTAG_PORT) -e
|
||
|
$(JTAG) -l $(JTAG_PORT) -D -D -S -R 2048 -p $^
|
||
|
$(JTAG) -l $(JTAG_PORT) -D -r
|
||
|
|
||
|
r:
|
||
|
$(JTAG) -l $(JTAG_PORT) -r
|
||
|
|
||
|
erase:
|
||
|
$(JTAG) -l $(JTAG_PORT) -e
|