TWRVF65GS10-MQX USB host application host_ch9 functions not working

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

TWRVF65GS10-MQX USB host application host_ch9 functions not working

860 Views
manjug
Contributor III

Hi,

When i call host_ch9 function to request device for getting descriptor it's not getting the descriptor values in my host application code-

case USB_DEVICE_INTERFACED:

status=_usb_host_ch9_get_descriptor(usb_device.DEV_HANDLE,

  USB_DESC_TYPE_DEV<<8, 0, USB_DESC_LEN_DEV,

  (unsigned char *)&dev_ptr->dev_descriptor);

 

if (status != USB_OK)

    {

       printf("\r\n no descriptor from ch9functions");

    }

   e = _lwevent_get_signalled();

  if (USB_EVENT_DATA & e) {

  if(usb_device.DEV_STATE == USB_DEVICE_INUSE) {

  break;

  }

  else{

  usb_device.DEV_STATE = USB_DEVICE_INUSE;

  break;

  }

  }

  if (USB_EVENT_CTRL & e) {

  /* kick the outer loop again to handle the CTRL event */

  _lwevent_set(&USB_Event, USB_EVENT_CTRL);

  break;

  }

  usb_device.DEV_STATE = USB_DEVICE_INUSE;

  break;

I have attached my host application code file.Please help me on this.

Original Attachment has been moved to: xl4usbip_host.h.txt.zip

Original Attachment has been moved to: xl4usbip_host.c.txt.zip

Labels (1)
0 Kudos
2 Replies

585 Views
alejandrolozan1
NXP Employee
NXP Employee

Hi,

Are you getting a kind of error like USBERR_DEVICE_NOT_FOUND or USBERR_INVALID_PIPE_HANDLE? or maybe you are just getting a buffer with 0 data.

/Alejandro

0 Kudos

585 Views
alejandrolozan1
NXP Employee
NXP Employee

Hi,

It has been a while, I wonder if you have solved the problem.

/Alejandro

0 Kudos