November 22, 2024, 04:12:55 PM

Error conncting ARM-USB-OCD-H to openocd

Started by kkry, November 07, 2021, 11:48:34 AM

Previous topic - Next topic

kkry

I launched openocd with the command:
openocd -f openocd-zcu102-olimex-arm-usb-ocd-h.cfgThe output:
Open On-Chip Debugger 0.11.0+dev-02060-g857b5ce (2021-10-19-21:04)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Info : auto-selecting first available session transport "jtag". To override use 'transport select <transport>'.
Error: no device found
Error: unable to open ftdi device with vid 15ba, pid 002b, description 'Olimex Ltd. ARM-USB-OCD-H JTAG+RS232', serial '*' at bus location '*'

The content of cfg file:
adapter speed     1000

# Olimex ARM-USB-OCD-H
#interface ftdi
adapter driver ftdi
# ftdi_device_desc "Olimex OpenOCD JTAG ARM-USB-OCD-H"
ftdi device_desc "Olimex Ltd. ARM-USB-OCD-H JTAG+RS232"
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 0x10102001
jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id 0x249511C3

set _TARGETNAME $_CHIPNAME.cpu
target create $_TARGETNAME riscv -chain-position $_TARGETNAME -coreid 0x3e0

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
riscv set_mem_access sysbus

# dump jtag chain
scan_chain


init
halt
echo "Ready for Remote Connections"

The output of lsusb:
Bus 002 Device 002: ID 8087:8002 Intel Corp.
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:800a Intel Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 002: ID 17aa:1034 
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 005: ID 0403:6014 Future Technology Devices International, Ltd FT232H Single HS USB-UART/FIFO IC
Bus 003 Device 004: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
Bus 003 Device 003: ID 17aa:1034 
Bus 003 Device 002: ID 15ba:002b Olimex Ltd. ARM-USB-OCD-H JTAG+RS232
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

LubOlimex

Hmm, is it FTDI or libusb driver in the OpenOCD version that you use? Might want to edit that in the cfg. Also why only one interface is visible... It should list both the RS232 port at the back and the USB-serial converter. There is something fishy here. Maybe the interface is black listed?
Technical support and documentation manager at Olimex