tcl/target: use command 'jtag newtap' to add a boundary scan TAP
authorAntonio Borneo <borneo.antonio@gmail.com>
Sat, 26 Jan 2019 15:19:55 +0000 (16:19 +0100)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sat, 5 Sep 2020 16:10:14 +0000 (17:10 +0100)
commit1457a1ab425febd3dfceeb8c908b69135ff0b8b6
tree299e532f97e9772b0494d3a10252d24baf6c8ed5
parentf1d77a485ce4ca81ea791f3d584f7d5d452a10a9
tcl/target: use command 'jtag newtap' to add a boundary scan TAP

A JTAG TAP for boundary scan should be added in the scan chain
through the command "jtag newtap".
In some TCL target script the boundary scan TAP is added through
the command "swj_newdap", command that is inappropriate in this
context because specific for arm adi-v5 SWJ-DP.
This situation was probably created to bypass the error with HLA
framework, caused by missing command "jtag newtap".

Add the command "jtag newtap" in HLA, by reusing the existing
code for command "hla newtap".
Fix the TCL target scripts to use the command "jtag newtap" for
the boundary scan TAPs.

The TCL script target/psoc6.cfg has no evident reference to HLA,
so the reason for using "swj_newdap" is less clear. Nevertheless
it uses the wrong command and, once HLA is fixed, there is no
reason to avoid fixing it too.

Change-Id: Ia92f8221430cf6f3d2c34294e22e5e18963bb88c
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: http://openocd.zylin.com/4873
Tested-by: jenkins
Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
src/jtag/hla/hla_transport.c
tcl/target/em357.cfg
tcl/target/psoc6.cfg
tcl/target/stm32h7x.cfg
tcl/target/stm32w108xx.cfg
tcl/target/stm32wlx.cfg