From c5bb7fb2304c5f4fa62b864185106aaf7c0c1b98 Mon Sep 17 00:00:00 2001 From: Greg Savin <43152568+SiFiveGregS@users.noreply.github.com> Date: Fri, 13 Sep 2019 12:50:36 -0700 Subject: [PATCH] Add TCK padding in the OSCAN1 reset/online/activate sequence. (#406) --- src/jtag/drivers/ftdi.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/jtag/drivers/ftdi.c b/src/jtag/drivers/ftdi.c index 33b66b7e0..6fbcbce6c 100644 --- a/src/jtag/drivers/ftdi.c +++ b/src/jtag/drivers/ftdi.c @@ -927,6 +927,20 @@ static void oscan1_reset_online_activate(void) /* TCK=0, TMS=1, TDI=0 (falling edge TCK with TMSC still 0) */ {'0', '1', '0'}, + /* 3 TCK pulses for padding */ + /* TCK=1, TMS=1, TDI=0 (drive rising TCK edge) */ + {'1', '1', '0'}, + /* TCK=0, TMS=1, TDI=0 (drive falling TCK edge) */ + {'0', '1', '0'}, + /* TCK=1, TMS=1, TDI=0 (drive rising TCK edge) */ + {'1', '1', '0'}, + /* TCK=0, TMS=1, TDI=0 (drive falling TCK edge) */ + {'0', '1', '0'}, + /* TCK=1, TMS=1, TDI=0 (drive rising TCK edge) */ + {'1', '1', '0'}, + /* TCK=0, TMS=1, TDI=0 (drive falling TCK edge) */ + {'0', '1', '0'}, + /* Drive cJTAG escape sequence for SELECT */ /* TCK=1, TMS=1, TDI=0 (rising edge of TCK with TMSC still 0, TAP reset that was just setup occurs here too) */ {'1', '1', '0'},