From 35203aa165a3dec15e09311cda09eef04bc07962 Mon Sep 17 00:00:00 2001 From: maxgerhardt Date: Wed, 25 Dec 2024 14:42:06 +0100 Subject: [PATCH] Correct flashing failure due to rtos detection --- examples/gd32-spl-blinky/platformio.ini | 5 +---- platform.py | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/examples/gd32-spl-blinky/platformio.ini b/examples/gd32-spl-blinky/platformio.ini index e3147d4..d184d7c 100644 --- a/examples/gd32-spl-blinky/platformio.ini +++ b/examples/gd32-spl-blinky/platformio.ini @@ -194,11 +194,8 @@ framework = spl [env:genericGD32A503RD] board = genericGD32A503RD framework = spl -upload_protocol = gdlinkcli +upload_protocol = cmsis-dap debug_tool = cmsis-dap -build_type = debug -debug_build_flags = -O0 -g3 -ggdb3 -debug_load_cmds = preload ; GD32L23x series diff --git a/platform.py b/platform.py index 5ebee83..2e150bf 100644 --- a/platform.py +++ b/platform.py @@ -166,7 +166,7 @@ def _add_default_debug_tools(self, board): ]) # Always try and detect any RTOS server_args.extend([ - "-c", "$_TARGETNAME configure -rtos auto" + "-c", "%s.cpu configure -rtos auto" % (debug.get("openocd_target")) ]) server_args.extend(debug.get("openocd_extra_args", [])) debug["tools"][link] = {