2006-06-22 16:22:42 +02:00
|
|
|
ifndef JTAG
|
2007-03-23 17:19:41 +01:00
|
|
|
JTAG := $(CONTIKI)/platform/$(TARGET)/buildscripts/jtag/pyjtag/jtag.py
|
2006-06-22 16:22:42 +02:00
|
|
|
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
|