Part Number:PROCESSOR-SDK-AM335X
Tool/software: Linux
am3358 usb otg host problem: not work when first plugged
the otg's host role, device role are ok, but we have a problem.
The 3 operations below, are performed just after reboot the linux system,
1. pc's usb cable connected to am3358, am3358 plays as an usb device well,
and then, disconnect the usb cable,
plug a usb disk to am3358, it is ok: am3358 can find the usb disk
2. but reverse the steps above:
plug a usb disk to am3358 first, it is not ok, am3358 can't find the usb disk;
and then, disconnect the usb cable, and connect to PC, it ok;
finally, re-connect usb disk to am3358, it is ok: 3358 can find the usb disk.
3. plug a usb disk to am3358, it is not ok, am3358 can't find the usb disk;
and then, set the DEVCTL[SESSION] bit as 1,
am3358 can find the usb disk;
remove, plug, remove , plug, it is all ok, and not need to set the DEVCTL[SESSION] bit again.
4. set the DEVCTL[SESSION] bit as 1 first,
plug usb disk to am3358,
it is not work.
I must plug the usb disk first, and then set the DEVCTL[SESSION] bit, and it works.
it seems to be :
If i want the host role to work, i must connect it to pc first, or set the DEVCTL[SESSION] bit manually.
I wan to get that : plug the usb disk to am3358, and it works immediately.
how can i do ?