<?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: IMX1050RT USB Multiple Interrupts Stop Working</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMX1050RT-USB-Multiple-Interrupts-Stop-Working/m-p/930713#M3798</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi BENJAMIN:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think multiple interrupts will stop, because your system is in a debugger session, debugger will halt MCU.&lt;/P&gt;&lt;P&gt;I would suggest you check whether the transfer call back is called correctly. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Aug 2019 08:02:30 GMT</pubDate>
    <dc:creator>danielchen</dc:creator>
    <dc:date>2019-08-12T08:02:30Z</dc:date>
    <item>
      <title>IMX1050RT USB Multiple Interrupts Stop Working</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMX1050RT-USB-Multiple-Interrupts-Stop-Working/m-p/930712#M3797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm creating a FreeRTOS app using the USB host drivers in MCUXpresso on the IMX1050RT, and I'm encountering a frustrating issue.&lt;/P&gt;&lt;P&gt;If multiple transaction interrupts occur before the ISR can service them, then transaction interrupts stop working completely.&lt;/P&gt;&lt;P&gt;According to the USB API, the USB_OTGIRQnHandler should call USB_HostEhciIsrFunction, and I can see in the debugger here that normally, the interrupt fires and USBSTS bit 1 is high when a transaction is complete.&lt;/P&gt;&lt;P&gt;However, if I pause the debugger, and send a few messages over USB, once the ISR finishes, USBSTS bit 1 never&amp;nbsp;goes high again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's the relevant part of USB_HostEhciIsrFunction, from esb_host_ehci.c. Has anyone encountered something similar?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;interruptStatus &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; ehciInstance&lt;SPAN class="operator token"&gt;-&amp;gt;&lt;/SPAN&gt;ehciIpBase&lt;SPAN class="operator token"&gt;-&amp;gt;&lt;/SPAN&gt;USBSTS&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
    interruptStatus &lt;SPAN class="operator token"&gt;&amp;amp;&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; ehciInstance&lt;SPAN class="operator token"&gt;-&amp;gt;&lt;/SPAN&gt;ehciIpBase&lt;SPAN class="operator token"&gt;-&amp;gt;&lt;/SPAN&gt;USBINTR&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
    &lt;SPAN class="keyword token"&gt;while&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;interruptStatus&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;/* there are usb interrupts */&lt;/SPAN&gt;
    &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
        ehciInstance&lt;SPAN class="operator token"&gt;-&amp;gt;&lt;/SPAN&gt;ehciIpBase&lt;SPAN class="operator token"&gt;-&amp;gt;&lt;/SPAN&gt;USBSTS &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; interruptStatus&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;/* clear interrupt */&lt;/SPAN&gt;

        &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;interruptStatus &lt;SPAN class="operator token"&gt;&amp;amp;&lt;/SPAN&gt; USBHS_USBSTS_SRI_MASK&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;/* SOF interrupt */&lt;/SPAN&gt;
        &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
        &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;

        &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;interruptStatus &lt;SPAN class="operator token"&gt;&amp;amp;&lt;/SPAN&gt; USBHS_USBSTS_SEI_MASK&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;/* system error interrupt */&lt;/SPAN&gt;
        &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
        &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;

        &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;interruptStatus &lt;SPAN class="operator token"&gt;&amp;amp;&lt;/SPAN&gt; USBHS_USBSTS_UI_MASK&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;||&lt;/SPAN&gt;
            &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;interruptStatus &lt;SPAN class="operator token"&gt;&amp;amp;&lt;/SPAN&gt; USBHS_USBSTS_UEI_MASK&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;/* USB interrupt or USB error interrupt */&lt;/SPAN&gt;
        &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
            &lt;SPAN class="token function"&gt;USB_OsaEventSet&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;ehciInstance&lt;SPAN class="operator token"&gt;-&amp;gt;&lt;/SPAN&gt;taskEventHandle&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; EHCI_TASK_EVENT_TRANSACTION_DONE&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
        &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jul 2019 10:33:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMX1050RT-USB-Multiple-Interrupts-Stop-Working/m-p/930712#M3797</guid>
      <dc:creator>benolayinka</dc:creator>
      <dc:date>2019-07-02T10:33:28Z</dc:date>
    </item>
    <item>
      <title>Re: IMX1050RT USB Multiple Interrupts Stop Working</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMX1050RT-USB-Multiple-Interrupts-Stop-Working/m-p/930713#M3798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi BENJAMIN:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think multiple interrupts will stop, because your system is in a debugger session, debugger will halt MCU.&lt;/P&gt;&lt;P&gt;I would suggest you check whether the transfer call back is called correctly. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Aug 2019 08:02:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMX1050RT-USB-Multiple-Interrupts-Stop-Working/m-p/930713#M3798</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2019-08-12T08:02:30Z</dc:date>
    </item>
  </channel>
</rss>

