From c07f995cae8ad5281fd8e673f22b39367e5af21a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucas=20Ple=C3=9F?= Date: Thu, 11 Jan 2018 16:07:39 +0100 Subject: [PATCH] added upload options to the Makefile --- eigener_ctrl/stm32f407-olimex/Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/eigener_ctrl/stm32f407-olimex/Makefile b/eigener_ctrl/stm32f407-olimex/Makefile index d4dedf5..f4555a8 100755 --- a/eigener_ctrl/stm32f407-olimex/Makefile +++ b/eigener_ctrl/stm32f407-olimex/Makefile @@ -225,5 +225,13 @@ ULIBS = # End of user defines ############################################################################## +upload-jlink: build/$(PROJECT).bin + openocd -f interface/jlink.cfg -f target/stm32f4x.cfg -c "program build/$(PROJECT).elf verify reset exit" + +upload-olimex: build/$(PROJECT).bin + openocd -f interface/ftdi/olimex-arm-usb-tiny-h.cfg -f target/stm32f4x.cfg -c "program build/$(PROJECT).elf verify reset exit" + + + RULESPATH = $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC include $(RULESPATH)/rules.mk