adapter_khz 1000 # Olimex ARM-USB-OCD-H interface ftdi ftdi_device_desc "Olimex OpenOCD JTAG ARM-USB-OCD-H" ftdi_vid_pid 0x15ba 0x002b ftdi_layout_init 0x0908 0x0b1b ftdi_layout_signal nSRST -oe 0x0200 ftdi_layout_signal nTRST -data 0x0100 ftdi_layout_signal LED -data 0x0800 set _CHIPNAME riscv #jtag newtap $_CHIPNAME unknown0 -irlen 5 -expected-id 0x5fffedb3 #jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id 0x50001db3 jtag newtap $_CHIPNAME unknown0 -irlen 5 jtag newtap $_CHIPNAME cpu -irlen 5 set _TARGETNAME $_CHIPNAME.cpu target create $_TARGETNAME riscv -chain-position $_TARGETNAME -coreid 0x3e1 gdb_report_data_abort enable gdb_report_register_access_error enable riscv set_reset_timeout_sec 120 riscv set_command_timeout_sec 120 # prefer to use sba for system bus access #riscv set_prefer_sba on # dump jtag chain scan_chain init halt echo "Ready for Remote Connections"