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.

Loopback Test from One USB Peripheral to The Other USB Peripheral for AM335x Starter Kit

Hi,

My board is AM335x Starter Kit.

I want to write a loopback test program on it. That is, USB0 sends data to USB1. When USB1 get the data, it will send back to USB0.

From the schematics, USB_MicroAB port is not wired to USB0 directly. It is linked to the "Upstream" port of a hub, USB2412, which is connected to JTAG and UART through the "Downstream 1" port. But there is a "Downstream 2" port for the hub, which seems able to direct Micro AB port to USB0. (http://processors.wiki.ti.com/images/a/a2/TMDSSK3358_3H0009_REV1_2B_SCH.pdf )

Questions:

1. Is it possible to implement such a loopback test on AM335x Starter Kit?

2. If possible, do you mean I can use USB0 like USB1? But how can I configure the "USB2412" to choose USB0 instread of JTAG?

3. I have to use Micro AB port to burn the program onto the board first. So my current idea is that I write a program to initialize the USB0 and USB1 and burn it onto the board through MicroAB port first. Then I unplug the USB cable from my PC and plug it to the other USB A Type port (USB1). Now the USB0 and USB1 can communicate with each other. Will this idea work?

I just want to test USB modules. The loopback test is a method I can think of to do the job. If there's any other simpler method which can be used to test the USB modules, please share it.

Thanks.