# OpenOCD config file for Core V Wally # Users can find example material in /usr/share/openocd/scripts/ adapter driver ftdi # when multiple adapters with the same vid_pid are connected (ex: arty-a7 and usb-jtag) # need to specify which usb port to drive # find numerical path using command "lsusb -t" (-) adapter usb location 1-4 ftdi vid_pid 0x0403 0x6010 ftdi channel 0 #TODO: figure out which of these bits need to be set # data MSB..LSB direction (1:out) MSB..LSB # 0000'0000'0011'0000 0000'0000'0011'1011 ftdi layout_init 0x0030 0x003b transport select jtag adapter speed 1000 set _CHIPNAME cvw jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id 0x1002ac05 set _TARGETNAME $_CHIPNAME.cpu target create $_TARGETNAME riscv -chain-position $_TARGETNAME init # this is useful for manual debugging, but breaks gdb poll off