Skip to content

Commit

Permalink
Always activate RTOS decoding in OpenOCD, switch to Gigadevice provid…
Browse files Browse the repository at this point in the history
…ed OpenOCD on Windows
  • Loading branch information
maxgerhardt committed Dec 25, 2024
1 parent c55f3ac commit 3a3a92c
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 16 deletions.
4 changes: 2 additions & 2 deletions boards/gd32h757z_start.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
"debug": {
"jlink_device": "GD32H737ZM",
"openocd_target": "stm32f1x",
"openocd_target": "gd32h7xx",
"svd_path": "GD32H7XX.svd",
"default_tools": [
"cmsis-dap"
Expand All @@ -29,7 +29,7 @@
"maximum_ram_size": 327680,
"maximum_size": 3932160,
"ram_start": "0x24000000",
"protocol": "gdlinkcli",
"protocol": "cmsis-dap",
"protocols": [
"jlink",
"cmsis-dap",
Expand Down
2 changes: 1 addition & 1 deletion boards/genericGD32A503RD.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
},
"debug": {
"jlink_device": "GD32A503RD",
"openocd_target": "stm32f1x",
"openocd_target": "gd32a50x",
"svd_path": "GD32A50X.svd",
"default_tools": [
"stlink"
Expand Down
5 changes: 0 additions & 5 deletions examples/gd32-spl-blinky/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,3 @@ framework = spl
board = gd32h757z_start
; board_build.cm7_hardfloat = yes
framework = spl
build_type = debug
debug_load_cmds = preload
debug_tool = custom
debug_port = :3333
debug_init_break = b Reset_Handler
3 changes: 1 addition & 2 deletions examples/zephyr-blink/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,5 @@
platform = gd32
framework = zephyr
board = genericGD32A503RD
upload_protocol = gdlinkcli
upload_protocol = cmsis-dap
debug_tool = cmsis-dap
debug_load_cmds = preload
11 changes: 5 additions & 6 deletions platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
class Gd32Platform(PlatformBase):
# provides fixes for GD32E50x. Mac packages are still t.b.d.
openocd_gd32 = {
"windows_amd64": "https://github.com/CommunityGD32Cores/tool-openocd-gd32.git#windows_x64",
"windows_amd64": "https://github.com/CommunityGD32Cores/tool-openocd-gd32.git#windows_x64_gigadevice",
"linux_x86_64": "https://github.com/CommunityGD32Cores/tool-openocd-gd32.git#linux_x64",
}

Expand Down Expand Up @@ -164,12 +164,11 @@ def _add_default_debug_tools(self, board):
server_args.extend([
"-f", "target/%s.cfg" % debug.get("openocd_target")
])
if str(debug.get("rtos", "no")) in ("true", "yes", "1"):
server_args.extend([
"-c", "$_TARGETNAME configure -rtos auto"
])
# Always try and detect any RTOS
server_args.extend([
"-c", "$_TARGETNAME configure -rtos auto"
])
server_args.extend(debug.get("openocd_extra_args", []))

debug["tools"][link] = {
"server": {
"package": "tool-openocd-gd32",
Expand Down

0 comments on commit 3a3a92c

Please sign in to comment.