From: Luke Kenneth Casson Leighton <lkcl@lkcl.net>
Date: Mon, 5 Apr 2021 11:31:45 +0000 (+0100)
Subject: add first version opnocd_stlinkv2.cfg
X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=65d71761c76d5894f5570402bce8d25a38610afa;p=libresoc-litex.git

add first version opnocd_stlinkv2.cfg
---

diff --git a/openocd_stlinkv2.cfg b/openocd_stlinkv2.cfg
new file mode 100644
index 0000000..f3e5e1d
--- /dev/null
+++ b/openocd_stlinkv2.cfg
@@ -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
+