Skip to content

Commit f04a08e

Browse files
committed
Properly define on-board debug tools
Resolves platformio/platformio-docs#356
1 parent de9ca15 commit f04a08e

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

Diff for: boards/uno_r4_wifi.json

+3
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@
2929
"variant": "UNOWIFIR4"
3030
},
3131
"debug": {
32+
"default_tools": [
33+
"cmsis-dap"
34+
],
3235
"onboard_tools": [
3336
"cmsis-dap"
3437
],

Diff for: platform.py

+7
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,13 @@ def _add_default_debug_tools(self, board):
156156
],
157157
}
158158

159+
debug["tools"][link]["onboard"] = link in debug.get(
160+
"onboard_tools", []
161+
)
162+
debug["tools"][link]["default"] = link in debug.get(
163+
"default_tools", []
164+
)
165+
159166
board.manifest["debug"] = debug
160167
return board
161168

0 commit comments

Comments
 (0)