openocd/src/jtag/drivers
Marc Schink 442f1540d5 Improve J-Link driver and introduce libjaylink.
This patch uses libjaylink which is a library to access J-Link
devices. As other tools which are not in the scope of OpenOCD also
need to access J-Link devices a library is used. A firmware upgrade
tool and an advanced configuration tool for J-Link devices are under
development.

Further versions of libjaylink will support additional features
OpenOCD could benefit from. This includes TCP/IP as additional
possibility to connect to J-Link devices as well as power tracing and
device internal communication. The latter is used to access
peripherals on some development boards (e.g EFM32 STK and DVK).

Integration of libjaylink is realized with a git submodule like
jimtcl. As libjaylink depends on libusb-1.0 only, no additional
dependency is introduced for OpenOCD.

All low-level JTAG and SWD implementations of the current driver are
left untouched and therefore no incompabilities are to be expected.

Improvements of this patch:

 * Support for more USB Product IDs, including those with the new
   scheme (0x10xx). The corresponding udev rules are also updated.
 * Device selection with serial number and USB address.
 * Adaptive clocking is now correctly implemented and only usable for
   devices with the corresponding capability.
 * The target power supply can now be switched without the need for
   changing configuration and power cycling the device.
 * Device configuration is more restrictive and only allowed if the
   required capabilities are available.
 * Device configuration now shows the changes between the current
   configuration of the device and the values that will be applied.
 * Device configuration is verified after it is written to the device
   exactly as the vendor software does.
 * Connection registration is now handled properly and checks if the
   maximum number of connections on a device is reached. This is also
   necessary for devices which are attached via USB to OpenOCD as
   some device models also support connections on TCP/IP.
 * Serial Wire Output (SWO) can now be captured. This feature is not
   documented by SEGGER however it is completely supported by
   libjaylink.

This patch and libjaylink were tested on Ubuntu 14.04 (i386),
Debian 7 (amd64), FreeBSD 10.0 (amd64) and Windows XP SP3 (32-bit)
with the following device and target configurations:

 * JTAG: J-Link v8.0, v9.0 and v9.3 with AT91SAM7S256
 * SWD: SiLabs EFM32 STK 3700 (EFM32GG990F1024)
 * SWD: J-Link v8.0, v9.0 and v9.3 with EFM32GG990F1024
 * SWD: XMC 2Go (XMC1100)
 * SWD: XMC1100 Boot Kit (XMC1100)
 * SWD: IAR Systems / Olimex Eval Board (LPC1343F)
 * SWD: Nordic Semiconductor nRF51 Dongle (nRF51422)
 * SWD: SiLabs EZR32 WSTK 6220A (EZR32WG330FG60G)

Except for Windows XP all builds are tested with Clang in addition to
GCC. This patch and libjaylink are not tested on OSX yet.

