This is an automated email from Gerrit. Alexander Osipenko ([email protected]) just uploaded a new patch set to Gerrit, which you can find at http://openocd.zylin.com/678
-- gerrit commit a1016800ac320c7b3cd56a781d65e3e53e7aa37a Author: Alexander Osipenko <[email protected]> Date: Mon May 28 04:04:56 2012 +0400 J-Link: Skip Select JTAG transport for pre-V8 It was reported, that V7 JLink not working after V8 SELECT_IF command. Until V7 method will be discovered and tested, issue the command only for V8 and higher devices. Change-Id: I45ec9e3b49177ff7e94308910fab22a7e105e09c Signed-off-by: Alexander Osipenko <[email protected]> diff --git a/src/jtag/drivers/jlink.c b/src/jtag/drivers/jlink.c index 3f91528..6817e95 100644 --- a/src/jtag/drivers/jlink.c +++ b/src/jtag/drivers/jlink.c @@ -433,6 +433,16 @@ static int jlink_khz(int khz, int *jtag_speed) */ static int jlink_select_interface(int iface) { + /* + * Once reported, that V7 JLink fails to operate after SELECT command. + * while operate normally without it. + * + * To avoid this, skip SELECT operation for earlier devices. + * This should be revised when implementing SWD. + */ + if (jlink_major_revision < 8) + return iface ? ERROR_JTAG_DEVICE_ERROR : ERROR_OK; + /* According to Segger's document RM08001-R7 Date: October 8, 2010, * http://www.segger.com/admin/uploads/productDocs/RM08001_JLinkUSBProtocol.pdf * section 5.5.3 EMU_CMD_SELECT_IF -- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ OpenOCD-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openocd-devel
