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.

Linux/TDA2EG-17: Cannot detect USB flash disk in host mode !

Part Number: TDA2EG-17
Other Parts Discussed in Thread: TDA2, PCF8575

Tool/software: Linux

Hi,

Now I have a problem that my custom board cannot detect USB flash disk in host mode when excuted "usb start" in Uboot mode.The log is attached.

And I open debug in Uboot mode .How can I resolve it ?

Uboot_with_debug2.txt

  • Hello,

    Can you confirm the USB flash disk is connected to the USB2 port on your custom board?
    Also can you please tell us what kind of USB flash disk is used here? Manufacture, make, speed? Is this flash disk working properly when connected to PC?
    Also, have you tried different USB flash disk?

    Looking at the u-boot log provided, the USB host driver in the u-boot got initialized properly and from you debug log, we could see that the device enumerate did not start at all. So are you seeing VBUS on the USB connection once the "usb start" is called?

    Thanks.
  • Hi,

    1. Yes,USB falsh disk is connected to USB2 port.And USB flash disk can be detected on TDA2EG17 EVM board,also it can work properly on PC.
        So it is not that USB causes the problem
    2. The differences between EVM board and our custom board is that:

         2.1 First,in our custom board,TDA2 don't detect the level of USB2_VBUS;

         2.2 Second,in our custom board,TDA2 detects ID pin of USB port ,but we don't use PCF8575,we use AA3 as following picture.

         2.3 After I excute "USB start",I measure VBUS's voltage,it will become 5V from 0V

  • Hi,

    Good to know the VBUS voltage is proper. Since the USB mode we trying is HOST, the ID pin is not a concern.

    Can you share the complete schematic of USB connection b/n the TDA2 and the USB port.

    Also, what kind of USB receptacle is used on the board?

    Have you tried connecting USB flash driver after the kernel boots up? Or you still at the u-boot level?

    Thanks.

  • Hi,

    1.  The complete schematic of USB connection is as following:

    2.The type of USB receptacle is Micro USB as following:

    3. I also have tried to connect USB after kernel boots up,it also failed.So I'd like to start to resolve it from Uboot mode.

    I am looking forward to your reply. Thanks!

  • Thanks for the details and sharing the schematics.

    I am checking with the h/w expert to confirm the schematics are fine, especially the requirements to have choke and esd are properly taken care.

    Thanks

  • Hi,

    Could you give some advise?And I think it's not the hardware which causes the problem,I still doubt the detection of ID pin.
  • The detection of ID pin is required only if the USB is configured for OTG mode. For Host mode functionality, this pin is not used.

    BTW, are you still seeing the issue?

    As previously noted, the device was not detected by the USB2 configured as HOST. You would notice in the u-boot log that the portstatus always return value 0x101 and stayed at FULLSPEED. In case of device detection, the value returned will be 0x503 (USB_PORT_STAT_ENABLE=1) and speed will switch to HIGHSPEED. This clearly says that the device was not detected by the USB controller.

    Suggest you to connect the USB protocol analyzer between the USB port an the USB flash drive and provided us the protocol log to analyze the issue.

    Thanks.
  • Hi Praveen:

    Yes,I'm still seeing the issue.But I cannot provide the log because I don't have USB protocol analyzer.
  • Looking at your log, it looks like the USB goes into Full speed. We will need USB protocol logs to understand why high speed fails and full speed is entered, otherwise it limits our debug.

    Also I noticed you mention you are connecting to USB2 port, but your schematic s showing USB1, can you share the USB2 schematic?
  • Hi!

    I haven't heard back from you in awhile, so I am assuming you have resolved your issue.  If not just post a reply (or new thread if this thread if locked) 

    Best Regards,

    Yining