Skip to content

Commit

Permalink
Revert "Use default debug init commands"
Browse files Browse the repository at this point in the history
This reverts commit f1890b5.
  • Loading branch information
ivankravets committed Jan 9, 2020
1 parent 6e3c41f commit 4a0855f
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,21 @@ def _add_dynamic_options(self, board):
elif link == "rv-link":
debug['tools']['rv-link'] = {
"hwids": [["0x28e9", "0x018a"]],
"require_debug_port": True
"require_debug_port": True,
"init_cmds": [
"define pio_reset_halt_target",
" monitor reset halt",
"end",
"define pio_reset_target",
" monitor reset",
"end",
"target extended-remote $DEBUG_PORT",
"$INIT_BREAK",
"pio_reset_halt_target",
"$LOAD_CMDS",
"monitor init",
"pio_reset_halt_target"
]
}
else:
openocd_interface = "ftdi/" + link
Expand All @@ -80,5 +94,5 @@ def _add_dynamic_options(self, board):
}
}

board.manifest['debug'] = debug
board.manifest['debug'] =debug
return board

0 comments on commit 4a0855f

Please sign in to comment.