From 06b00b747f2a073ab48bcd9a5424c9024c4ab841 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucas=20Ple=C3=9F?= Date: Tue, 6 Oct 2015 12:50:48 +0200 Subject: [PATCH] added olimex programming option --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index fbd3b160..fc3fd9f4 100644 --- a/Makefile +++ b/Makefile @@ -278,5 +278,9 @@ upload: build/$(PROJECT).bin openocd -f interface/stlink-v2.cfg -c "set WORKAREASIZE 0x2000" -f target/stm32f4x_stlink.cfg -c "program build/$(PROJECT).elf verify reset" #openocd -f board/stm32f4discovery.cfg -c "reset_config trst_only combined" -c "program build/$(PROJECT).elf verify reset" # For openocd 0.9 +#program with olimex arm-usb-tiny-h and jtag-swd adapter board. needs openocd>=0.9 +upload-olimex: build/$(PROJECT).bin + openocd -f interface/ftdi/olimex-arm-usb-tiny-h.cfg -f interface/ftdi/olimex-arm-jtag-swd.cfg -c "set WORKAREASIZE 0x2000" -f target/stm32f4x.cfg -c "program build/$(PROJECT).elf verify reset" + debug-start: openocd -f stm32-bv_openocd.cfg