Skip to content

Commit

Permalink
make debug work for both gd and nuclei openocd
Browse files Browse the repository at this point in the history
Signed-off-by: Huaqi Fang <578567190@qq.com>
  • Loading branch information
fanghuaqi committed Dec 30, 2023
1 parent 186d16f commit 3f2f52d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand Down Expand Up @@ -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

0 comments on commit 3f2f52d

Please sign in to comment.