libusb_get_string_descriptor_ascii() failed with LIBUSB_ERROR_PIPE

Started by ganeshaperumald, November 10, 2022, 07:18:18 AM

Previous topic - Next topic

ganeshaperumald

Microsoft Windows [Version 10.0.22000.1219]
(c) Microsoft Corporation. All rights reserved.

C:\Users\TVSSS>cd Documents\TVSSS\LR\OpenOCD-OLIMEX-WINDOWS\openocd-0.9.0-rc1\bin

C:\Users\TVSSS\Documents\TVSSS\LR\OpenOCD-OLIMEX-WINDOWS\openocd-0.9.0-rc1\bin>openocd.exe -f ./interface/ftdi/olimex-arm-usb-ocd-h.cfg -f ./target/at91sam7sx.cfg
Open On-Chip Debugger 0.9.0-rc1 (2015-04-24-22:05)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.org/doc/doxygen/bugs.html
srst_only srst_pulls_trst srst_gates_jtag srst_open_drain connect_deassert_srst
Info : auto-selecting first available session transport "jtag". To override use 'transport select <transport>'.
Error: libusb_get_string_descriptor_ascii() failed with LIBUSB_ERROR_PIPE
Error: no device found
Error: unable to open ftdi device with vid 15ba, pid 002b, description 'Olimex OpenOCD JTAG ARM-USB-OCD-H' and serial '*'


C:\Users\TVSSS\Documents\TVSSS\LR\OpenOCD-OLIMEX-WINDOWS\openocd-0.9.0-rc1\bin>

LubOlimex

Seems like incompatibility between drivers installed and drivers expected by OpenOCD.

Try re-installing the drivers with Zadig. Refer to this thread:

https://www.olimex.com/forum/index.php?topic=3318.0
Technical support and documentation manager at Olimex

ganeshaperumald

For bug reports, read
        http://openocd.org/doc/doxygen/bugs.html
srst_only srst_pulls_trst srst_gates_jtag srst_open_drain connect_deassert_srst
Info : auto-selecting first available session transport "jtag". To override use 'transport select <transport>'.
Error: An adapter speed is not selected in the init script. Insert a call to adapter_khz or jtag_rclk to proceed.

LubOlimex

Seems like at91sam7sx.cfg script is not updated to work with newer openocd versions. Just add the following somewhere in the cfg:

adapter_khz 1000
Technical support and documentation manager at Olimex

ganeshaperumald

> reset run
JTAG tap: at91sam7s.cpu tap/device found: 0x3f0f0f0f (mfg: 0x787, part: 0xf0f0, ver: 0x3)
NOTE! DCC downloads have not been enabled, defaulting to slow memory writes. Type 'help dcc'.
NOTE! Severe performance degradation without fast memory access enabled. Type 'help fast'.
> help fast
  arm7_9 fast_memory_access ['enable'|'disable']
        use fast memory accesses instead of slower but potentially safer
        accesses (command valid any time)
    at91sam7s.cpu arm7_9 fast_memory_access ['enable'|'disable']
          use fast memory accesses instead of slower but potentially safer
          accesses (command valid any time)
fast_load
      loads active fast load image to current target - mainly for profiling
      purposes
fast_load_image filename address ['bin'|'ihex'|'elf'|'s19'] [min_address [max_length]]
      Load image into server memory for later use by fast_load; primarily
      for profiling (command valid any time)

ganeshaperumald

> reset run
JTAG tap: at91sam7s.cpu tap/device found: 0x3f0f0f0f (mfg: 0x787, part: 0xf0f0, ver: 0x3)
NOTE! DCC downloads have not been enabled, defaulting to slow memory writes. Type 'help dcc'.
NOTE! Severe performance degradation without fast memory access enabled. Type 'help fast'.
> help fast
  arm7_9 fast_memory_access ['enable'|'disable']
        use fast memory accesses instead of slower but potentially safer
        accesses (command valid any time)
    at91sam7s.cpu arm7_9 fast_memory_access ['enable'|'disable']
          use fast memory accesses instead of slower but potentially safer
          accesses (command valid any time)
fast_load
      loads active fast load image to current target - mainly for profiling
      purposes
fast_load_image filename address ['bin'|'ihex'|'elf'|'s19'] [min_address [max_length]]
      Load image into server memory for later use by fast_load; primarily
      for profiling (command valid any time)


LubOlimex

Looks better now. Just add what the notes recommend in the cfg script also, it should be
something like:

arm7_9 dcc_downloads enable

arm7_9 fast_memory_access enable
Technical support and documentation manager at Olimex