<?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>LPC MicrocontrollersのトピックSDK 2.5.0 USB0 host ctrl:INT IN false positive on STALL</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/SDK-2-5-0-USB0-host-ctrl-INT-IN-false-positive-on-STALL/m-p/872660#M34816</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px; color: #51626f; background: white; font-family: 'courier new', courier, monospace;"&gt;The USB stack invokes the transfer callback status &lt;EM&gt;kStatus_USB_TransferStall&lt;/EM&gt; when the device does not actually answer IN token with STALL at transport. This causes our application to fail and to enter fault recovery when it should not.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px; font-family: 'courier new', courier, monospace;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px; font-family: 'courier new', courier, monospace;"&gt;I reproduced this issue with SDK example &lt;EM&gt;keyboard2mouse_bm;&amp;nbsp;&lt;/EM&gt;So I do believe this is a bug in the SDK.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px; font-family: 'courier new', courier, monospace;"&gt;I added code (in blue below) to &lt;EM&gt;host_keyboard.c::USB_HostHidInCallBack()&lt;/EM&gt; to break into the debugger when the cbf is invoked with &lt;SPAN style="color: #51626f; background: white;"&gt;&lt;EM&gt;kStatus_USB_TransferStall&lt;/EM&gt;. I run a USB analyzer concurrently with the repro running. I stopped the trace as soon as the BP hits. It usually takes a couple of minutes for the BP to hit; it re-occurs periodically after that (~minutes) once you resume execution. I tried with different brands of Keyboard and the repro always hit the BP.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px; color: #51626f; background: white; font-family: 'courier new', courier, monospace;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px; color: #51626f; background: white; font-family: 'courier new', courier, monospace;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_5.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/63441iEEF40A88729897A1/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_5.png" alt="pastedImage_5.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px; color: #51626f; background: white; font-family: 'courier new', courier, monospace;"&gt;Please see attached trace &lt;EM&gt;AcquisitionFile0000.ufo&lt;/EM&gt;: when the BP is hit: the device only sent NAK tokens on interrupt in but the USB stack does report a STALL.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px; color: #51626f; background: white; font-family: 'courier new', courier, monospace;"&gt;Please advise.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Mar 2019 00:31:45 GMT</pubDate>
    <dc:creator>belmontbob59</dc:creator>
    <dc:date>2019-03-20T00:31:45Z</dc:date>
    <item>
      <title>SDK 2.5.0 USB0 host ctrl:INT IN false positive on STALL</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SDK-2-5-0-USB0-host-ctrl-INT-IN-false-positive-on-STALL/m-p/872660#M34816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px; color: #51626f; background: white; font-family: 'courier new', courier, monospace;"&gt;The USB stack invokes the transfer callback status &lt;EM&gt;kStatus_USB_TransferStall&lt;/EM&gt; when the device does not actually answer IN token with STALL at transport. This causes our application to fail and to enter fault recovery when it should not.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px; font-family: 'courier new', courier, monospace;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px; font-family: 'courier new', courier, monospace;"&gt;I reproduced this issue with SDK example &lt;EM&gt;keyboard2mouse_bm;&amp;nbsp;&lt;/EM&gt;So I do believe this is a bug in the SDK.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px; font-family: 'courier new', courier, monospace;"&gt;I added code (in blue below) to &lt;EM&gt;host_keyboard.c::USB_HostHidInCallBack()&lt;/EM&gt; to break into the debugger when the cbf is invoked with &lt;SPAN style="color: #51626f; background: white;"&gt;&lt;EM&gt;kStatus_USB_TransferStall&lt;/EM&gt;. I run a USB analyzer concurrently with the repro running. I stopped the trace as soon as the BP hits. It usually takes a couple of minutes for the BP to hit; it re-occurs periodically after that (~minutes) once you resume execution. I tried with different brands of Keyboard and the repro always hit the BP.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px; color: #51626f; background: white; font-family: 'courier new', courier, monospace;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px; color: #51626f; background: white; font-family: 'courier new', courier, monospace;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_5.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/63441iEEF40A88729897A1/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_5.png" alt="pastedImage_5.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px; color: #51626f; background: white; font-family: 'courier new', courier, monospace;"&gt;Please see attached trace &lt;EM&gt;AcquisitionFile0000.ufo&lt;/EM&gt;: when the BP is hit: the device only sent NAK tokens on interrupt in but the USB stack does report a STALL.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px; color: #51626f; background: white; font-family: 'courier new', courier, monospace;"&gt;Please advise.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Mar 2019 00:31:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SDK-2-5-0-USB0-host-ctrl-INT-IN-false-positive-on-STALL/m-p/872660#M34816</guid>
      <dc:creator>belmontbob59</dc:creator>
      <dc:date>2019-03-20T00:31:45Z</dc:date>
    </item>
    <item>
      <title>Re: SDK 2.5.0 USB0 host ctrl:INT IN false positive on STALL</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SDK-2-5-0-USB0-host-ctrl-INT-IN-false-positive-on-STALL/m-p/872661#M34817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bob,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tested this in Host Hid Mouse Keyboard example as you suggested and I have the same behaviour occurs when I add your code in host_keyboard.c. However, I did the same using mouse and I didn’t see any issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The device may be sending the stall after a connection timeout in order to keep the connection with the host.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Felipe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Mar 2019 22:23:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SDK-2-5-0-USB0-host-ctrl-INT-IN-false-positive-on-STALL/m-p/872661#M34817</guid>
      <dc:creator>FelipeGarcia</dc:creator>
      <dc:date>2019-03-25T22:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: SDK 2.5.0 USB0 host ctrl:INT IN false positive on STALL</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SDK-2-5-0-USB0-host-ctrl-INT-IN-false-positive-on-STALL/m-p/872662#M34818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;"&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'times new roman', times, serif;"&gt;The device may be sending the stall after a connection timeout in order to keep the connection with the host.&lt;/SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;With all due respect, you are not making any sense. How can the device send a STALL w/o the USB trace capturing it ?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;Once the BP hits it means that a STALL has occurred, yet the trace does not exhibit any STALL but NAK from the device's interrupt EP. Therefore there is a bug either in the USB stack or the MCU host controller itself.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;Please advise.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Mar 2019 22:40:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SDK-2-5-0-USB0-host-ctrl-INT-IN-false-positive-on-STALL/m-p/872662#M34818</guid>
      <dc:creator>belmontbob59</dc:creator>
      <dc:date>2019-03-25T22:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: SDK 2.5.0 USB0 host ctrl:INT IN false positive on STALL</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SDK-2-5-0-USB0-host-ctrl-INT-IN-false-positive-on-STALL/m-p/872663#M34819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the misunderstanding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will advise your issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Felipe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Mar 2019 22:51:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SDK-2-5-0-USB0-host-ctrl-INT-IN-false-positive-on-STALL/m-p/872663#M34819</guid>
      <dc:creator>FelipeGarcia</dc:creator>
      <dc:date>2019-03-25T22:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: SDK 2.5.0 USB0 host ctrl:INT IN false positive on STALL</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SDK-2-5-0-USB0-host-ctrl-INT-IN-false-positive-on-STALL/m-p/872664#M34820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;Any update on this matter?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Apr 2019 21:55:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SDK-2-5-0-USB0-host-ctrl-INT-IN-false-positive-on-STALL/m-p/872664#M34820</guid>
      <dc:creator>belmontbob59</dc:creator>
      <dc:date>2019-04-03T21:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: SDK 2.5.0 USB0 host ctrl:INT IN false positive on STALL</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SDK-2-5-0-USB0-host-ctrl-INT-IN-false-positive-on-STALL/m-p/872665#M34821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bob,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have sent your comments to the USB team. Thanks again for reporting this issues.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Felipe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Apr 2019 22:05:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SDK-2-5-0-USB0-host-ctrl-INT-IN-false-positive-on-STALL/m-p/872665#M34821</guid>
      <dc:creator>FelipeGarcia</dc:creator>
      <dc:date>2019-04-05T22:05:12Z</dc:date>
    </item>
  </channel>
</rss>

