Compatibility with a new PIO Unified Debugger for VSCode

This commit is contained in:
Ivan Kravets
2018-05-02 17:04:36 +03:00
parent 49b0c1a99d
commit f92711de77
+13 -6
View File
@@ -59,16 +59,23 @@ class Espressif32Platform(PlatformBase):
"executable": "bin/openocd",
"arguments": server_args
},
"init_break": "thb app_main",
"init_cmds": [
"define pio_reset_halt_target",
" mon reset halt",
" x $a1=0",
"end",
"define pio_reset_target",
" mon reset",
"end",
"target extended-remote $DEBUG_PORT",
'file "$PROG_PATH"',
"$LOAD_CMD",
"mon reset halt",
"$INIT_BREAK",
"x $a1=0"
"mon reset halt",
"$LOAD_CMD",
"pio_reset_halt_target",
"continue"
],
"load_cmd": 'mon program_esp32 "$PROG_DIR/firmware.bin" 0x10000',
"init_break": "thb app_main"
"load_cmd": 'mon program_esp32 "$PROG_DIR/firmware.bin" 0x10000 verify'
}
board.manifest['debug'] = debug