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