Page 1 of 1

Using JTAG with CMSIS-DAP

Posted: Tue Jun 30, 2015 6:32 pm
by diltsman
I am attempting to connect to a TWR-LS1021A dev board through the built-in CMSIS-DAP debugger. From the schematics I can see that it connects to the LS1021A through JTAG not SWD. When I attempt to connect with OpenOCD I get the following result:
Code: Select all
openocd.exe -c "interface cmsis-dap"
Open On-Chip Debugger 0.9.0 (2015-05-19-12:09)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.org/doc/doxygen/bugs.html
Info : only one transport option; autoselect 'swd'
Info : CMSIS-DAP: JTAG Supported
Error: CMSIS-DAP: SWD not supported
When I unplug the USB to the dev board I get this:
Code: Select all
openocd.exe -c "interface cmsis-dap"
Open On-Chip Debugger 0.9.0 (2015-05-19-12:09)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.org/doc/doxygen/bugs.html
Info : only one transport option; autoselect 'swd'
Error: unable to find CMSIS-DAP device
This seems to indicate that OpenOCD recognizes the attached debugger, but is attempting to use it as a SWD connection not a JTAG connection. How do I get it to attempt to use it as JTAG?

Re: Using JTAG with CMSIS-DAP

Posted: Fri Jul 10, 2015 1:09 pm
by diltsman
In looking into this more, it appears that OpenOCD only support SWD over CMSIS-DAP. What is the effort involved in adding support for JTAG over CMSIS-DAP?

Re: Using JTAG with CMSIS-DAP

Posted: Sat Feb 13, 2016 6:07 pm
by Yoko
Check out the IDAP-Link from here http://embeddedsoftdev.blogspot.ca/p/idap-link.html. It's a full CMSIS-DAP jtag and works very well with OpenOCD. Tested with Nordic nRF5x, NXP LPC series, Freescale KL.

Re: Using JTAG with CMSIS-DAP

Posted: Tue Apr 26, 2016 6:26 am
by geekyyu
hi, diltsman. I meet the same question with you.

There are 2 things we had to do to add support for JTAG over CMSIS-DAP:
1. modify the code of /src/jtag/drivers/cmsis_dap_usb.c,make it support for JTAG.
2. modify the CMSIS-DAP firmware running on the adapter, make it support for JTAG.
I had done the 2, but I have no idea with 1, have you come out this?

Re: Using JTAG with CMSIS-DAP

Posted: Sun May 07, 2017 5:04 am
by Yoko
With the IDAP-Link supports both mode SWD & JTAG, nothing to modify. See http://embeddedsoftdev.blogspot.ca/p/idap-link.html