On Thu, Jan 24, 2019 at 06:58:20PM +0100, Antonio Borneo wrote:
> Here the error is that the script uses the direct command "jtag newtap
> ..." that is specific of transport "jtag"
> To be general, the script should instead use the command "swj_newdap
> ...", as done few lines above.

Sorry, but that sounds wrong to me. A "tap" is a JTAG-level entity, it
is something that any JTAG transport should be aware of. In contrast
to that, "swj" here stands for ARM-specific debug port SWJ-DP[1], and
"dap" is an ARM-specific thing too[2].

So it just doesn't sound right. I would guess the proper solution
would be to extend hla_jtag transport to accept "jtag newtap" command
directly.

Regarding stlink, I can't understand why it would ever need to talk
JTAG if it can only talk to the very first target anyway, in this case
SWD would work with exactly the same board with same capabilites, or
am I missing something?

[1] http://infocenter.arm.com/help/topic/com.arm.doc.ddi0314h/Chdiaihc.html
[2] http://infocenter.arm.com/help/topic/com.arm.doc.ddi0314h/Babdficb.html

-- 
Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software!
mailto:[email protected]


_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to