1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2026-01-01 01:41:18 +01:00

dist/tools/openocd: make "reset run" command configurable

Co-Authored-By: jcarrano <juan@carrano.com.ar>
This commit is contained in:
Kaspar Schleiser 2019-02-20 23:01:07 +01:00
parent f37b02a73a
commit 3583b00750

View File

@ -90,6 +90,8 @@
# the target when starting a debug session. 'reset halt' can also be used
# depending on the type of target.
: ${OPENOCD_DBG_START_CMD:=-c 'halt'}
# command used to reset the board
: ${OPENOCD_CMD_RESET_RUN:="-c 'reset run'"}
# This is an optional offset to the base address that can be used to flash an
# image in a different location than it is linked at. This feature can be useful
# when flashing images for firmware swapping/remapping boot loaders.
@ -323,7 +325,7 @@ do_reset() {
-c 'telnet_port 0' \
-c 'gdb_port 0' \
-c 'init' \
-c 'reset run' \
${OPENOCD_CMD_RESET_RUN} \
-c 'shutdown'"
}