From 3f2f52d28de92447c98b9144b081d57a3ef9c22e Mon Sep 17 00:00:00 2001 From: Huaqi Fang <578567190@qq.com> Date: Sat, 30 Dec 2023 12:14:32 +0800 Subject: [PATCH] make debug work for both gd and nuclei openocd Signed-off-by: Huaqi Fang <578567190@qq.com> --- platform.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/platform.py b/platform.py index d9cf44f..6c80a12 100644 --- a/platform.py +++ b/platform.py @@ -133,7 +133,7 @@ def _add_default_debug_tools(self, board): if link != "jlink": debug["tools"][link] = { "server": { - "package": "tool-openocd-gd32", + "package": "tool-openocd-nuclei", "executable": "bin/openocd", "arguments": server_args, }, @@ -161,6 +161,9 @@ def _add_default_debug_tools(self, board): "onboard": link in debug.get("onboard_tools", []), "default": link in debug.get("default_tools", []), } + # TODO workaround for gd32vw553h_eval board, we need to use gd32 distributed openocd + if build_board == "gd32vw553h_eval": + debug["tools"][link]["server"]["package"] = "tool-openocd-gd32" board.manifest["debug"] = debug return board