<?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中的主题 LPCUSBLIB Stuck in infinite loop inside Pipe_WaitUntilReady</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPCUSBLIB-Stuck-in-infinite-loop-inside-Pipe-WaitUntilReady/m-p/523495#M6131</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by briching on Tue Mar 15 12:41:10 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;After porting the example contained in "lpcusblib_MassStorageHost" in lpcopen, with debug macro "LPCUSBlib_DEBUG" turned on, my processor gets stuck in an infinite loop inside of Pipe_WaitUntilReady.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My Setup:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chip: LPC4357&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;USB Mass Storage on USB1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;C++ project (directly compiling in lpcusblib, NO static library dependencies -- issues have been raised in the forums about how the IDE reports syntax errors in the LPCUSBLIB source code, but still compiles)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Debug console output:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
Device Attached on port 1

Mass Storage Device Enumerated.
HcdDataTransfer
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .../lpcusblib/Drivers/USB/Core/HCD/EHCI/EHCI.c: 336
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Evaluated HCD_STATUS = 31
HcdGetPipeStatus
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .../lpcusblib/Drivers/USB/Core/HCD/EHCI/EHCI.c: 379
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Evaluated HCD_STATUS = 31
HcdGetPipeStatus... (repeated infinitely)
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The HCD_STATUS of value 31 decodes to "HCD_STATUS_PIPEHANDLE_INVALID"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have absolutely no idea why the pipe handle comes back as invalid.&amp;nbsp; I am using RAM5 as my USBRAM_SECTION which aliases to RamAHB32, and nothing else in my project is using this bank.&amp;nbsp; Has anyone run into a situation like this before and can offer some help?&amp;nbsp; &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 16:43:50 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T16:43:50Z</dc:date>
    <item>
      <title>LPCUSBLIB Stuck in infinite loop inside Pipe_WaitUntilReady</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPCUSBLIB-Stuck-in-infinite-loop-inside-Pipe-WaitUntilReady/m-p/523495#M6131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by briching on Tue Mar 15 12:41:10 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;After porting the example contained in "lpcusblib_MassStorageHost" in lpcopen, with debug macro "LPCUSBlib_DEBUG" turned on, my processor gets stuck in an infinite loop inside of Pipe_WaitUntilReady.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My Setup:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chip: LPC4357&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;USB Mass Storage on USB1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;C++ project (directly compiling in lpcusblib, NO static library dependencies -- issues have been raised in the forums about how the IDE reports syntax errors in the LPCUSBLIB source code, but still compiles)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Debug console output:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
Device Attached on port 1

Mass Storage Device Enumerated.
HcdDataTransfer
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .../lpcusblib/Drivers/USB/Core/HCD/EHCI/EHCI.c: 336
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Evaluated HCD_STATUS = 31
HcdGetPipeStatus
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .../lpcusblib/Drivers/USB/Core/HCD/EHCI/EHCI.c: 379
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Evaluated HCD_STATUS = 31
HcdGetPipeStatus... (repeated infinitely)
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The HCD_STATUS of value 31 decodes to "HCD_STATUS_PIPEHANDLE_INVALID"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have absolutely no idea why the pipe handle comes back as invalid.&amp;nbsp; I am using RAM5 as my USBRAM_SECTION which aliases to RamAHB32, and nothing else in my project is using this bank.&amp;nbsp; Has anyone run into a situation like this before and can offer some help?&amp;nbsp; &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:43:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPCUSBLIB-Stuck-in-infinite-loop-inside-Pipe-WaitUntilReady/m-p/523495#M6131</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: LPCUSBLIB Stuck in infinite loop inside Pipe_WaitUntilReady</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPCUSBLIB-Stuck-in-infinite-loop-inside-Pipe-WaitUntilReady/m-p/523496#M6132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by iemc on Thu Apr 28 07:20:18 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I ran into the same problem with the LPCUSBlib_MassStorageHost example on a LPC4357 as well. I have not yet found a solution sadly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In my case I could insert a flash drive into USB1 and read/write files on it. My problem was when I unplugged the flash drive and then re-inserted it. The code would get stuck in an infinite loop as you say.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've been unable to work on it again until now.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;here is a link to my original post: &lt;/SPAN&gt;&lt;A href="http://https://www.lpcware.com/content/forum/lpc43xx-usb-host-mass-storage-class-drive-fails-second-time-it-plugged"&gt;https://www.lpcware.com/content/forum/lpc43xx-usb-host-mass-storage-class-drive-fails-second-time-it-plugged&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:43:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPCUSBLIB-Stuck-in-infinite-loop-inside-Pipe-WaitUntilReady/m-p/523496#M6132</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:43:51Z</dc:date>
    </item>
    <item>
      <title>Re: LPCUSBLIB Stuck in infinite loop inside Pipe_WaitUntilReady</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPCUSBLIB-Stuck-in-infinite-loop-inside-Pipe-WaitUntilReady/m-p/523497#M6133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by briching on Thu Apr 28 10:43:15 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the info iemc.&amp;nbsp; I'll update this thread if I find a solution.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:43:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPCUSBLIB-Stuck-in-infinite-loop-inside-Pipe-WaitUntilReady/m-p/523497#M6133</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:43:51Z</dc:date>
    </item>
    <item>
      <title>Re: LPCUSBLIB Stuck in infinite loop inside Pipe_WaitUntilReady</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPCUSBLIB-Stuck-in-infinite-loop-inside-Pipe-WaitUntilReady/m-p/523498#M6134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;bump&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Jun 2016 01:05:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPCUSBLIB-Stuck-in-infinite-loop-inside-Pipe-WaitUntilReady/m-p/523498#M6134</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-19T01:05:17Z</dc:date>
    </item>
  </channel>
</rss>

