Menu

#318 adapter driver presto - not work

0.11.0
new
nobody
None
2021-09-14
2021-09-08
No

I'm trying a first time to use Asix PRESTO with OpenOCD. (this Presto is normally working with the Asix UP software for Windows)
I tried to use in Windows precompiled OpenOCD 0.11 and in Linux fresh compiled by me.
In the configuration I use "adapter driver presto", or in addition "presto_serial 013979". However, on both systems, OpenOCD cannot correctly initialize PRESTO.

==== Linux dmesg ====
[395089.615983] usb 2-2.2: new full-speed USB device number 29 using uhci_hcd
[395089.820689] usb 2-2.2: New USB device found, idVendor=0403, idProduct=f1a0, bcdDevice= 4.00
[395089.820693] usb 2-2.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[395089.820694] usb 2-2.2: Product: ASIX PRESTO
[395089.820696] usb 2-2.2: Manufacturer: ASIX
[395089.820697] usb 2-2.2: SerialNumber: A6013979

==== OpenOCD --debug ====
Debug: 56 5 presto.c:139 presto_open_libftdi(): searching for PRESTO using libftdi
Error: 57 7 presto.c:149 presto_open_libftdi(): unable to open PRESTO: usb_open() failed
Error: 58 8 presto.c:540 presto_jtag_init(): Cannot open PRESTO
Debug: 59 8 command.c:629 run_command(): Command 'init' failed with error code -100

Related

Tickets: #318

Discussion

  • Paul Fertser

    Paul Fertser - 2021-09-08

    Hello Michal,

    On Wed, Sep 08, 2021 at 07:25:38AM -0000, Michal Hucik wrote:

    I'm trying a first time to use Asix PRESTO with OpenOCD.

    That's apparently a rather unusual adapter.

    ==== OpenOCD --debug ====
    Debug: 56 5 presto.c:139 presto_open_libftdi(): searching for PRESTO using
    libftdi
    Error: 57 7 presto.c:149 presto_open_libftdi(): unable to open PRESTO:
    usb_open() failed
    Error: 58 8 presto.c:540 presto_jtag_init(): Cannot open PRESTO

    Can you possibly join #openwrt on Libera IRC network for an
    interactive debugging session today?

    Have you made sure it's not a permissions problem?

    --
    Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software!
    mailto:fercerpav@gmail.com

     
  • Michal Hucik

    Michal Hucik - 2021-09-08

    Hello Paul, you're right! It seems that the whole problem is only in udev permissions.
    PRESTO is now connected (as root) - unfortunately it doesn't seem to be very fast. Now I will try to connect JTAG to the neorv32 RiscV for gdb session.

    Problem is solved - I apologize for the commotion.

    Michal

    ==== OpenOCD ====
    Info : PRESTO open, serial number ''
    Info : setting speed to 0, max. TCK freq. is 3 MHz
    Info : clock speed 3000 kHz

     

Log in to post a comment.