<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: NXP iMX8MP: recover from USB over-current condition in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/NXP-iMX8MP-recover-from-USB-over-current-condition/m-p/1904889#M226039</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;You can find that information on&lt;A href="https://www.nxp.com/webapp/Download?colCode=IMX8MPRM" target="_self"&gt; reference manual&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;Best regards.&lt;/P&gt;</description>
    <pubDate>Tue, 09 Jul 2024 20:09:51 GMT</pubDate>
    <dc:creator>JorgeCas</dc:creator>
    <dc:date>2024-07-09T20:09:51Z</dc:date>
    <item>
      <title>NXP iMX8MP: recover from USB over-current condition</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/NXP-iMX8MP-recover-from-USB-over-current-condition/m-p/1898305#M225813</link>
      <description>&lt;P&gt;Dear NXP support,&lt;/P&gt;&lt;P&gt;is there any known SW way to recover from USB over-current condition ?&lt;/P&gt;&lt;P&gt;Trying the following suggestions does not help&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://askubuntu.com/questions/645/how-do-you-reset-a-usb-device-from-the-command-line" target="_blank"&gt;https://askubuntu.com/questions/645/how-do-you-reset-a-usb-device-from-the-command-line&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Best Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Pier&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2024 10:19:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/NXP-iMX8MP-recover-from-USB-over-current-condition/m-p/1898305#M225813</guid>
      <dc:creator>pierluigi_p</dc:creator>
      <dc:date>2024-07-03T10:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: NXP iMX8MP: recover from USB over-current condition</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/NXP-iMX8MP-recover-from-USB-over-current-condition/m-p/1899757#M225902</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;To reset any USB device/module, one can refer to section 4.9.8 How to Close the USB Child Device Power from &lt;A href="https://www.nxp.com/docs/en/reference-manual/IMX_REFERENCE_MANUAL.pdf" target="_self"&gt;Linux reference manual&lt;/A&gt;.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;echo auto &amp;gt; /sys/bus/usb/devices/1-1/power/control //close the power

