<?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>i.MX RT Crossover MCUsのトピックRe: Detecting a USB Disconnection imx1050</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Detecting-a-USB-Disconnection-imx1050/m-p/1751065#M27419</link>
    <description>&lt;P&gt;Hi Kan,&lt;/P&gt;&lt;P&gt;I'm not using the most recent SDK, but I definitely downloaded it after this post was made. I will try the latest however just in case.&lt;/P&gt;&lt;P&gt;What I'm expecting is that I will receive a USB interrupt when the USB is disconnected/unplugged once I have implemented the suggestion in the linked forum post. However this does not happen and I can't understand why as I am receiving interrupts for other USB events.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;</description>
    <pubDate>Thu, 02 Nov 2023 10:51:22 GMT</pubDate>
    <dc:creator>nick_j</dc:creator>
    <dc:date>2023-11-02T10:51:22Z</dc:date>
    <item>
      <title>Detecting a USB Disconnection imx1050</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Detecting-a-USB-Disconnection-imx1050/m-p/1747937#M27346</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to detect when a USB is disconnected from my custom board using an imxRT1050. I have seen other forum posts that mention to use the&amp;nbsp;USB_DEVICE_CONFIG_DETACH_ENABLE flag in the USB device config (&lt;A href="https://community.nxp.com/t5/i-MX-RT/What-is-the-best-way-to-detect-attaching-and-detaching-of-an-usb/m-p/1086414" target="_blank"&gt;https://community.nxp.com/t5/i-MX-RT/What-is-the-best-way-to-detect-attaching-and-detaching-of-an-usb/m-p/1086414&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;Looking at the USB_1OTGSC register it does show that the BSVIE (B Session Valid Interrupt Enable) has been set, however the interrupt doesn't seem to trigger. I know this as I will get interrupts when I plug the USB in, but not get one when I pull it out.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only way I've managed to detect it is by polling the&amp;nbsp;SUSP (Suspend) bit within the&amp;nbsp;USB_1PORTSC1 register the tells me whether or not the connection is suspended. I should be able to get this to work. but I would rather use the dedicated disconnection interrupt as it doesn't involve polling the register.&lt;/P&gt;&lt;P&gt;Any ideas as to why the B Session End Interrupt may not be triggering?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;</description>
      <pubDate>Fri, 27 Oct 2023 15:46:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Detecting-a-USB-Disconnection-imx1050/m-p/1747937#M27346</guid>
      <dc:creator>nick_j</dc:creator>
      <dc:date>2023-10-27T15:46:45Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting a USB Disconnection imx1050</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Detecting-a-USB-Disconnection-imx1050/m-p/1749314#M27363</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/178835"&gt;@nick_j&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you mean you are using the USB stack from the latest SDK with the solution of&amp;nbsp;&lt;A href="https://community.nxp.com/t5/i-MX-RT/What-is-the-best-way-to-detect-attaching-and-detaching-of-an-usb/m-p/1086414" target="_blank"&gt;https://community.nxp.com/t5/i-MX-RT/What-is-the-best-way-to-detect-attaching-and-detaching-of-an-usb/m-p/1086414&lt;/A&gt;&amp;nbsp;, but it doesn't work? Please kindly clarify.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Kan&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2023 08:15:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Detecting-a-USB-Disconnection-imx1050/m-p/1749314#M27363</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2023-10-31T08:15:03Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting a USB Disconnection imx1050</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Detecting-a-USB-Disconnection-imx1050/m-p/1751065#M27419</link>
      <description>&lt;P&gt;Hi Kan,&lt;/P&gt;&lt;P&gt;I'm not using the most recent SDK, but I definitely downloaded it after this post was made. I will try the latest however just in case.&lt;/P&gt;&lt;P&gt;What I'm expecting is that I will receive a USB interrupt when the USB is disconnected/unplugged once I have implemented the suggestion in the linked forum post. However this does not happen and I can't understand why as I am receiving interrupts for other USB events.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2023 10:51:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Detecting-a-USB-Disconnection-imx1050/m-p/1751065#M27419</guid>
      <dc:creator>nick_j</dc:creator>
      <dc:date>2023-11-02T10:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting a USB Disconnection imx1050</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Detecting-a-USB-Disconnection-imx1050/m-p/1751607#M27433</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/178835"&gt;@nick_j&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is wake up on disconnect event for this use case, please kindly refer to the following for details.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kan_Li_0-1698989332605.png" style="width: 689px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/248292i64499B26A91B37BA/image-dimensions/689x81?v=v2" width="689" height="81" role="button" title="Kan_Li_0-1698989332605.png" alt="Kan_Li_0-1698989332605.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Kan_Li_0-1698989332605.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You may refer to "42.4.3.2 Wake-Up Events" in &lt;A href="https://www.nxp.com/webapp/Download?colCode=IMXRT1050RM" target="_blank"&gt;https://www.nxp.com/webapp/Download?colCode=IMXRT1050RM&lt;/A&gt;&amp;nbsp;for more details.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have a great day,&lt;BR /&gt;Kan&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;BR /&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2023 05:30:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Detecting-a-USB-Disconnection-imx1050/m-p/1751607#M27433</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2023-11-03T05:30:07Z</dc:date>
    </item>
  </channel>
</rss>

