]> git.sur5r.net Git - openocd/commit
J-Link: Forcibly select JTAG transport
authorAlexander Osipenko <sipych@gmail.com>
Mon, 28 May 2012 07:26:34 +0000 (11:26 +0400)
committerSpencer Oliver <spen@spen-soft.co.uk>
Tue, 26 Jun 2012 10:11:03 +0000 (10:11 +0000)
commit4b6af9797846b07c6aee3eb45898c2044bdf167e
tree4a80a12b27c4d4b4f8ef25ae6374260f086232c0
parent17ea1b31a1f70d89ff8592382edad2f5fc0ac1a9
J-Link: Forcibly select JTAG transport

Some versions of Segger's software do not select JTAG interface by default.
Do it in the intial setup.

Firmware version check code still present, with updated set of unsupported.

Note from Segger:
Alright, we were not aware of that OpenOCD does not select the interface
before it starts communicating with the target.  A debugger should always
select the appropriate target interface before it starts communicating with the target,
since otherwise it could also happen that a previous session with another debugger
had selected SWD and the interface was not switched again by OpenOCD.

Change-Id: I5b4eab7e0e3625ec32be75a36d89e16d17e899bf
Signed-off-by: Alexander Osipenko <sipych@gmail.com>
Reviewed-on: http://openocd.zylin.com/667
Tested-by: jenkins
Reviewed-by: Xiaofan <xiaofanc@gmail.com>
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
src/jtag/drivers/jlink.c