<?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: Endpoint0 missing OUT data or out of sync, LPC3152 HS Device in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Endpoint0-missing-OUT-data-or-out-of-sync-LPC3152-HS-Device/m-p/523532#M6168</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Marks on Sat Jan 14 08:52:03 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I think i have solved the issue, still need to test some more,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When USB_EndPoint0() gets a USB_EVT_SETUP,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;it immediately parse the packet without reading the OUT data,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and i have some class requests that need the data,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;so what i've done is, if the direction is host to device prime the OUT Endpoint,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and then in the function that handles the class request Read the endpoint.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This seems to work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 16:45:09 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T16:45:09Z</dc:date>
    <item>
      <title>Endpoint0 missing OUT data or out of sync, LPC3152 HS Device</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Endpoint0-missing-OUT-data-or-out-of-sync-LPC3152-HS-Device/m-p/523531#M6167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Marks on Fri Jan 13 16:07:34 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I having an issue with missing or out of sync OUT data on Endpoint0,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I think it's a matter of the priming of the OUT endpoint that is not correct,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;but i am not sure how to do this correctly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The Device to Host works fine with the IN endpoint0,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;but in Host to Device the SetupPacket is correct but if there is OUT data,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;it's either missing or belonging to the previous SetupPacket,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;looking at the USB Analyzer trace everything is correct except for the OUT handling&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i have attached a image.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:45:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Endpoint0-missing-OUT-data-or-out-of-sync-LPC3152-HS-Device/m-p/523531#M6167</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:45:09Z</dc:date>
    </item>
    <item>
      <title>Re: Endpoint0 missing OUT data or out of sync, LPC3152 HS Device</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Endpoint0-missing-OUT-data-or-out-of-sync-LPC3152-HS-Device/m-p/523532#M6168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Marks on Sat Jan 14 08:52:03 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I think i have solved the issue, still need to test some more,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When USB_EndPoint0() gets a USB_EVT_SETUP,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;it immediately parse the packet without reading the OUT data,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and i have some class requests that need the data,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;so what i've done is, if the direction is host to device prime the OUT Endpoint,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and then in the function that handles the class request Read the endpoint.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This seems to work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:45:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Endpoint0-missing-OUT-data-or-out-of-sync-LPC3152-HS-Device/m-p/523532#M6168</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:45:09Z</dc:date>
    </item>
  </channel>
</rss>

