From: Luke Kenneth Casson Leighton Date: Tue, 6 Apr 2021 14:11:23 +0000 (+0100) Subject: more experimenting with STLinkv2 openocd X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1f083d172b74de119dd1524aee00323885a74fc2;p=libresoc-litex.git more experimenting with STLinkv2 openocd --- diff --git a/openocd_stlink_usb.cfg b/openocd_stlink_usb.cfg index 1db9cb4..f6593b8 100644 --- a/openocd_stlink_usb.cfg +++ b/openocd_stlink_usb.cfg @@ -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 diff --git a/openocd_stlinkv2.cfg b/openocd_stlinkv2.cfg index 787a00f..04ad4c9 100644 --- a/openocd_stlinkv2.cfg +++ b/openocd_stlinkv2.cfg @@ -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