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.

Starterware USB Library for AM335x GP EVM

Dear all,

i am working on AM335x GP EVM having few quiries in starter ware USB library.

Our requirement is connect a Communication Device like Wi-fi to one of the USB ports and pass the data through another USB port(just bypass the data from initialization,no data Processing at all).

1.Is Starterware USB library(version 2.00.00.07) supports CDC in HOST mode?

2.If it doesn't support what would be the better approach should i follow?

3.is there any USB sacks that supports the HOST for CDC mode compatible to AM335x SOC?

Thanks & Regards

Rama Krishna 

  • Hi Rama krishna,

    1.Is Starterware USB library(version 2.00.00.07) supports CDC in HOST mode?

    Ans: CDC(Ethernet class) devices are not supported in host Mode. This means that they will not be enumerated fully(configured). Also the class driver which would use its pipes are not present in this stack.  

    2. If it doesn't support what would be the better approach should I follow?

    There are 2 parts to writing a driver for a USB device - The first would be to get it enumerated (See USB enumeration).

    After reading the USB descriptors , the class driver (in your case a CDC host driver ) needs to send the SET_CONFIGURATION standard request with the proper config value fetched from descriptor. 

    The second part is the CDC driver operation-  This driver would use the pipes exposed by the wifi device to read data from/to it. 

    So, to sum up you would need to write the CDC driver as only you would know what to do with it.  

    3.is there any USB sacks that supports the HOST for CDC mode compatible to AM335x SOC?

    Please try out the LInux USB stack. 

    As I have stated in your previous post your task does involve a lot of layers. An ethernet frame that is received from the wifi device passes through the HW- >USB driver layer -> CDC driver -> lwip ( link layer -> internet layer -> transport layer) etc and then gets consumed by an application . This implies that you would need to expect some significant overhead for packet reception and transmission.     

    Please ask further questions using this post (Your previous post) . 

    http://e2e.ti.com/support/embedded/starterware/f/790/p/336918/1179397.aspx#1179397

  • Hi Vineeth,

                      Thanks for your valuable information.i have few queries regarding LWIP stack.

    Starter ware uses LWIP version 1.4.0 and it is already ported on to it.The latest version was 1.4.1,which one is better to use?

    is there any steps porting of LWIP into a specific hardware in our case AM335x?

    Thanks & Regards

    Rama Krishna         

  • Dear vineeth,

                          Things become quite difficult,we have a 3G evm works based on AT commands & while connecting to the Host(both windows & Linux) creating virtual com ports for command and data processing. 

    1.Is that Creating a virtual com port  means Ethernet frames are passed over a serial interface ?

    2.Shall we use LWIP for Ethernet over Serial for data capturing & processing?

    3.If LWIP not used how can we achieve this task?

    Thanks & Regards

    Rama Krishna

       

                        

  • Hi Rama, 

    I am having some issue with very basic setup, please refer the belwo link

    http://e2e.ti.com/support/embedded/starterware/f/790/t/347671.aspx

    I am not sure it is my board probelm or some other probelm, please help me to try this and let me know

  • Hi peiris,

                  U can see the answer posted by Baskaran here.

    http://e2e.ti.com/support/embedded/starterware/f/790/t/347671.aspx

    Thanks & Regards

    Rama Krishna