cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple USB descriptor ( RNDIS + VCP)

YChun.5
Associate

Chip set : STM32F413xx

I would like to implement RNDIS driver + VCP(FS).

I wonder that usb descriptor is available or not for this combination.

Descriptor was modified for this.

VCP was enumerated but RNDIS was not enumerated. error code is 10 from windows.

Implementation

const UsbDeviceDescriptor usbdDeviceDescriptor =

{

  sizeof(UsbDeviceDescriptor), //bLength

  USB_DESC_TYPE_DEVICE,    //bDescriptorType

  HTOLE16(0x0200),       //bcdUsb (2.00)

  0xEF,    //bDeviceClass

  0x02,   //bDeviceSubClass

  0x01,   //bDeviceProtocol

  USB_EP0_MAX_PACKET_SIZE,   //bMaxPacketSize0

  HTOLE16(USBD_VENDOR_ID),   //idVendor

  HTOLE16(USBD_PRODUCT_ID),  //idProduct

  HTOLE16(USBD_DEVICE_REV),  //bcdDevice

  1,              //iManufacturer

  2,              //iProduct

  3,              //iSerialNumber

  1              //bNumConfigurations

};

For USBD_CDC_CfgFSDesc, please refer to the attached file.

Please check this and wait for your reply.

0 REPLIES 0