Forums - Openocd configuration issues

9 posts / 0 new
Last post
Openocd configuration issues
wangxian19890318
Join Date: 30 Apr 19
Posts: 17
Posted: Mon, 2019-09-30 12:35

Dear all,

     I am using QCA4020 to do Zigbee development on Windows.

     I try to follow the JTAG debug mode (3.7.2) on QCA402x (CDB2x) Development Kit User Guide.

     In 3.7.2.2 debugging through GDB, I tried to run the openocd -f qca402x_openocd.cfg. It shows the result as

     Error: libusb_open() failed with LIBUSB_ERROR_NOT_FOUND
     Error: no device found
     Error: unable to open ftdi device with vid 0403, pid 6010, description '*', serial '*' at bus location '*'

     I have changed the cfg file a little to fix the previous problems until I got this one.

 

     What can I do to fix this problem? And what is libsub() actually?

 

      Best Regards

         Xian Wang

  • Up0
  • Down0
c_rpedad
Profile picture
Join Date: 18 Jun 18
Location: San Jose
Posts: 317
Posted: Mon, 2019-09-30 14:57

libusb_open() failed error occurs when the remote machine is not able to detect the USB device.

Make sure the USB is plugged in, jumper settings are accurate and  reset the board  to run "openocd -f qca40x_openocd.cfg"

 

  • Up0
  • Down0
wangxian19890318
Join Date: 30 Apr 19
Posts: 17
Posted: Wed, 2019-10-02 14:26

Thank you for the reply,

I think I just plug in the USB and setting the jumper on J31 (1 and 2) as the user guide said.

Since there are 2 plug ins in QCA4020, I tried both of them with J31 jumper, only the below one can be recognized by the device manager.

And I can see the interface from Zadig as shown in user guide (Dual RS232 HS (interface 0)), the only difference with the user guide is the driver in my computer shows FTDIBUS (v13.11.35.0) not the FTDIBUS (v2.12.28.0), does it matter for the problem?

How to see the the device is being detected by the USB? not from Zadig?

 

Best Regards

  Xian Wang

  • Up0
  • Down0
c_rpedad
Profile picture
Join Date: 18 Jun 18
Location: San Jose
Posts: 317
Posted: Wed, 2019-10-02 16:07

Yes only UART comm ports should be recognized by device manager.
Can you confirm after aplying the Zadiag, you are seeing single comm port  ?
Also, try to change the USB port and make sure RS232 driver is installed and you are able to see (Dual RS232 HS (interface 0)) and apply Zadiag on the comm port.

 

  • Up0
  • Down0
wangxian19890318
Join Date: 30 Apr 19
Posts: 17
Posted: Wed, 2019-10-02 17:50

Thank you for the reply, I have tried to switch USB port, Dual RS232-HS (interface 0) and Dual RS232-HS(interface 1) can both see.

One more thing is, when I apply Zadig, the screen shows the same as the user guide shows (only FTDIBUS different version in the left), do I need to press replace driver or someting?

 

Best Regards

  Xian Wang

  • Up0
  • Down0
c_rpedad
Profile picture
Join Date: 18 Jun 18
Location: San Jose
Posts: 317
Posted: Wed, 2019-10-02 22:55

Kindly try replacing the driver, after successfull installation, you should see single COMM port under device manager.

  • Up0
  • Down0
naufal.shidqi
Join Date: 27 Sep 18
Posts: 3
Posted: Thu, 2019-10-03 01:12

Hi,

I also experienced this.
Then I tried to launch command_prompt as Administrator, it's working.

Regards,

Naufal
 

  • Up0
  • Down0
wangxian19890318
Join Date: 30 Apr 19
Posts: 17
Posted: Thu, 2019-10-03 14:23

Thank you for your help.

I tried your method, no difference.

GNU MCU Eclipse OpenOCD, 64-bitOpen On-Chip Debugger 0.10.0+dev-00593-g23ad80df4 (2019-04-22-20:25)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.org/doc/doxygen/bugs.html
adapter speed: 5000 kHz
Error: libusb_open() failed with LIBUSB_ERROR_NOT_FOUND
Error: no device found
Error: unable to open ftdi device with vid 0403, pid 6010, description '*', serial '*' at bus location '*'

What did you see in Zadig?

 

Best Regards

  Xian Wang

  • Up0
  • Down0
wangxian19890318
Join Date: 30 Apr 19
Posts: 17
Posted: Thu, 2019-10-03 14:28

Thank you for the reply.

you mean replacing the driver is to replace the FTDIBUS driver into different version, or change FTDIBUS driver to some others in Zadig?

 

Best Regards

  Xian Wang

  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.