add first version opnocd_stlinkv2.cfg
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 5 Apr 2021 11:31:45 +0000 (12:31 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 5 Apr 2021 11:31:45 +0000 (12:31 +0100)
openocd_stlinkv2.cfg [new file with mode: 0644]

diff --git a/openocd_stlinkv2.cfg b/openocd_stlinkv2.cfg
new file mode 100644 (file)
index 0000000..f3e5e1d
--- /dev/null
@@ -0,0 +1,16 @@
+interface hla
+hla_layout stlink
+hla_device_desc "ST-LINK"
+hla_vid_pid 0x0483 0x3744 0x0483 0x3748 0x0483 0x374b
+transport select hla_jtag
+
+# 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
+