aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Savin <43152568+SiFiveGregS@users.noreply.github.com>2019-09-13 12:50:36 -0700
committerGitHub <noreply@github.com>2019-09-13 12:50:36 -0700
commitc5bb7fb2304c5f4fa62b864185106aaf7c0c1b98 (patch)
tree4f142e6a6d1f312c188def7f0b80130e0001be7f
parent11e6127401d43ba6226ac943c90263315a58732d (diff)
downloadriscv-openocd-c5bb7fb2304c5f4fa62b864185106aaf7c0c1b98.zip
riscv-openocd-c5bb7fb2304c5f4fa62b864185106aaf7c0c1b98.tar.gz
riscv-openocd-c5bb7fb2304c5f4fa62b864185106aaf7c0c1b98.tar.bz2
Add TCK padding in the OSCAN1 reset/online/activate sequence. (#406)
-rw-r--r--src/jtag/drivers/ftdi.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/jtag/drivers/ftdi.c b/src/jtag/drivers/ftdi.c
index 33b66b7..6fbcbce 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'},