aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authortnaegeli <naegelit@student.ethz.ch>2012-09-24 18:23:00 +0200
committertnaegeli <naegelit@student.ethz.ch>2012-09-24 18:23:00 +0200
commitc9f27cbdc95a197d7d276ab55f6c167f31a002b0 (patch)
treee1dd3799e1bf2f65d00b6ed12d39ef98980fdb90 /Makefile
parent705172d302b99df7ec3c4172c247c6136adbec88 (diff)
downloadpx4-firmware-c9f27cbdc95a197d7d276ab55f6c167f31a002b0.tar.gz
px4-firmware-c9f27cbdc95a197d7d276ab55f6c167f31a002b0.tar.bz2
px4-firmware-c9f27cbdc95a197d7d276ab55f6c167f31a002b0.zip
f
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 43a4333cf..e38a3d619 100644
--- a/Makefile
+++ b/Makefile
@@ -114,6 +114,10 @@ endif
upload: $(FIRMWARE_BUNDLE) $(UPLOADER)
@python -u $(UPLOADER) --port $(SERIAL_PORTS) $(FIRMWARE_BUNDLE)
+
+upload-jtag-px4fmu:
+ @echo Attempting to flash PX4FMU board via JTAG
+ @openocd -f interface/olimex-jtag-tiny.cfg -f Tools/stm32f4x.cfg -c init -c "reset halt" -c "flash write_image erase nuttx/nuttx" -c "flash write_image erase ../Bootloader/px4fmu_bl.elf" -c "reset run" -c shutdown
#
# Hacks and fixups
@@ -129,7 +133,7 @@ endif
# a complete re-compilation, 'distclean' should remove everything
# that's generated leaving only files that are in source control.
#
-.PHONY: clean
+.PHONY: clean upload-jtag-px4fmu
clean:
@make -C $(NUTTX_SRC) -r $(MQUIET) distclean
@make -C $(ROMFS_SRC) -r $(MQUIET) clean