<?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: LPC1347 with control packets &amp;gt;64bytes in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1347-with-control-packets-gt-64bytes/m-p/524378#M7014</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Tsuneo on Tue Oct 22 11:54:07 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;I tried to convert it to LPC1347 ROM CDC driver but it seems that ROM driver it was not ment to handle control packets &amp;gt; USB_MAX_PACKET0 (in this case 64 bytes).&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC1347 has the same ROM-Driver interface and the same USB engine as LPC11U2x/3x&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;These topics on LPC11U2x/3x ROM-Driver are directly applied to LPC1347, too.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A custom EP0 handler for control transfer was discussed on this topic, which can exchange DATA stage of more than bMaxPacketSize0 (EP0 max packet size).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ReadEp does not work on custom USB class&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.lpcware.com%2Fcontent%2Fforum%2Freadep-does-not-work-custom-usb-class" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/content/forum/readep-does-not-work-custom-usb-class&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, beware of this bug, when the ROM-Driver is applied.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;hw-&amp;gt;Init and hw-&amp;gt;GetMemSize return seemingly incorrect values&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.lpcware.com%2Fcontent%2Fforum%2Fhw-init-and-hw-getmemsize-return-seemingly-incorrect-values" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/content/forum/hw-init-and-hw-getmemsize-return-seemingly-incorrect-values&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tsuneo&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 16:48:28 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T16:48:28Z</dc:date>
    <item>
      <title>LPC1347 with control packets &gt;64bytes</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1347-with-control-packets-gt-64bytes/m-p/524375#M7011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by alesvicic on Sun Oct 20 10:35:04 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;did anybody tried this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What do I have to change to make it work?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ales&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:48:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1347-with-control-packets-gt-64bytes/m-p/524375#M7011</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1347 with control packets &gt;64bytes</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1347-with-control-packets-gt-64bytes/m-p/524376#M7012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by rocketdawg on Tue Oct 22 08:11:20 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;USB 2.0 Full Speed can not have control packets &amp;gt; 64 bytes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;what are you trying to do?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:48:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1347-with-control-packets-gt-64bytes/m-p/524376#M7012</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:48:27Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1347 with control packets &gt;64bytes</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1347-with-control-packets-gt-64bytes/m-p/524377#M7013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by alesvicic on Tue Oct 22 08:28:08 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;this is confusing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I had an CDC RNDIS application running on LPC2368 and LPC1768 running as USB 1.1 with 8 bytes as USB_MAX_PACKET0.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried to convert it to LPC1347 ROM CDC driver but it seems that ROM driver it was not ment to handle control packets &amp;gt; USB_MAX_PACKET0 (in this case 64 bytes).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In RNDIS case the first packet you came across is CDC_GetEncpsResp with max. size of 136 bytes (IN direction).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I look at the application for LPC23xx and LPC17xx it took care about this in DataInStage function.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ales&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:48:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1347-with-control-packets-gt-64bytes/m-p/524377#M7013</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:48:27Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1347 with control packets &gt;64bytes</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1347-with-control-packets-gt-64bytes/m-p/524378#M7014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Tsuneo on Tue Oct 22 11:54:07 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;I tried to convert it to LPC1347 ROM CDC driver but it seems that ROM driver it was not ment to handle control packets &amp;gt; USB_MAX_PACKET0 (in this case 64 bytes).&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC1347 has the same ROM-Driver interface and the same USB engine as LPC11U2x/3x&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;These topics on LPC11U2x/3x ROM-Driver are directly applied to LPC1347, too.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A custom EP0 handler for control transfer was discussed on this topic, which can exchange DATA stage of more than bMaxPacketSize0 (EP0 max packet size).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ReadEp does not work on custom USB class&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.lpcware.com%2Fcontent%2Fforum%2Freadep-does-not-work-custom-usb-class" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/content/forum/readep-does-not-work-custom-usb-class&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, beware of this bug, when the ROM-Driver is applied.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;hw-&amp;gt;Init and hw-&amp;gt;GetMemSize return seemingly incorrect values&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.lpcware.com%2Fcontent%2Fforum%2Fhw-init-and-hw-getmemsize-return-seemingly-incorrect-values" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/content/forum/hw-init-and-hw-getmemsize-return-seemingly-incorrect-values&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tsuneo&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:48:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1347-with-control-packets-gt-64bytes/m-p/524378#M7014</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1347 with control packets &gt;64bytes</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1347-with-control-packets-gt-64bytes/m-p/524379#M7015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by alesvicic on Tue Oct 22 13:12:52 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Tsuneo,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thank you for this info.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I already took care about GetMemSize.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I need a custom EP0 handler as I thought.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you know can I use ROM DataInStage or do I have to customize it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ales&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:48:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1347-with-control-packets-gt-64bytes/m-p/524379#M7015</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:48:29Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1347 with control packets &gt;64bytes</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1347-with-control-packets-gt-64bytes/m-p/524380#M7016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Tsuneo on Wed Oct 23 10:18:45 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;look in giedrius's code on his post, Mon, 2013-07-22 06:55&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.lpcware.com%2Fcontent%2Fforum%2Freadep-does-not-work-custom-usb-class%23comment-1131034" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/content/forum/readep-does-not-work-custom-usb-class#comment-1131034&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It's better than my implementation ;-)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A couple of notes,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On "case USB_EVT_SETUP:"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- parse the Setup packet to identify the request&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- pCtrl-&amp;gt;EP0Data.pData: assign a buffer to be sent to host (Control Read Transfer), or to receive data (Control Write transfer).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- pCtrl-&amp;gt;EP0Data.Count: assign the number of bytes to be sent, or to recieve.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On "case USB_EVT_OUT:"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Control Write transfer comes here at DATA stage, every time a packet has been received.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- The ROM driver subtracts the packet size from pCtrl-&amp;gt;EP0Data.Count, before it calls custom EP0_hdlr()&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On "case USB_EVT_IN:"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Control Read transfer comes here at DATA stage, , every time a packet has been sent.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- The ROM driver subtracts the packet size from pCtrl-&amp;gt;EP0Data.Count, before it calls custom EP0_hdlr()&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tsuneo&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:48:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1347-with-control-packets-gt-64bytes/m-p/524380#M7016</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:48:29Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1347 with control packets &gt;64bytes</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1347-with-control-packets-gt-64bytes/m-p/524381#M7017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by alesvicic on Wed Oct 23 14:12:31 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Tsuneo,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;it looks more and more as my old implementation on LPC17xx.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ales&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:48:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1347-with-control-packets-gt-64bytes/m-p/524381#M7017</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1347 with control packets &gt;64bytes</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1347-with-control-packets-gt-64bytes/m-p/524382#M7018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by alesvicic on Tue Nov 05 10:05:35 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt; -------------------------------------&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:48:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1347-with-control-packets-gt-64bytes/m-p/524382#M7018</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:48:31Z</dc:date>
    </item>
  </channel>
</rss>

