Browse Source

jtag: Fix jtag_reset fallback

The fallback provided for the jtag_reset command always fails with a
strange message: 'Error: invalid command name "de"'

This is caused by incorrect quoting inside the warning message.

Fixes: c07b774e8f ("jtag: replace command "jtag_reset" with "adapter [de]assert"")

Change-Id: Icd47fca2b5a7b33474bfb0040e88193a0968f301
Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
Reviewed-on: http://openocd.zylin.com/5416
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
master
Leonard Crestez 4 years ago
committed by Antonio Borneo
parent
commit
09ac9ab135
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/jtag/startup.tcl

+ 1
- 1
src/jtag/startup.tcl View File

@@ -135,7 +135,7 @@ proc jtag_nsrst_assert_width args {
}

proc jtag_reset args {
echo "DEPRECATED! use 'adapter [de]assert' not 'jtag_reset'"
echo "DEPRECATED! use 'adapter \[de\]assert' not 'jtag_reset'"
switch $args {
"0 0"
{eval adapter deassert trst deassert srst}


Loading…
Cancel
Save