TI E2E Community
How to program to transfer data through USB in Linux
I'm working on OMAPL137 evm.Now I met a problem with the use of USB.
I want to transfer data from EVM to windows PC through a USB cable(the EVM is the host).
Since the EVM has USB driver, I connect EVM with PC but PC cannot detect USB device. (I use Windriver to write driver on windows PC)
Should I need to modify the Linux USB driver (ohci-da8xx.c?) and how to use the Linux driver to accomplish my application? Is there any examples?
As you want are connecting EVM to WIndows PC so EVM will be in peripjeral mode and PC will be host. You need to decided which peripheral driver to use on EVM side. There are support for mass storage (g_mass_storage) and usb ethernet driver (cdc and RNDIS) along with other gadget driver.
OHCI-DA8xx.c is for USB1 interface on EVM which is full speed host only and that port can;t be connected to WIndows PC. You need to connect USB0 (MUSB OTG) port to PC,
If my reply answers your question then please click on the green button "Verify Answer"
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.