Skip to content

Commit

Permalink
Correct flashing failure due to rtos detection
Browse files Browse the repository at this point in the history
  • Loading branch information
maxgerhardt committed Dec 25, 2024
1 parent 3a3a92c commit 35203aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions examples/gd32-spl-blinky/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -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] = {
Expand Down

0 comments on commit 35203aa

Please sign in to comment.