Index: src/jtag/jlink.c =================================================================== --- src/jtag/jlink.c (revision 2348) +++ src/jtag/jlink.c (working copy) @@ -60,6 +60,7 @@ /* Constants for JLink command */ #define EMU_CMD_VERSION 0x01 +#define EMU_CMD_RESET_TRST 0x02 #define EMU_CMD_SET_SPEED 0x05 #define EMU_CMD_GET_STATE 0x07 #define EMU_CMD_HW_CLOCK 0xc8 @@ -316,6 +317,10 @@ return ERROR_JTAG_INIT_FAILED; } + /* The next command prevents intermittent communication failures with jlink devices */ + + jlink_simple_command(EMU_CMD_RESET_TRST); + jlink_hw_jtag_version = 2; check_cnt = 0; while (check_cnt < 3)