From ebf8c60e33b40f96e8ee1981c71167c24e29f293 Mon Sep 17 00:00:00 2001 From: wangyanwen Date: Mon, 24 Feb 2025 17:19:48 +0800 Subject: [PATCH] src/jtag:Fix multicore cjtag connectivity issues Change-Id: I197bd8de2b223d85039525c7c3af332870ac5fc9 Signed-off-by: wangyanwen --- src/jtag/drivers/ftdi.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/jtag/drivers/ftdi.c b/src/jtag/drivers/ftdi.c index f176fb656..2786d9633 100644 --- a/src/jtag/drivers/ftdi.c +++ b/src/jtag/drivers/ftdi.c @@ -854,7 +854,6 @@ static void oscan1_mpsse_clock_tms_cs(struct mpsse_ctx *ctx, const uint8_t *out, { static const uint8_t zero; static const uint8_t one = 1; - uint8_t old_tmsbit = 1; struct signal *tmsc_en = find_signal_by_name("TMSC_EN"); @@ -873,9 +872,8 @@ static void oscan1_mpsse_clock_tms_cs(struct mpsse_ctx *ctx, const uint8_t *out, /* drive TMSC to desired TMS value */ bitnum = out_offset + i; tmsbit = ((out[bitnum/8] >> (bitnum%8)) & 0x1); - if (tmsbit == 1 && old_tmsbit == 1 && nscan1_ignore_tlr_rst == 1) + if ((nscan1_ignore_tlr_rst == 1) && (i < 3)) continue; - old_tmsbit = tmsbit; if (tdibit == tmsbit) { /* Can squash into a single MPSSE command */