got ft232 openocd test working
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 15 Apr 2021 14:06:14 +0000 (15:06 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 15 Apr 2021 14:06:14 +0000 (15:06 +0100)
idcode_test2.svf
openocd_ft232.cfg [new file with mode: 0644]
openocd_usb_blaster.cfg [new file with mode: 0644]

index e83d885193b57411f2ac492b5260cf7b0e9b9f9a..3d25f27d881a0ad8f57e3d59e59a6a6adddb8b26 100644 (file)
@@ -24,5 +24,5 @@ SDR 8 TDI (8) SMASK (ff) ;
 // set to DMI "data read"
 SIR 4 TDI (9) SMASK (f) ;
 // read 64 bit
-SDR 64 TDI (0000000000000000) SMASK (0000000000000000) TDO (00000000deadbeef) MASK (ffffffffffffffff) ;
+SDR 64 TDI (0000000000000000) SMASK (0000000000000000) TDO (00000000deadbeef) MASK (0000000000000000) ;
 
diff --git a/openocd_ft232.cfg b/openocd_ft232.cfg
new file mode 100644 (file)
index 0000000..a30c1a4
--- /dev/null
@@ -0,0 +1,21 @@
+#debug_level 4
+
+adapter driver ft232r
+adapter speed 5
+#ft232r_serial_desc 8a57J1X4
+
+
+adapter_nsrst_delay 100
+jtag_ntrst_delay 100
+
+
+# this should be irlen=4
+jtag newtap libresoc tap -irlen 4 -irmask 0xf -ircapture 0xf -expected-id 0x000018ff
+
+#set _TARGETNAME libresoc.tap
+#target create $_TARGETNAME.0 ppc64 -chain-position $_TARGETNAME -rtos hwthread
+
+# Configure work area in on-chip SRAM
+#$_TARGETNAME.0 configure -work-area-phys 0x80000000 \
+#               -work-area-size 1000 -work-area-backup 0
+
diff --git a/openocd_usb_blaster.cfg b/openocd_usb_blaster.cfg
new file mode 100644 (file)
index 0000000..2bd28fd
--- /dev/null
@@ -0,0 +1,18 @@
+
+adapter driver usb_blaster
+adapter speed 1
+
+adapter_nsrst_delay 100
+jtag_ntrst_delay 100
+
+
+# this should be irlen=4
+jtag newtap libresoc tap -irlen 4 -irmask 0xf -ircapture 0xf -expected-id 0x000018ff
+
+#set _TARGETNAME libresoc.tap
+#target create $_TARGETNAME.0 ppc64 -chain-position $_TARGETNAME -rtos hwthread
+
+# Configure work area in on-chip SRAM
+#$_TARGETNAME.0 configure -work-area-phys 0x80000000 \
+#               -work-area-size 1000 -work-area-backup 0
+