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.

Regarding the USB OTG in the peripheral mode

Other Parts Discussed in Thread: OMAP3530, TPS65930

Hi

Have anyone know that how to control the USB OTG of  omap3530 at peripheral mode,I want the omap3530 to be DEVICE to connect the PC.

Thanks.

  • To help answer your question, it would be very helpful if you could provide additional information about your OMAP3530 hardware and software platform.

    Is your question related to software requirements or hardware requirements?

     

    Regards,

    Paul

  • For software, the Linux kernel supports Gadget drivers.

    The Ethernet gadget driver connects the EVM to a PC over a network-like interface. Standard network software works.

    The File-backed storage gadget driver connects the EVM to a PC as a storage device. The EVM appears to the PC as a removable drive.

    The Serial gadget driver connects the EVM to a PC as a serial device.

    Steve K.

  • Hi  Paul

    I use Omap3530 CPU with the TPS65930 driver IC ,

    I want add the function to the u-Boot,that I can update Linux Kernel on the u-Boot by the PC.

    Thanks

  • The u-boot in our 03.00.01.06 release supports reading from a USB memory stick over the OTG port.  I use one of those USB 5-in-1 cables where the ends are interchangeable. On the end connecting to the EVM I have a Mini A connector and on the other end of the cable is a USB A Female.  A USB memory stick is attached at that end.  From u-boot

    OMAP3_EVM #
    OMAP3_EVM # usb start
    (Re)start USB...
    USB:   scanning bus for devices... 1 USB Device(s) found
           scanning bus for storage devices... 1 Storage Device(s) found
    OMAP3_EVM # fatls usb 0
                lost.dir/
      2304045   image0001.jpg
       344425   2010-08-22t07_0.gpx
       102967   2010-08-22t07_0.kml
       317070   et.jpg
     700267545   title_17.mov
     186734508   title_17.mp4
     178171298   title_17_1.avi
     815359000   title_17.avi
     1750642961   title_02.mov
     1614648955   title_03.mov

    10 file(s), 0 dir(s)

    OMAP3_EVM #

  • I forgot to mention that what I posted above is using the OTG port in Host mode.  That same u-boot can be configured to connect to the PC in device mode as a serial connection. If you have the 03.00.01.06 release, look in include/configs/omap3_evm.h

    /* USB
     * Enable CONFIG_MUSB_HCD for Host functionalities MSC, keyboard
     * Enable CONFIG_MUSB_UDD for Device functionalities.
     */

    So if you comment out CONFIG_MUSB_HCD and uncomment CONFIG_MUSB_UDC, then the OTG port will be in device mode and will connect to a PC as a serial connection.

    Steve K.

  • Steve's previous post recommended a USB cable with a Mini-A connector when operating the USB OTG port in host mode.  This cable connects the ID pin in the USB connector to ground which tells the USB controller in the OMAP3530 to operate in host mode. 

    When operating in peripheral mode the ID pin should be open-circuit.  This tells the USB controller to operate in peripheral mode.  So when you are connecting the USB OTG port to a PC you should be using a Mini-B connector which does not connect the ID pin to ground.

     

    Regards,

    Paul

  • Hi steve

    It's very useful information for me,i will look for 03.00.01.06 release,thanks.

  • Hi Paul

        OK,I will try it,thanks a lot.

    Regards,

    Alan