From 736d7d74a01b27d5a83ba271956a009335ec3cd4 Mon Sep 17 00:00:00 2001 From: "S.J.R. van Schaik" Date: Tue, 1 Aug 2017 15:08:51 +0200 Subject: [PATCH] make: add commands to run openocd with appropriate settings --- scripts/Makefile.stm32f0 | 3 +++ scripts/Makefile.stm32f1 | 3 +++ 2 files changed, 6 insertions(+) diff --git a/scripts/Makefile.stm32f0 b/scripts/Makefile.stm32f0 index 4e416b2..89d3daf 100644 --- a/scripts/Makefile.stm32f0 +++ b/scripts/Makefile.stm32f0 @@ -49,4 +49,7 @@ run: $(BUILD)/tbm flash: $(BUILD)/tbm.bin stm32flash -g 0x8000000 -w $< $(STM32_PORT) +openocd: + openocd -f /usr/share/openocd/scripts/board/stm32f0discovery.cfg -c 'gdb_port 4242' + .PHONY: run diff --git a/scripts/Makefile.stm32f1 b/scripts/Makefile.stm32f1 index d751106..6a13436 100644 --- a/scripts/Makefile.stm32f1 +++ b/scripts/Makefile.stm32f1 @@ -49,4 +49,7 @@ run: $(BUILD)/tbm flash: $(BUILD)/tbm.bin stm32flash -g 0x8000000 -w $< $(STM32_PORT) +openocd: + openocd -f /usr/share/openocd/scripts/interface/jlink.cfg -c 'transport select swd' -f /usr/share/openocd/scripts/target/stm32f1x.cfg -c 'gdb_port 4242' + .PHONY: run