Skip to content

Commit 07919d0

Browse files
committed
Merge branch 'feature/openocd-update' into develop
2 parents dedfed0 + 7b932d1 commit 07919d0

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

builder/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -371,13 +371,13 @@ def __fetch_spiffs_size(target, source, env):
371371
debug_tools.get(upload_protocol).get("server").get("arguments", []))
372372
openocd_args.extend([
373373
"-c",
374-
"program_esp32 {{$SOURCE}} %s verify" %
374+
"program_esp {{$SOURCE}} %s verify" %
375375
board.get("upload.offset_address", "0x10000")
376376
])
377377
for image in env.get("FLASH_EXTRA_IMAGES", []):
378378
openocd_args.extend([
379379
"-c",
380-
'program_esp32 {{%s}} %s verify' %
380+
'program_esp {{%s}} %s verify' %
381381
(_to_unix_slashes(image[1]), image[0])
382382
])
383383
openocd_args.extend(["-c", "reset run; shutdown"])

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: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,8 @@ def _add_dynamic_options(self, board):
124124
server_args = [
125125
"-s", "$PACKAGE_DIR/share/openocd/scripts",
126126
"-f", "interface/%s.cfg" % openocd_interface,
127-
"-f", "board/%s" % debug.get("openocd_board")
127+
"-f", "board/%s" % debug.get("openocd_board"),
128+
"-c", "adapter_khz %d" % debug.get("adapter_speed", 20000)
128129
]
129130

130131
debug['tools'][link] = {
@@ -167,13 +168,13 @@ def configure_debug_options(self, initial_debug_options, ide_data):
167168

168169
debug_options = copy.deepcopy(initial_debug_options)
169170
load_cmds = [
170-
'monitor program_esp32 "{{{path}}}" {offset} verify'.format(
171+
'monitor program_esp "{{{path}}}" {offset} verify'.format(
171172
path=fs.to_unix_path(item["path"]), offset=item["offset"]
172173
)
173174
for item in flash_images
174175
]
175176
load_cmds.append(
176-
'monitor program_esp32 "{%s.bin}" 0x10000 verify'
177+
'monitor program_esp "{%s.bin}" 0x10000 verify'
177178
% fs.to_unix_path(ide_data["prog_path"][:-4])
178179
)
179180
debug_options["load_cmds"] = load_cmds

0 commit comments

Comments
 (0)