<?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: LPC546xx - USB transfer stalled in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC546xx-USB-transfer-stalled/m-p/970077#M38404</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shuntaro,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the information. First considering that the&amp;nbsp;stall&amp;nbsp;packet indicates that the endpoint has halted, or a control pipe does not support a certain request. Essentially it is unable to transmit or receive data. I tried the example with different devices and effectively got stuck on a stall when the device was not supported. In the example it self it is configured to accept only two id's.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First I'd like to check your &lt;STRONG&gt;device descriptors&lt;/STRONG&gt; that you are using, as well as any relevant information that is printed on the terminal. This will help to find the root cause of the stall, since it is not best to clear the stall anytime it happens. The stall should only be cleared if the device is supported.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Sabina&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Jul 2019 17:00:28 GMT</pubDate>
    <dc:creator>Sabina_Bruce</dc:creator>
    <dc:date>2019-07-30T17:00:28Z</dc:date>
    <item>
      <title>LPC546xx - USB transfer stalled</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC546xx-USB-transfer-stalled/m-p/970074#M38401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem with TransferStall on USB_HostHubInterruptInCallback ( usb_host_hub_app.c ) .&lt;/P&gt;&lt;P&gt;This happens when the device is connected to the host and will not advance beyond USB_HostHubProcessPortAttach's kPortRunWaitPortResetDone.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the case of Hid, it seems to be cleared as follows.&lt;/P&gt;&lt;P&gt;usb_host_hid.c&lt;/P&gt;&lt;DIV style="color: #ffffff; background-color: #193549; font-weight: normal; font-size: 14px;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #9effff;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ff9d00;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="color: #9effff;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #e1efff;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #9effff;"&gt;status &lt;/SPAN&gt;&lt;SPAN style="color: #ff9d00;"&gt;==&lt;/SPAN&gt;&lt;SPAN style="color: #9effff;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ff628c;"&gt;kStatus_USB_TransferStall&lt;/SPAN&gt;&lt;SPAN style="color: #e1efff;"&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #9effff;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #e1efff;"&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #9effff;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff9d00;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="color: #9effff;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #e1efff;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #ffc600;"&gt;USB_HostHidClearHalt&lt;/SPAN&gt;&lt;SPAN style="color: #e1efff;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #9effff;"&gt;hidInstance&lt;/SPAN&gt;&lt;SPAN style="color: #e1efff;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #9effff;"&gt; transfer&lt;/SPAN&gt;&lt;SPAN style="color: #e1efff;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #9effff;"&gt; USB_HostHidClearInHaltCallback&lt;/SPAN&gt;&lt;SPAN style="color: #e1efff;"&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #9effff;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #e1efff;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #9effff;"&gt;USB_REQUEST_TYPE_DIR_IN &lt;/SPAN&gt;&lt;SPAN style="color: #ff9d00;"&gt;|&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #9effff;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #e1efff;"&gt;((&lt;/SPAN&gt;&lt;SPAN style="color: #80ffbb;"&gt;usb_host_pipe_t&lt;/SPAN&gt;&lt;SPAN style="color: #9effff;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ff9d00;"&gt;*&lt;/SPAN&gt;&lt;SPAN style="color: #e1efff;"&gt;)hidInstance-&amp;gt;inPipe)-&amp;gt;endpointAddress))&lt;/SPAN&gt;&lt;SPAN style="color: #9effff;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ff9d00;"&gt;==&lt;/SPAN&gt;&lt;SPAN style="color: #9effff;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ff628c;"&gt;kStatus_USB_Success&lt;/SPAN&gt;&lt;SPAN style="color: #e1efff;"&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #9effff;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #e1efff;"&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #9effff;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ffc600;"&gt;USB_HostFreeTransfer&lt;/SPAN&gt;&lt;SPAN style="color: #e1efff;"&gt;(hidInstance-&amp;gt;hostHandle,&lt;/SPAN&gt;&lt;SPAN style="color: #9effff;"&gt; transfer&lt;/SPAN&gt;&lt;SPAN style="color: #e1efff;"&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #9effff;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ff9d00;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return&lt;/SPAN&gt;&lt;SPAN style="color: #e1efff;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #9effff;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #e1efff;"&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #9effff;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #e1efff;"&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why stall occur and How do I clear stall states?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Thanks for your reply&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jul 2019 01:11:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC546xx-USB-transfer-stalled/m-p/970074#M38401</guid>
      <dc:creator>hamatron</dc:creator>
      <dc:date>2019-07-26T01:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: LPC546xx - USB transfer stalled</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC546xx-USB-transfer-stalled/m-p/970075#M38402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shuntaro,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll be more than happy assisting you with this behavior. However, in order to provide better support, can you please confirm the version of SDK you are using and the name of the example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Sabina&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jul 2019 15:22:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC546xx-USB-transfer-stalled/m-p/970075#M38402</guid>
      <dc:creator>Sabina_Bruce</dc:creator>
      <dc:date>2019-07-29T15:22:32Z</dc:date>
    </item>
    <item>
      <title>Re: LPC546xx - USB transfer stalled</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC546xx-USB-transfer-stalled/m-p/970076#M38403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sabina,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your replying and apologize for lack of infomation.&amp;nbsp;&lt;/P&gt;&lt;P&gt;SDK :&amp;nbsp; SDK_2.x_LPC54606J256 version 2.5.0&lt;/P&gt;&lt;P&gt;example : host_hid_generic_bm&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Shuntaro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jul 2019 03:18:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC546xx-USB-transfer-stalled/m-p/970076#M38403</guid>
      <dc:creator>hamatron</dc:creator>
      <dc:date>2019-07-30T03:18:56Z</dc:date>
    </item>
    <item>
      <title>Re: LPC546xx - USB transfer stalled</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC546xx-USB-transfer-stalled/m-p/970077#M38404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shuntaro,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the information. First considering that the&amp;nbsp;stall&amp;nbsp;packet indicates that the endpoint has halted, or a control pipe does not support a certain request. Essentially it is unable to transmit or receive data. I tried the example with different devices and effectively got stuck on a stall when the device was not supported. In the example it self it is configured to accept only two id's.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First I'd like to check your &lt;STRONG&gt;device descriptors&lt;/STRONG&gt; that you are using, as well as any relevant information that is printed on the terminal. This will help to find the root cause of the stall, since it is not best to clear the stall anytime it happens. The stall should only be cleared if the device is supported.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Sabina&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jul 2019 17:00:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC546xx-USB-transfer-stalled/m-p/970077#M38404</guid>
      <dc:creator>Sabina_Bruce</dc:creator>
      <dc:date>2019-07-30T17:00:28Z</dc:date>
    </item>
  </channel>
</rss>

