i.MX6D can't enumerate USB devices after plug U disk in and out many times

cancel
Showing results for 
Search instead for 
Did you mean: 

i.MX6D can't enumerate USB devices after plug U disk in and out many times

Jump to solution
670 Views
victorhuang
Contributor II

Hi,all:

we are using a custom board base i.MX6D,kernel version:3.0.15.
I use U disk to update system,when I plug in U disk that with update packages,it start to update.
before updating finish,plug it out.When I test this procedure many times,i.MX6D can't enumerate USB devices at the end.

I upload four attachments:
Kernel_log.txt:
Line 1:I plug a U disk in,after 2 seconds, I plug it out;
Line 10:After 33 seconds USB disconnect;I can't not understand why it disconnect more than 33 seconds,then error occured.
Line 34:I plug this U disk again,but it can't be enumerated.

USB_register_value.txt:
When error occured,I read EHCI and USB PHY register's value.

USB_HOST_sch.jpg
This is hardware schematic about this USB port.D+ and D- directly connected to USB_HOST_DP and USB_HOST_DN in i.MX6D.

I had try this work:
1. Capture USB D+ and D- waveform,nothing different happened when plug U disk out.
2. I try to change USBPHYx_TXn register D_CAL's value,but error still happened.
3. When error occured,i.MX6 can't enumerate all USB devices include low speed.


Thanks & Regards
Victor

Labels (2)
Tags (2)
0 Kudos
1 Solution
254 Views
victorhuang
Contributor II

Hi,igor

Thanks for your advice.I'm sorry for that I can't update this bsp.
When error occured,all USB can't be enumerate.Then I reset the USB PHY controller,it works fine now.

Thanks & Regards
Victor

View solution in original post

0 Kudos
4 Replies
254 Views
igorpadykov
NXP TechSupport
NXP TechSupport

Hi Victor

was device safely unmounted before disconnecting as required by operating system :

Ubuntu Forums 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
254 Views
victorhuang
Contributor II

Hi,igor

Thank you for following up.The device was umounted safely before disconnect.
Under normal circumstances,I plugged USB disk out,it showed “usb 2-1: USB disconnect, device number” immediately and umounted safely.
but when an error occured, the terminal did not have any output and printed “usb 2-1: USB disconnect, device number” after 33 seconds.
So I doubt there is something wrong with controller.

0 Kudos
254 Views
igorpadykov
NXP TechSupport
NXP TechSupport

Hi Victor

please try updated release L3.0.101_4.1.1

https://www.nxp.com/webapp/Download?colCode=L3.0.101_4.1.1_SOURCE_BSP&appType=license&locati... 

note, that bsp is very old and not more supported (no additional updates/improvements/fixes are provided),

so please try latest described on

i.MX 6 / i.MX 7 Series Software and Development Tool|NXP 

Best regards
igor

0 Kudos
255 Views
victorhuang
Contributor II

Hi,igor

Thanks for your advice.I'm sorry for that I can't update this bsp.
When error occured,all USB can't be enumerate.Then I reset the USB PHY controller,it works fine now.

Thanks & Regards
Victor

View solution in original post

0 Kudos