From c65a8c46165f8c2ebadd42d94de39db6b932f9a6 Mon Sep 17 00:00:00 2001 From: Pat Hickey Date: Sun, 13 Nov 2011 14:26:52 +1100 Subject: [PATCH] build: added jtag-program make target useful for when you have hosed your USB --- libraries/AP_Common/Arduino.mk | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libraries/AP_Common/Arduino.mk b/libraries/AP_Common/Arduino.mk index f245c32c6c..21f7df5451 100644 --- a/libraries/AP_Common/Arduino.mk +++ b/libraries/AP_Common/Arduino.mk @@ -437,6 +437,11 @@ debug: gnome-terminal -x $(GDB) $(SKETCHELF) & \ echo -e '\n\nat the gdb prompt type "target remote localhost:4242"' +# this allows you to flash your image via JTAG for when you +# have completely broken your USB +jtag-program: + $(AVARICE) --mkII --jtag usb --erase --program --file $(SKETCHELF) + clean: ifneq ($(findstring CYGWIN, $(SYSTYPE)),) @del /S $(BUILDROOT)