<?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のトピックRe: In Mass storage host, yet times when we remove the device enumeration starts</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/In-Mass-storage-host-yet-times-when-we-remove-the-device/m-p/912486#M36493</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From the same post I mentioned in my previous reply it is mentioned to call Stat = STA_NOINIT; in &lt;STRONG&gt;EVENT_USB_Host_DeviceUnattached&lt;/STRONG&gt;. You need to do this because the disk is never sent back to Not Initialize when unattaching the device.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tested this myself in LPCXpresso4367 and I was able to plug and unplugged the device more than once.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope if helps!&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;P&gt;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Aug 2019 17:10:14 GMT</pubDate>
    <dc:creator>FelipeGarcia</dc:creator>
    <dc:date>2019-08-01T17:10:14Z</dc:date>
    <item>
      <title>In Mass storage host, yet times when we remove the device enumeration starts</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/In-Mass-storage-host-yet-times-when-we-remove-the-device/m-p/912483#M36490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Our system has LPC4357, and we are using USB1 as mass storage host. We are using your mass storage host driver. Yet times when we remove the USB disk , USB_Host_Enumerate (in host.c) gets kicked off from the interrupt handler. Any idea?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jul 2019 15:12:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/In-Mass-storage-host-yet-times-when-we-remove-the-device/m-p/912483#M36490</guid>
      <dc:creator>ssudhir</dc:creator>
      <dc:date>2019-07-26T15:12:01Z</dc:date>
    </item>
    <item>
      <title>Re: In Mass storage host, yet times when we remove the device enumeration starts</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/In-Mass-storage-host-yet-times-when-we-remove-the-device/m-p/912484#M36491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I recommend you to check the following thread. Our drivers were implemented to detect the device only the first time it is attached, in the below community post it is shown a way to prevent this.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/422226"&gt;LPC43XX USB HOST Mass storage class - drive fails the second time it is plugged in&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps!&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;P&gt;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jul 2019 16:47:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/In-Mass-storage-host-yet-times-when-we-remove-the-device/m-p/912484#M36491</guid>
      <dc:creator>FelipeGarcia</dc:creator>
      <dc:date>2019-07-30T16:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: In Mass storage host, yet times when we remove the device enumeration starts</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/In-Mass-storage-host-yet-times-when-we-remove-the-device/m-p/912485#M36492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks  Felipe,&lt;/P&gt;&lt;P&gt;We had fixed that problem a while ago. Right now the problem seems to in&lt;/P&gt;&lt;P&gt;pipe . Yet times after removing once and inserting, it seems to get stuck&lt;/P&gt;&lt;P&gt;or spend a lot of time in forever loop in Pipe_WaitUntilReady - pipe.c Any&lt;/P&gt;&lt;P&gt;idea?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jul 2019 17:52:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/In-Mass-storage-host-yet-times-when-we-remove-the-device/m-p/912485#M36492</guid>
      <dc:creator>ssudhir</dc:creator>
      <dc:date>2019-07-31T17:52:04Z</dc:date>
    </item>
    <item>
      <title>Re: In Mass storage host, yet times when we remove the device enumeration starts</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/In-Mass-storage-host-yet-times-when-we-remove-the-device/m-p/912486#M36493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From the same post I mentioned in my previous reply it is mentioned to call Stat = STA_NOINIT; in &lt;STRONG&gt;EVENT_USB_Host_DeviceUnattached&lt;/STRONG&gt;. You need to do this because the disk is never sent back to Not Initialize when unattaching the device.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tested this myself in LPCXpresso4367 and I was able to plug and unplugged the device more than once.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope if helps!&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;P&gt;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Aug 2019 17:10:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/In-Mass-storage-host-yet-times-when-we-remove-the-device/m-p/912486#M36493</guid>
      <dc:creator>FelipeGarcia</dc:creator>
      <dc:date>2019-08-01T17:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: In Mass storage host, yet times when we remove the device enumeration starts</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/In-Mass-storage-host-yet-times-when-we-remove-the-device/m-p/912487#M36494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks  Felipe. We had similar logic, but now changed to the exact logic as&lt;/P&gt;&lt;P&gt;you mentioned. We can reinsert. However at times, when we remove the disk&lt;/P&gt;&lt;P&gt;we get attacked interrupt. and yet times the system gets stuck in the&lt;/P&gt;&lt;P&gt;forever loop in  Pipe_WaitUntilReady - pipe.c  or PipehandleParse in EHCI.c.&lt;/P&gt;&lt;P&gt;Any insight would be great.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Aug 2019 17:56:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/In-Mass-storage-host-yet-times-when-we-remove-the-device/m-p/912487#M36494</guid>
      <dc:creator>ssudhir</dc:creator>
      <dc:date>2019-08-01T17:56:55Z</dc:date>
    </item>
  </channel>
</rss>

