<?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のトピックCustom USB device class - Endpoint callbacks not being called</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Custom-USB-device-class-Endpoint-callbacks-not-being-called/m-p/524607#M7243</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by NickAtKandevsys on Mon Jan 27 10:16:33 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a project based on the LPC1830, we are using the USB functionality in the boot rom to create a custom device class. The version field from the USBD_API_T is 0x01111101.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I register a class handler (core-&amp;gt;RegisterClassHandler()) and an endpoint handler for EP2-IN (core-&amp;gt;RegisterEpHandler())&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The device enumerates and I am handling all of the standard and custom setup packets ok. However:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. I do see some callbacks on this handler during enumeration (that is unexpected)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. When the host app starts polling the device for data on Endpoint2-In (isoch) I see no call backs to the end point handler so I deliver no data to the endpoint.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are there any known issues in this area? Custom device classes seem to be poorly documented. If there is a bug I presume I have the option to compile the source to the USB stack into my application and drive the USB hardware directly from my device app?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for any insight,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Nick&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 16:51:27 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T16:51:27Z</dc:date>
    <item>
      <title>Custom USB device class - Endpoint callbacks not being called</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Custom-USB-device-class-Endpoint-callbacks-not-being-called/m-p/524607#M7243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by NickAtKandevsys on Mon Jan 27 10:16:33 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a project based on the LPC1830, we are using the USB functionality in the boot rom to create a custom device class. The version field from the USBD_API_T is 0x01111101.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I register a class handler (core-&amp;gt;RegisterClassHandler()) and an endpoint handler for EP2-IN (core-&amp;gt;RegisterEpHandler())&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The device enumerates and I am handling all of the standard and custom setup packets ok. However:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. I do see some callbacks on this handler during enumeration (that is unexpected)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. When the host app starts polling the device for data on Endpoint2-In (isoch) I see no call backs to the end point handler so I deliver no data to the endpoint.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are there any known issues in this area? Custom device classes seem to be poorly documented. If there is a bug I presume I have the option to compile the source to the USB stack into my application and drive the USB hardware directly from my device app?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for any insight,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Nick&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:51:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Custom-USB-device-class-Endpoint-callbacks-not-being-called/m-p/524607#M7243</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: Custom USB device class - Endpoint callbacks not being called</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Custom-USB-device-class-Endpoint-callbacks-not-being-called/m-p/524608#M7244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by durgesh on Tue Jan 28 19:01:49 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;Current ROM version doesn't support isochronous endpoints properly. Check the errata &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.nxp.com%2Fdocuments%2Ferrata_sheet%2FES_LPC18X0.pdf" rel="nofollow" target="_blank"&gt;http://www.nxp.com/documents/errata_sheet/ES_LPC18X0.pdf&lt;/A&gt;&lt;SPAN&gt; for workaround.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:51:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Custom-USB-device-class-Endpoint-callbacks-not-being-called/m-p/524608#M7244</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: Custom USB device class - Endpoint callbacks not being called</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Custom-USB-device-class-Endpoint-callbacks-not-being-called/m-p/524609#M7245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by NickAtKandevsys on Wed Jan 29 04:55:04 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the suggestion. I have applied those fixes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think the issue was caused by a misunderstanding on my part as to how the callback mechanism works. It seems like the callback is only called when the pipe goes empty, not on every endpoint poll.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So for the first data transfer you have to manually put data in the pipe, once that data is sent the callback will be invoked so more data can be put into the pipe for transmission.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:51:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Custom-USB-device-class-Endpoint-callbacks-not-being-called/m-p/524609#M7245</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:51:29Z</dc:date>
    </item>
  </channel>
</rss>

