more experimenting with STLinkv2 openocd
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 6 Apr 2021 14:11:23 +0000 (15:11 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 6 Apr 2021 14:11:23 +0000 (15:11 +0100)
openocd_stlink_usb.cfg
openocd_stlinkv2.cfg

index 1db9cb402344697fbd8b5df90a6502e8900bc542..f6593b85d8fac27ab39fd2ea23033d53cd950e68 100644 (file)
@@ -1,10 +1,10 @@
 debug_level 4
 
-interface st-link
-adapter speed 9000
+adapter driver st-link
+adapter speed 9
 #jtag_rclk 300
 transport select dapdirect_jtag
-st-link backend usb
+#st-link backend usb
 st-link vid_pid 0x0483 0x3748 
 
 # this should be irlen=4
index 787a00f8fff1943775487d10d7d677eb07ee1081..04ad4c9c493cfb1da38dc385c3fa74f3638763d3 100644 (file)
@@ -2,14 +2,16 @@ debug_level 4
 
 interface hla
 hla_layout stlink
-hla_device_desc "ST-LINK"
+#hla_device_desc "ST-LINK"
 hla_vid_pid 0x0483 0x3744 0x0483 0x3748 0x0483 0x374b
 #jtag_rclk 300
-adapter speed 9
+adapter speed 140
 transport select hla_jtag
 
 # this should be irlen=4
-jtag newtap libresoc cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id 0x000018ff
+jtag newtap ls180 tap -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id 0x000018ff -enable
+
+init
 
 #hla newtap libresoc tap -irlen 4 -irmask 0xf -ircapture 0xf -expected-id 0x000018ff