add stlink directdap config
[libresoc-litex.git] / openocd_stlinkv2.cfg
1 debug_level 4
2
3 interface hla
4 hla_layout stlink
5 hla_device_desc "ST-LINK"
6 hla_vid_pid 0x0483 0x3744 0x0483 0x3748 0x0483 0x374b
7 #jtag_rclk 300
8 adapter speed 9
9 transport select hla_jtag
10
11 # this should be irlen=4
12 jtag newtap libresoc cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id 0x000018ff
13
14 #hla newtap libresoc tap -irlen 4 -irmask 0xf -ircapture 0xf -expected-id 0x000018ff
15
16 #set _TARGETNAME libresoc.tap
17 #target create $_TARGETNAME.0 ppc64 -chain-position $_TARGETNAME -rtos hwthread
18
19 # Configure work area in on-chip SRAM
20 #$_TARGETNAME.0 configure -work-area-phys 0x80000000 \
21 # -work-area-size 1000 -work-area-backup 0
22