From 0c253d819cf4be4293f2890da144c447adcdfae4 Mon Sep 17 00:00:00 2001 From: Gunar Schorcht Date: Sun, 19 Mar 2023 18:03:21 +0100 Subject: [PATCH] boards/common/gd32v: improve openocd config --- boards/common/gd32v/dist/openocd.cfg | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/boards/common/gd32v/dist/openocd.cfg b/boards/common/gd32v/dist/openocd.cfg index d7af3c59b7..d7488d353d 100644 --- a/boards/common/gd32v/dist/openocd.cfg +++ b/boards/common/gd32v/dist/openocd.cfg @@ -19,9 +19,12 @@ $_TARGETNAME configure -event reset-assert { # after the write happens, which fails when the core is in reset. riscv set_mem_access abstract - # Go! + # Reset the Hart $_TARGETNAME mww 0xe0042008 0x1 # Put the memory access mode back to what it was. riscv set_mem_access progbuf + + # Continue execution + resume }