cleanup openocd config between interface and target
authorDobrica Pavlinusic <dpavlin@rot13.org>
Thu, 9 Jun 2016 16:10:17 +0000 (18:10 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Thu, 9 Jun 2016 16:10:17 +0000 (18:10 +0200)
raspberrypi-native.cfg
x300.cfg [new file with mode: 0644]

index 263d531..912320f 100644 (file)
@@ -20,7 +20,8 @@ bcm2835gpio_speed_coeffs 113714 28
 # Each of the JTAG lines need a gpio number set: tck tms tdi tdo
 # Header pin numbers: 23 22 19 21
 #bcm2835gpio_jtag_nums 11 25 10 9
-bcm2835gpio_jtag_nums 4 27 22 17
+
+
 
 # If you define trst or srst, use appropriate reset_config
 # Header pin numbers: TRST - 26, SRST - 18
@@ -34,3 +35,13 @@ bcm2835gpio_jtag_nums 4 27 22 17
 # or if you have both connected,
 # reset_config trst_and_srst srst_push_pull
 
+
+
+# XXX dpavlin x300 pci
+bcm2835gpio_jtag_nums 4 27 22 17
+
+# not really used for altera jtag, but we have to define it to make openocd happy
+bcm2835gpio_trst_num 18
+# reset_config trst_only
+reset_config none
+
diff --git a/x300.cfg b/x300.cfg
new file mode 100644 (file)
index 0000000..6693eed
--- /dev/null
+++ b/x300.cfg
@@ -0,0 +1,11 @@
+
+adapter_khz 30
+transport select jtag
+
+#jtag newtap x300pci tap -irlen 2 -expected-id 0x171280dd -irmask 0x2
+#jtag newtap x300pci tap -irlen 10 -expected-id 0x171280dd -irmask 0x3 -ircapture 0x1
+jtag newtap x300 tap -irlen 10
+
+init
+
+# XXX /dpavlin