Skip to content

Commit ebf8c60

Browse files
author
wangyanwen
committed
src/jtag:Fix multicore cjtag connectivity issues
Change-Id: I197bd8de2b223d85039525c7c3af332870ac5fc9 Signed-off-by: wangyanwen <wangyanwen@nucleisys.com>
1 parent e6a3ac4 commit ebf8c60

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/jtag/drivers/ftdi.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -854,7 +854,6 @@ static void oscan1_mpsse_clock_tms_cs(struct mpsse_ctx *ctx, const uint8_t *out,
854854
{
855855
static const uint8_t zero;
856856
static const uint8_t one = 1;
857-
uint8_t old_tmsbit = 1;
858857

859858
struct signal *tmsc_en = find_signal_by_name("TMSC_EN");
860859

@@ -873,9 +872,8 @@ static void oscan1_mpsse_clock_tms_cs(struct mpsse_ctx *ctx, const uint8_t *out,
873872
/* drive TMSC to desired TMS value */
874873
bitnum = out_offset + i;
875874
tmsbit = ((out[bitnum/8] >> (bitnum%8)) & 0x1);
876-
if (tmsbit == 1 && old_tmsbit == 1 && nscan1_ignore_tlr_rst == 1)
875+
if ((nscan1_ignore_tlr_rst == 1) && (i < 3))
877876
continue;
878-
old_tmsbit = tmsbit;
879877

880878
if (tdibit == tmsbit) {
881879
/* Can squash into a single MPSSE command */

0 commit comments

Comments
 (0)