openocd/contrib
Andrey Yurovsky fb897cc805 jlink: add support for Jlink-OB (0x0105) devices
The JLink-OB (onboard) devices work the same way as the normal JLink
except that their PID is 0x0105 (and that's the only one we know of so
far) and their endpoint addresses are different due to there being a
CDC-ACM interface as well.  These JLink-OB devices show up on a lot of
vendors' development kits as an integrated debugger.

This change simply checks whether the adapter we opened has a JLink-OB
PID and, if it does, uses the JLink-OB endpoints rather than the
default.  To do this, we add a new routine, jtag_libusb_get_pid() to the
libusb adapter layer, it in turn just calls
libusb_get_device_descriptor(), which previously had no wrapper.

Also, checkpatch.pl doesn't like the VID/PID macros as defined so I
moved them to the array itself.  This should have no effect on the code.

This change adds the 0102 through 0104 PIDs to openocd.rules as well as this
new 0105 PID.

Tested on an Atmel SAM4S Xplained board which has a JLink-OB, also
regression tested by using a 0x0101 PID normal JLink adapter.

Signed-off-by: Andrey Yurovsky <yurovsky@gmail.com>
Change-Id: I121d30e57729cda3adb66e2a5dc72e1fcb7ef8b1
Reviewed-on: http://openocd.zylin.com/2031
Tested-by: jenkins
Reviewed-by: Xiaofan <xiaofanc@gmail.com>
Reviewed-by: Paul Fertser <fercerpav@gmail.com>
2014-03-29 07:12:42 +00:00
..
libdcc update files to correct FSF address 2013-06-05 19:52:42 +00:00
loaders cortex_m: target implementation renames cortex_m3 to cortex_m 2013-10-10 20:51:03 +00:00
rpc_examples openocd.texi: document Tcl RPC and add an example client 2014-03-17 12:45:18 +00:00
99-openocd.rules jlink: add support for Jlink-OB (0x0105) devices 2014-03-29 07:12:42 +00:00
coresight-trace.txt present CM3 Trace agenda 2011-01-09 21:14:57 +01:00
cross-build.sh cmsis-dap: add initial cmsis-dap support 2014-01-09 15:20:51 +00:00
gen-stellaris-part-header.pl flash: declare fixed arrays const 2014-02-06 22:17:51 +00:00
itmdump.c present CM3 Trace agenda 2011-01-09 21:14:57 +01:00