echo on &amp;gt; /sys/bus/usb/devices/1-1/power/control //re-enable the device&lt;/LI-CODE&gt;
&lt;P&gt;Best regards.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jul 2024 18:51:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/NXP-iMX8MP-recover-from-USB-over-current-condition/m-p/1899757#M225902</guid>
      <dc:creator>JorgeCas</dc:creator>
      <dc:date>2024-07-04T18:51:19Z</dc:date>
    </item>
    <item>
      <title>Re: NXP iMX8MP: recover from USB over-current condition</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/NXP-iMX8MP-recover-from-USB-over-current-condition/m-p/1901053#M225959</link>
      <description>&lt;P&gt;Hi, Thank you for your response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is that once the usb is "dead", this command no longer works.&lt;/P&gt;&lt;P&gt;(file not found).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only thing that helps at that point is to use the reboot command.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sun, 07 Jul 2024 07:19:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/NXP-iMX8MP-recover-from-USB-over-current-condition/m-p/1901053#M225959</guid>
      <dc:creator>Shay1</dc:creator>
      <dc:date>2024-07-07T07:19:55Z</dc:date>
    </item>
    <item>
      <title>Re: NXP iMX8MP: recover from USB over-current condition</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/NXP-iMX8MP-recover-from-USB-over-current-condition/m-p/1902440#M225989</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Maybe could be helpful control the device using the "Global USB2 PHY Configuration Register (GUSB2PHYCFG)" by setting and resetting bit 31[PHYSOFTRST] or use USB Command Register (USBCMD) bit7[LHCRST].&lt;/P&gt;&lt;P&gt;The next 2 registers bits are able to put USB in reset mode.&lt;/P&gt;&lt;P&gt;- Global USB 3.0 PIPE Control Register (GUSB3PIPECTL) bit31[PHYSoftRst].&lt;/P&gt;&lt;P&gt;- Global Core Control Register (GCTL) bit11[CORESOFTRESET] .&lt;/P&gt;&lt;P&gt;Also, there is a PHY control register in the section "11.2.5.2 USB3_GLUE register descriptions". You can use "PHY Controller 1 (PHY_CTRL1)" register bit0 [PHY_RESET].&lt;/P&gt;&lt;P&gt;It is not recommended to change this bitfields "manually", since these bits are all interdependent and changing any of the bits we can expect a change in other bits depending on that.&lt;/P&gt;&lt;P&gt;It is prefer to take a reference of the predefined sequence that should be followed to reset or power the USB. Please refer to "Table 11-3. Power-On or Soft Reset Register Initialization" of reference manual for that sequence.&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 14:49:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/NXP-iMX8MP-recover-from-USB-over-current-condition/m-p/1902440#M225989</guid>
      <dc:creator>JorgeCas</dc:creator>
      <dc:date>2024-07-08T14:49:19Z</dc:date>
    </item>
    <item>
      <title>Re: NXP iMX8MP: recover from USB over-current condition</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/NXP-iMX8MP-recover-from-USB-over-current-condition/m-p/1904339#M226032</link>
      <description>&lt;P&gt;thank you&lt;BR /&gt;Where can I find the memory map to locate the memory addresses for these registers? Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2024 12:31:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/NXP-iMX8MP-recover-from-USB-over-current-condition/m-p/1904339#M226032</guid>
      <dc:creator>Shay1</dc:creator>
      <dc:date>2024-07-09T12:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: NXP iMX8MP: recover from USB over-current condition</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/NXP-iMX8MP-recover-from-USB-over-current-condition/m-p/1904889#M226039</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;You can find that information on&lt;A href="https://www.nxp.com/webapp/Download?colCode=IMX8MPRM" target="_self"&gt; reference manual&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;Best regards.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2024 20:09:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/NXP-iMX8MP-recover-from-USB-over-current-condition/m-p/1904889#M226039</guid>
      <dc:creator>JorgeCas</dc:creator>
      <dc:date>2024-07-09T20:09:51Z</dc:date>
    </item>
    <item>
      <title>Re: NXP iMX8MP: recover from USB over-current condition</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/NXP-iMX8MP-recover-from-USB-over-current-condition/m-p/1917012#M226594</link>
      <description>&lt;P&gt;Hi, Thank you for your elaborate response.&lt;/P&gt;&lt;P&gt;I have tried all the resets you suggested.&lt;/P&gt;&lt;P&gt;They indeed reset the USB when it's functional, but still nothing helps me recover from this "Dead" USB scenario, except for reboot. Reset does nothing when USB is "Dead".&lt;BR /&gt;In fact, one of the times I used the reset command, one of the USBs became "Dead" (disappeared from lsusb completely), and only worked again after reboot.&lt;BR /&gt;&lt;BR /&gt;Do you have any further ideas or suggestions for solutions / workarounds for this issue, other than complete reboot?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2024 08:42:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/NXP-iMX8MP-recover-from-USB-over-current-condition/m-p/1917012#M226594</guid>
      <dc:creator>Shay1</dc:creator>
      <dc:date>2024-07-25T08:42:40Z</dc:date>
    </item>
    <item>
      <title>Re: NXP iMX8MP: recover from USB over-current condition</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/NXP-iMX8MP-recover-from-USB-over-current-condition/m-p/1917159#M226598</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I looked at&amp;nbsp;&lt;SPAN&gt;PORTSC_20 before and after this issue occurred.&lt;BR /&gt;It changed from&amp;nbsp;0x00000E03 to 0x0C000EE1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It seems that enabled/disabled bit for usb port was turned off.&lt;BR /&gt;Also Wake on Overcurrent Enable and&amp;nbsp;Wake on Disconnect Enable changed from 0 to 1.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(Also link state bits 5,6,7 changed from 0 to 1.&lt;BR /&gt;&lt;BR /&gt;Could you please help me better understand the cause for this issue, given this new information I discovered?&lt;BR /&gt;Thank you&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2024 11:54:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/NXP-iMX8MP-recover-from-USB-over-current-condition/m-p/1917159#M226598</guid>
      <dc:creator>Shay1</dc:creator>
      <dc:date>2024-07-25T11:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: NXP iMX8MP: recover from USB over-current condition</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/NXP-iMX8MP-recover-from-USB-over-current-condition/m-p/1938387#M227589</link>
      <description>Hi just checking in to see if you have any response to my latest message from a month ago.&lt;BR /&gt;Thanks</description>
      <pubDate>Thu, 22 Aug 2024 10:30:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/NXP-iMX8MP-recover-from-USB-over-current-condition/m-p/1938387#M227589</guid>
      <dc:creator>Shay1</dc:creator>
      <dc:date>2024-08-22T10:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: NXP iMX8MP: recover from USB over-current condition</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/NXP-iMX8MP-recover-from-USB-over-current-condition/m-p/1939464#M227640</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;As mentioned before is not recommended to change this bitfields "manually" since the initialization should be followed as is on documentation.&lt;/P&gt;
