This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

PGA305EVM-034: Error message when I connect USB2ANY to the PC

Part Number: PGA305EVM-034
Other Parts Discussed in Thread: PGA305, USB2ANY

Dear, support team.

When I connect USB2ANY to the PC and start the software (PGA305 EVM),

the following error message appears.

Error -2 occurred at USB2ANY.lvlib: Error Converter( ErrorCode or Status).vi

Possible reason: Receive buffer is empty

Please tell me what to do.

Best Regards,
Masahiro Morita

  • Hi Masahiro Morita,

    Welcome to the E2E forum!  The EVM GUI requires that a recent version of the LabVIEW runtime be installed.  Did you install the runtime?  The GUI installs the USB2ANY and Python applications, but you must manually install the LabVIEW runtime if not already installed on your computer. At the end of the installation a link should have shown up to access the runtime from National Instruments.

    National Instruments LabVIEW Run-Time Engine 2012: www.ni.com/download/labview-run-time-engine-2012/3433/en

    Best regards,

    Bob B

  • Hi Bob

    Thank you for response.

    I have already installed LabVIEW 2012 SP1 (32bit).

    I have tried reinstalling, but I still get the same error.

    Best Regards,
    Masahiro Morita

  • Hi Masahiro Morita,

    Thanks for the additional screen shots.  I do not have access to the lab today to troubleshoot further.  I will not be able to check until Tuesday next week earliest.  Just to verify, do you have the external 10V minimum supplied to the EVM at the banana jacks?

    Best regards,

    Bob B

  • Hi Bob,

    Thank you for response.

    Yes, I am supplying 20V from a banana jack, but the error is still there.

    TP2 - TP46 : 20.0V

    TP1 - TP46 : 7.41V

    TP4 - TP46 : 5.0V

    TP3 - TP46 : 3.3V

    TP20 - TP39 : 4.7V 

    but,

    TP49 - TP47 : 0.0V

    TP52 - TP47 : 0.0V

    So I suspect that there is an error in the communication between the PC and the microcontroller in USB2ANY.

    Best Regards,
    Masahiro Morita

  • Hi Masahiro Morita,

    I would agree that there is a communication issue from the PC to the USB2ANY.  When you first plug in the USB cable to USB2ANY does the LED light illuminate?  I will assume that it does, but for clarity does it remain on steady or is it flashing?  Do you recall if the USB2ANY firmware was updated when you started the PGA305EVM GUI?  Have you tried using a different USB cable (if available)?

    The USB2ANY uses an HID class device and should enumerate with VID = 2047 and PID = 301.  If you close the GUI, there is a set of utilities for the USB2ANY that can be used to verify communication to the hardware from the PC.  These can be found under:

    C:\Program Files (x86)\TI USB2ANY SDK\bin

    Try using the application called "USB2ANY Explorer".  You may have to revert back to an earlier version of the firmware.  Once the application has started you can check the controls such as the 5.0V and 3.3V buttons to verify if the control is working by measuring at the EVM test points showing 0V earlier for the external 5V and 3.3V test points. You should now see the appropriate voltages when the supplies are enabled.

    You can also use the drop-down for Select Interfaces to turn on the I2C interface and connect oscilloscope or logic analyzer probes to verify if I2C data is being sent at test points 55 and 56 on the EVM.

    If nothing is happening, then most likely there is an issue with the USB2ANY hardware/firmware.

    Best regards,

    Bob B

  • Hi Bob,

    I found the cause when I was checking various methods you taught me.

    The direction was revevrsed when connecting USB2ANY and EVM board.

    I reinserted it in the correct direction and I was able to communicate successfully.

    I made a silly mistake.

    Thanks for all your help.

    Best regards,

    Masahiro Morita

  • Hi Masahiro Morita,

    I don't have a USB2ANY in an enclosure, and it has been a long time since I have seen one in an enclosure that I didn't notice the labeling on the box indicating the direction in the picture you sent.  I'm glad you were able to figure it out.

    Best regards,

    Bob B