From 65d71761c76d5894f5570402bce8d25a38610afa Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Mon, 5 Apr 2021 12:31:45 +0100 Subject: [PATCH] add first version opnocd_stlinkv2.cfg --- openocd_stlinkv2.cfg | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 openocd_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 + -- 2.30.2