cancel
Showing results for 
Search instead for 
Did you mean: 

Device descriptor failed error for composite USB class(MSC+CustomHID)

NK
Associate II

Hello,

I want to implement USB composite class of MSC + CustomHID on STM32LRR5ZI development board. I created a library file for the same by combining functionalities of both the class. But PC is unable to recognize the USB device connected to it. Can any one suggest the way of debugging it?? Because VID and PID values seems to correct for STM32LRR5ZI board :

USBD_VID   1155

USBD_PID   22352 

/** USB standard device descriptor. */

__ALIGN_BEGIN uint8_t USBD_FS_DeviceDesc[USB_LEN_DEV_DESC] __ALIGN_END =

{

 0x12,            /*bLength */

 USB_DESC_TYPE_DEVICE,    /*bDescriptorType*/

 0x02,

 0x00,            /*bDeviceClass*/

 0x00,            /*bDeviceSubClass*/

 0x00,            /*bDeviceProtocol*/

 USB_MAX_EP0_SIZE,      /*bMaxPacketSize*/

 LOBYTE(USBD_VID),      /*idVendor*/

 HIBYTE(USBD_VID),      /*idVendor*/

 LOBYTE(USBD_PID_FS),    /*idProduct*/

 HIBYTE(USBD_PID_FS),    /*idProduct*/

 0x00,            /*bcdDevice rel. 2.00*/

 0x02,

 USBD_IDX_MFC_STR,      /*Index of manufacturer string*/

 USBD_IDX_PRODUCT_STR,    /*Index of product string*/

 USBD_IDX_SERIAL_STR,    /*Index of serial number string*/

 USBD_MAX_NUM_CONFIGURATION /*bNumConfigurations*/

};

Is there anything need to be change??

Can you please suggest me why PID and VID values are not setting to it??

Is there anything in library file need to modify for composite class of USB??

Thank you.

0 REPLIES 0