Use "program_esp" command for new openOCD

This commit is contained in:
Ivan Kravets
2020-10-26 19:24:18 +02:00
parent d10bbbe7dc
commit f2df24ff08
+2 -2
View File
@@ -168,13 +168,13 @@ class Espressif32Platform(PlatformBase):
debug_options = copy.deepcopy(initial_debug_options)
load_cmds = [
'monitor program_esp32 "{{{path}}}" {offset} verify'.format(
'monitor program_esp "{{{path}}}" {offset} verify'.format(
path=fs.to_unix_path(item["path"]), offset=item["offset"]
)
for item in flash_images
]
load_cmds.append(
'monitor program_esp32 "{%s.bin}" 0x10000 verify'
'monitor program_esp "{%s.bin}" 0x10000 verify'
% fs.to_unix_path(ide_data["prog_path"][:-4])
)
debug_options["load_cmds"] = load_cmds