added upload options to the Makefile

This commit is contained in:
Lucas Pleß 2018-01-11 16:07:39 +01:00
parent 8825f0d0a0
commit c07f995cae

View file

@ -225,5 +225,13 @@ ULIBS =
# End of user defines # 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 RULESPATH = $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC
include $(RULESPATH)/rules.mk include $(RULESPATH)/rules.mk