none
winEC7 USB device driver RRS feed

  • Question

  • Hi Friends,

    I'm currently working on iMX53 based board.

    New to winEC.

    Looking into USB device driver on winEC7.

    In the platform which i'm working has two USB ports. One port is for USB OTG to be connected with PC and second for connecting only mass storage device.

    I'm confused which USB driver to be added in our BSP.

    USB function driver for mass storage

    USB OTG driver to connect with PC

    USB host controller driver supported.for both  to be

    Please correct me if i'm wrong and guide me.

    Thanks in Advance :)

    Saturday, May 25, 2013 9:22 AM

Answers

  • When you connect your CE device to PC, what functionality you want?

    Do you want your device to appear as Mass storage device or Do you want your device to connect with ActiveSync ? Depending on your need you need to select the function client driver supported on CE.

    Regards,

    Rakesh.



    Saturday, May 25, 2013 12:55 PM

All replies

  • The USB OTG driver is BSP specific. You have to add the BSP OTG driver for controlling one of the OTG port.

    The second port is looks like USB Host where you want to connect USB Mass storage device.

    In all cases,

    You have to add the following OS specific USB sysgen in your image,

    For USB Host,

    SYSGEN_USB =1
    BSP_USB_EHCI = 1
    BSP_USB_OHCI = 1
    BSP_USB_UHCI = 1
    SYSGEN_USB_STORAGE =1 for Mass Storage

    For USB Function: (when you connect your CE device to PC )

    SYSGEN_USBFN=1

    Any of the required client ,

    SYSGEN_USBFN_ETHERNET
    SYSGEN_USBFN_SERIAL
    SYSGEN_USBFn_STORAGE
    SYSGEN_USBFN_COMPOSITE

    Regards,

    Rakesh.

    Saturday, May 25, 2013 11:11 AM
  • Hi Rakesh,

    Thanks for the reply.

    I need some more details.

    In my case Do i need of USB function driver and

    USB function client driver?

    Whats the functionality of both?

    Please provide your inputs

    I'm making a design doc, its would be much helpful for making it.

    Thanks.

    Saturday, May 25, 2013 12:45 PM
  • When you connect your CE device to PC, what functionality you want?

    Do you want your device to appear as Mass storage device or Do you want your device to connect with ActiveSync ? Depending on your need you need to select the function client driver supported on CE.

    Regards,

    Rakesh.



    Saturday, May 25, 2013 12:55 PM
  • Following link may help you to get familiarize your self with USB support in WEC7.

    1. When CE device connects to PC

    USB Function stack details:

    http://msdn.microsoft.com/en-us/library/gg156152.aspx

    2. When USB device connects to WEC7 (Host)

    http://msdn.microsoft.com/en-us/library/gg156249.aspx

    3. USB OTG in WEC7

    http://msdn.microsoft.com/en-us/library/gg158019.aspx

    Regards,

    Rakesh.

    • Proposed as answer by Deepu27 Wednesday, June 5, 2013 2:29 PM
    Sunday, May 26, 2013 11:04 AM