Skip to content

Commit

Permalink
Properly define on-board debug tools
Browse files Browse the repository at this point in the history
  • Loading branch information
valeros committed Jun 11, 2024
1 parent de9ca15 commit f04a08e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions boards/uno_r4_wifi.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
"variant": "UNOWIFIR4"
},
"debug": {
"default_tools": [
"cmsis-dap"
],
"onboard_tools": [
"cmsis-dap"
],
Expand Down
7 changes: 7 additions & 0 deletions platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,13 @@ def _add_default_debug_tools(self, board):
],
}

debug["tools"][link]["onboard"] = link in debug.get(
"onboard_tools", []
)
debug["tools"][link]["default"] = link in debug.get(
"default_tools", []
)

board.manifest["debug"] = debug
return board

Expand Down

0 comments on commit f04a08e

Please sign in to comment.