From c10c94afcab69c107037a926a2650aa52a291c92 Mon Sep 17 00:00:00 2001 From: Michal Moskal Date: Mon, 13 Apr 2020 08:36:16 -0700 Subject: [PATCH] Use the right openocd version --- scripts/openocd | 2 +- stm32/stm32f0.mk | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/openocd b/scripts/openocd index 3e63f5d..d1b4114 100755 --- a/scripts/openocd +++ b/scripts/openocd @@ -1,6 +1,6 @@ #!/bin/sh -S=STM32CubeG0/openocd +S=stm32/STM32CubeG0/openocd case `uname -s` in Darwin* ) P=$S/macOS/openocd diff --git a/stm32/stm32f0.mk b/stm32/stm32f0.mk index 17c7d42..54ded9e 100644 --- a/stm32/stm32f0.mk +++ b/stm32/stm32f0.mk @@ -2,7 +2,8 @@ SERIES = F0 CFLAGS += -mcpu=cortex-m0 #OPENOCD = openocd -f interface/stlink-v2-1.cfg -f target/stm32f0x.cfg -OPENOCD = ./scripts/openocd -s ./scripts -f cmsis-dap.cfg -f stm32f0x.cfg +#OPENOCD = ./scripts/openocd -s ./scripts -f cmsis-dap.cfg -f stm32f0x.cfg +OPENOCD = openocd -f interface/cmsis-dap.cfg -f target/stm32f0x.cfg HALPREF = $(DRV)/STM32F0xx_HAL_Driver/Src HALSRC = \