<?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のトピックReasonable timeout in  Mass storage class WaitForTransferComplete function</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Reasonable-timeout-in-Mass-storage-class-WaitForTransferComplete/m-p/897075#M35976</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;In Mass storage class – ehci.c file has a function called WaitForTransferComplete. This has a forever loop for bug catch and it gets invoked by HCDControlTransfer. So far it never got stuck there except today. We would like to add a reasonable timeout without compromising the normal operation. What would be the reasonable timeout?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 May 2019 13:53:20 GMT</pubDate>
    <dc:creator>ssudhir</dc:creator>
    <dc:date>2019-05-16T13:53:20Z</dc:date>
    <item>
      <title>Reasonable timeout in  Mass storage class WaitForTransferComplete function</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Reasonable-timeout-in-Mass-storage-class-WaitForTransferComplete/m-p/897075#M35976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;In Mass storage class – ehci.c file has a function called WaitForTransferComplete. This has a forever loop for bug catch and it gets invoked by HCDControlTransfer. So far it never got stuck there except today. We would like to add a reasonable timeout without compromising the normal operation. What would be the reasonable timeout?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 May 2019 13:53:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Reasonable-timeout-in-Mass-storage-class-WaitForTransferComplete/m-p/897075#M35976</guid>
      <dc:creator>ssudhir</dc:creator>
      <dc:date>2019-05-16T13:53:20Z</dc:date>
    </item>
    <item>
      <title>Re: Reasonable timeout in  Mass storage class WaitForTransferComplete function</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Reasonable-timeout-in-Mass-storage-class-WaitForTransferComplete/m-p/897076#M35977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear S.S,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you let me know which MCU are you using?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Alexis Andalon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 May 2019 15:55:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Reasonable-timeout-in-Mass-storage-class-WaitForTransferComplete/m-p/897076#M35977</guid>
      <dc:creator>Alexis_A</dc:creator>
      <dc:date>2019-05-20T15:55:35Z</dc:date>
    </item>
    <item>
      <title>Re: Reasonable timeout in  Mass storage class WaitForTransferComplete function</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Reasonable-timeout-in-Mass-storage-class-WaitForTransferComplete/m-p/897077#M35978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LPC4357&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 May 2019 11:47:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Reasonable-timeout-in-Mass-storage-class-WaitForTransferComplete/m-p/897077#M35978</guid>
      <dc:creator>ssudhir</dc:creator>
      <dc:date>2019-05-21T11:47:54Z</dc:date>
    </item>
    <item>
      <title>Re: Reasonable timeout in  Mass storage class WaitForTransferComplete function</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Reasonable-timeout-in-Mass-storage-class-WaitForTransferComplete/m-p/897078#M35979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear S S,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was checking the example and this implementation was left blank.&lt;/P&gt;&lt;P&gt;This is depending of the implementation, in this example when using the commands to communicate with the device there's the next macro:&amp;nbsp;MS_COMMAND_DATA_TIMEOUT_MS with the default value of 10000 ms.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking in other sources, the most common value is 5 seconds, so depending of your application you have a wide margin to implement this timeout.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Alexis Andalon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 May 2019 17:39:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Reasonable-timeout-in-Mass-storage-class-WaitForTransferComplete/m-p/897078#M35979</guid>
      <dc:creator>Alexis_A</dc:creator>
      <dc:date>2019-05-21T17:39:11Z</dc:date>
    </item>
    <item>
      <title>Re: Reasonable timeout in  Mass storage class WaitForTransferComplete function</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Reasonable-timeout-in-Mass-storage-class-WaitForTransferComplete/m-p/897079#M35980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alexis,&lt;/P&gt;&lt;P&gt;Thanks for the response. When it times out, should it return any specific&lt;/P&gt;&lt;P&gt;error code or anything other than  HCD_STATUS_OK is fine. Can we&lt;/P&gt;&lt;P&gt;return HCD_STATUS_TRANSFER_QUEUED?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 May 2019 18:27:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Reasonable-timeout-in-Mass-storage-class-WaitForTransferComplete/m-p/897079#M35980</guid>
      <dc:creator>ssudhir</dc:creator>
      <dc:date>2019-05-21T18:27:31Z</dc:date>
    </item>
    <item>
      <title>Re: Reasonable timeout in  Mass storage class WaitForTransferComplete function</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Reasonable-timeout-in-Mass-storage-class-WaitForTransferComplete/m-p/897080#M35981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alexix,&lt;/P&gt;&lt;P&gt;In the same file ehci.c beginning of the file there is a comment&lt;/P&gt;&lt;P&gt;// === TODO: Unify USBRAM Section ===&lt;/P&gt;&lt;P&gt;Any idea?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 May 2019 18:31:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Reasonable-timeout-in-Mass-storage-class-WaitForTransferComplete/m-p/897080#M35981</guid>
      <dc:creator>ssudhir</dc:creator>
      <dc:date>2019-05-21T18:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: Reasonable timeout in  Mass storage class WaitForTransferComplete function</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Reasonable-timeout-in-Mass-storage-class-WaitForTransferComplete/m-p/897081#M35982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear S S,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;1-.&amp;nbsp;&amp;nbsp;&amp;nbsp;Yes, you could try returning other status, only remember that the code will get stuck in the assert in the assert &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;instrucction. Maybe after the timeout you could try a software reset or module reinitialization.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;2.-&amp;nbsp;It's important when a high speed stack is being used like USB or Ethernet that the storage is in a rapid access &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;memory. That's why this buffers are&amp;nbsp;being stored in the second section of SRAM&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/83603i62CCDD28318F6B26/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Let me know if this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Alexis Andalon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 May 2019 19:59:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Reasonable-timeout-in-Mass-storage-class-WaitForTransferComplete/m-p/897081#M35982</guid>
      <dc:creator>Alexis_A</dc:creator>
      <dc:date>2019-05-22T19:59:32Z</dc:date>
    </item>
  </channel>
</rss>