&lt;P&gt;The reset process I referred is functional when the USB port is not "dead" let me check if there is a way to do it with the USB totally stopped.&lt;/P&gt;
&lt;P&gt;Best regards.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2024 21:07:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/NXP-iMX8MP-recover-from-USB-over-current-condition/m-p/1939464#M227640</guid>
      <dc:creator>JorgeCas</dc:creator>
      <dc:date>2024-08-23T21:07:13Z</dc:date>
    </item>
    <item>
      <title>Re: NXP iMX8MP: recover from USB over-current condition</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/NXP-iMX8MP-recover-from-USB-over-current-condition/m-p/1940710#M227692</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;According to internal team, if you need to perform a reset for USB module, it could be performed with USBCMD.Reset = 1 as is mentioned on reference manual section 11.2.2.10 Reset generation.&lt;/P&gt;
&lt;P&gt;Best regards.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2024 22:30:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/NXP-iMX8MP-recover-from-USB-over-current-condition/m-p/1940710#M227692</guid>
      <dc:creator>JorgeCas</dc:creator>
      <dc:date>2024-08-26T22:30:21Z</dc:date>
    </item>
    <item>
      <title>Re: NXP iMX8MP: recover from USB over-current condition</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/NXP-iMX8MP-recover-from-USB-over-current-condition/m-p/1946342#M227978</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;After reading section 11.2.2.10 - reset generation I have already tried and did not help.&lt;BR /&gt;So far only full reboot recovered this issue.&lt;/P&gt;&lt;P&gt;In fact, using these reset methods makes the usb device stop functioning, until a system reboot.&lt;BR /&gt;Do you have any further suggestions for me to restore the system from this issue, other than a reboot?&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2024 14:14:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/NXP-iMX8MP-recover-from-USB-over-current-condition/m-p/1946342#M227978</guid>
      <dc:creator>Shay1</dc:creator>
      <dc:date>2024-09-03T14:14:18Z</dc:date>
    </item>
    <item>
      <title>Re: NXP iMX8MP: recover from USB over-current condition</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/NXP-iMX8MP-recover-from-USB-over-current-condition/m-p/1947445#M228043</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;According to internal team, the expected behavior of over-current condition is disable USB port completely until i.MX reset to avoid any damages in the port.&lt;/P&gt;
&lt;P&gt;Best regards.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2024 16:26:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/NXP-iMX8MP-recover-from-USB-over-current-condition/m-p/1947445#M228043</guid>
      <dc:creator>JorgeCas</dc:creator>
      <dc:date>2024-09-04T16:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: NXP iMX8MP: recover from USB over-current condition</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/NXP-iMX8MP-recover-from-USB-over-current-condition/m-p/1970053#M229459</link>
      <description>&lt;P&gt;can you please share with me the sensitivity of the overcurrent detection?&lt;/P&gt;&lt;P&gt;So that I can design a suitable protection circuit on my side.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2024 14:39:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/NXP-iMX8MP-recover-from-USB-over-current-condition/m-p/1970053#M229459</guid>
      <dc:creator>Shay1</dc:creator>
      <dc:date>2024-10-09T14:39:57Z</dc:date>
    </item>
  </channel>
</rss>

