Skip to content

Commit f5ffb58

Browse files
committed
Initial support for new OpenOCD package
1 parent 3688b7b commit f5ffb58

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

platform.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@
114114
"type": "debugger",
115115
"optional": true,
116116
"owner": "platformio",
117-
"version": "~1.1000.20181026"
117+
"version": "~2.1000.0"
118118
},
119119
"tool-mkspiffs": {
120120
"type": "uploader",

platform.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,8 @@ def _add_dynamic_options(self, board):
122122
server_args = [
123123
"-s", "$PACKAGE_DIR/share/openocd/scripts",
124124
"-f", "interface/%s.cfg" % openocd_interface,
125-
"-f", "board/%s" % debug.get("openocd_board")
125+
"-f", "board/%s" % debug.get("openocd_board"),
126+
"-c", "adapter_khz %d" % debug.get("adapter_speed", 20000)
126127
]
127128

128129
debug['tools'][link] = {

0 commit comments

Comments
 (0)