Change-Id: I8476c57d37c6091c4b892b183da682c548ca1786
Signed-off-by: Marc Schink <openocd-dev@marcschink.de>
Reviewed-on: http://openocd.zylin.com/2598
Tested-by: jenkins
Reviewed-by: Andreas Färber <afaerber@suse.de>
Reviewed-by: Paul Fertser <fercerpav@gmail.com>
Reviewed-by: Freddie Chopin <freddie.chopin@gmail.com>
2015-11-26 12:19:22 +00:00
..
OpenULINK OpenULINK firmware: update firmware hex image 2013-07-17 14:31:19 +00:00
libjaylink@83f6e7c4d8 Improve J-Link driver and introduce libjaylink. 2015-11-26 12:19:22 +00:00
usb_blaster jtag/drivers: remove useless checks causing build failure with clang 3.5.0 2015-01-30 09:02:20 +00:00
versaloon vsllink: Port to libusb-1.0 API 2014-07-03 19:43:16 +00:00
Makefile.am Improve J-Link driver and introduce libjaylink. 2015-11-26 12:19:22 +00:00
Makefile.rlink update files to correct FSF address 2013-06-05 19:52:42 +00:00
amt_jtagaccel.c jtag: constify driver arrays 2014-10-06 11:57:36 +00:00
arm-jtag-ew.c update files to correct FSF address 2013-06-05 19:52:42 +00:00
at91rm9200.c jtag: constify driver arrays 2014-10-06 11:57:36 +00:00
bcm2835gpio.c bcm2835gpio: Add SWD support, Raspberry Pi 2 support. 2015-08-06 13:16:02 +01:00
bitbang.c Add SWD protocol support to bitbang 2015-02-22 16:17:49 +00:00
bitbang.h Add SWD protocol support to bitbang 2015-02-22 16:17:49 +00:00
bitq.c update files to correct FSF address 2013-06-05 19:52:42 +00:00
bitq.h update files to correct FSF address 2013-06-05 19:52:42 +00:00
buspirate.c jtag/drivers/buspirate: add JTAG_STABLECLOCKS cmd 2015-03-09 06:25:21 +00:00
cmsis_dap_usb.c jtag: cmsis-dap: Issue disconnect before reconnecting 2015-11-20 18:26:12 +00:00
driver.c Retire jtag_add_dr_out 2014-01-20 13:28:26 +00:00
dummy.c update files to correct FSF address 2013-06-05 19:52:42 +00:00
ep93xx.c update files to correct FSF address 2013-06-05 19:52:42 +00:00
ft2232.c jtag: constify driver arrays 2014-10-06 11:57:36 +00:00
ftd2xx_common.h update files to correct FSF address 2013-06-05 19:52:42 +00:00
ftdi.c jtag/drivers/ftdi.c: removed memory leak 2015-03-25 21:52:09 +00:00
gw16012.c update files to correct FSF address 2013-06-05 19:52:42 +00:00
jlink.c Improve J-Link driver and introduce libjaylink. 2015-11-26 12:19:22 +00:00
jtag_vpi.c jtag_vpi: make the server address configurable 2013-12-31 12:00:49 +00:00
libusb0_common.c libusb: introduce jtag_libusb_choose_interface() and use it for JLink 2014-10-06 18:40:39 +00:00
libusb0_common.h libusb: introduce jtag_libusb_choose_interface() and use it for JLink 2014-10-06 18:40:39 +00:00
libusb1_common.c libusb: introduce jtag_libusb_choose_interface() and use it for JLink 2014-10-06 18:40:39 +00:00
libusb1_common.h libusb: introduce jtag_libusb_choose_interface() and use it for JLink 2014-10-06 18:40:39 +00:00
libusb_common.h update files to correct FSF address 2013-06-05 19:52:42 +00:00
minidriver_imp.h Retire jtag_add_dr_out 2014-01-20 13:28:26 +00:00
mpsse.c mpsse: Display libusb error names instead of numbers 2014-09-22 19:39:09 +00:00
mpsse.h mpsse: Defer errors until flush 2013-08-01 10:31:08 +00:00
opendous.c jtag: constify driver arrays 2014-10-06 11:57:36 +00:00
openjtag.c Added OpenJTAG Driver 2013-06-05 19:52:15 +00:00
osbdm.c Support hla_serial command for ST-LINK adapters. 2014-09-22 19:36:05 +00:00
parport.c jtag: constify driver arrays 2014-10-06 11:57:36 +00:00
presto.c update files to correct FSF address 2013-06-05 19:52:42 +00:00
remote_bitbang.c jtag/drivers/remote_bitbang: use sizeof to determine maximum unix socket path length 2014-04-14 18:16:52 +00:00
rlink.c update files to correct FSF address 2013-06-05 19:52:42 +00:00
rlink.h update files to correct FSF address 2013-06-05 19:52:42 +00:00
rlink_call.m4 update files to correct FSF address 2013-06-05 19:52:42 +00:00
rlink_dtc_cmd.h update files to correct FSF address 2013-06-05 19:52:42 +00:00
rlink_ep1_cmd.h update files to correct FSF address 2013-06-05 19:52:42 +00:00
rlink_init.m4 update files to correct FSF address 2013-06-05 19:52:42 +00:00
rlink_speed_table.c build: cleanup src/jtag/drivers directory 2012-02-06 10:59:07 +00:00
rlink_st7.h update files to correct FSF address 2013-06-05 19:52:42 +00:00
stlink_usb.c stlink_usb: fix typo 2015-09-30 22:47:27 +01:00
sysfsgpio.c Add SWD protocol support to sysfsgpio 2015-02-22 16:21:15 +00:00
ti_icdi_usb.c jtag/drivers/ti_icdi: do not segfault when adapter can't be opened 2015-04-24 16:08:18 +01:00
ulink.c jtag/drivers: remove useless checks causing build failure with clang 3.5.0 2015-01-30 09:02:20 +00:00
usb_common.c update files to correct FSF address 2013-06-05 19:52:42 +00:00
usb_common.h update files to correct FSF address 2013-06-05 19:52:42 +00:00
usbprog.c update files to correct FSF address 2013-06-05 19:52:42 +00:00
vsllink.c configure the SWD frequency when setting adapter speed in SWD mode for versaloon 2015-04-16 20:30:49 +01:00