<?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: USB interface not part of a class driver in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/USB-interface-not-part-of-a-class-driver/m-p/1352857#M46681</link>
    <description>&lt;P&gt;I know its not the same CPU, but I have a feeling that the USB stuff from NXP is somewhat the same across some of their processors.&lt;/P&gt;&lt;P&gt;I was thru the same challenge on the i.MXRT processors, maybe there is something that can help you there:&amp;nbsp;&lt;A href="https://community.nxp.com/t5/i-MX-RT/Working-Custom-USB-example-using-Bulk-transfer-incl-code/m-p/1260056" target="_blank"&gt;https://community.nxp.com/t5/i-MX-RT/Working-Custom-USB-example-using-Bulk-transfer-incl-code/m-p/1260056&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 08 Oct 2021 19:29:31 GMT</pubDate>
    <dc:creator>carstengroen</dc:creator>
    <dc:date>2021-10-08T19:29:31Z</dc:date>
    <item>
      <title>USB interface not part of a class driver</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/USB-interface-not-part-of-a-class-driver/m-p/1352121#M46656</link>
      <description>&lt;P&gt;Hi, I am working on a USB device implementation using LPC55S69.&amp;nbsp; I have the high speed USB interface working with device class drivers based on the SDK examples but now I am trying to add an additional vendor-defined interface with&lt;STRONG&gt; bulk in&lt;/STRONG&gt; and &lt;STRONG&gt;bulk out&lt;/STRONG&gt; endpoints.&amp;nbsp; I have not gotten this to work yet and I don't see any examples of using endpoints directly (not via one of the standard class drivers).&lt;/P&gt;&lt;P&gt;I added the appropriate descriptors for the interface and endpoints, and (starting with just the IN direction for now) I have called &lt;FONT face="courier new,courier"&gt;USB_DeviceInitEndpoint&lt;/FONT&gt; and &lt;FONT face="courier new,courier"&gt;USB_DeviceSendRequest&lt;/FONT&gt;, and my callback gets called (immediately, even if there is no read initiated from the host).&lt;FONT face="courier new,courier"&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;When I do make a read request from the Linux host to the IN endpoint, I get &lt;STRONG&gt;I/O Error&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;Is there something else I need to do?&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Mike&lt;/P&gt;</description>
      <pubDate>Thu, 07 Oct 2021 20:05:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/USB-interface-not-part-of-a-class-driver/m-p/1352121#M46656</guid>
      <dc:creator>mditto1</dc:creator>
      <dc:date>2021-10-07T20:05:49Z</dc:date>
    </item>
    <item>
      <title>Re: USB interface not part of a class driver</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/USB-interface-not-part-of-a-class-driver/m-p/1352763#M46676</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;We can confirm we don’t have USB vendor specific class and don't have related demo for sharing.&lt;/P&gt;
&lt;P&gt;If say USB msc bulk transfer,&amp;nbsp;&lt;SPAN&gt;I recommend to import the SDK example dev_msc_sdcard_freertos. In the file usb_device_config.h please change the value for the highspeed macro and for the full speed macro change it to zero. Then proceed in sending the bulk messages you are expecting to send.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Have a nice day,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Jun Zhang&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Oct 2021 14:33:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/USB-interface-not-part-of-a-class-driver/m-p/1352763#M46676</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2021-10-08T14:33:18Z</dc:date>
    </item>
    <item>
      <title>Re: USB interface not part of a class driver</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/USB-interface-not-part-of-a-class-driver/m-p/1352857#M46681</link>
      <description>&lt;P&gt;I know its not the same CPU, but I have a feeling that the USB stuff from NXP is somewhat the same across some of their processors.&lt;/P&gt;&lt;P&gt;I was thru the same challenge on the i.MXRT processors, maybe there is something that can help you there:&amp;nbsp;&lt;A href="https://community.nxp.com/t5/i-MX-RT/Working-Custom-USB-example-using-Bulk-transfer-incl-code/m-p/1260056" target="_blank"&gt;https://community.nxp.com/t5/i-MX-RT/Working-Custom-USB-example-using-Bulk-transfer-incl-code/m-p/1260056&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Oct 2021 19:29:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/USB-interface-not-part-of-a-class-driver/m-p/1352857#M46681</guid>
      <dc:creator>carstengroen</dc:creator>
      <dc:date>2021-10-08T19:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: USB interface not part of a class driver</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/USB-interface-not-part-of-a-class-driver/m-p/1354298#M46743</link>
      <description>&lt;P&gt;Thanks, Carsten,&lt;/P&gt;&lt;P&gt;It looks like you basically created a new class driver, "MyBulk".&amp;nbsp; I assume you modified the&amp;nbsp;&lt;FONT face="courier new,courier"&gt;s_UsbDeviceClassInterfaceMap&lt;/FONT&gt; table in the USB stack to reference your functions like &lt;FONT face="courier new,courier"&gt;USB_DeviceMyBulkInit&lt;/FONT&gt; and &lt;FONT face="courier new,courier"&gt;USB_DeviceMyBulkEvent&lt;/FONT&gt;.&amp;nbsp; I was hoping there would be no need for a class driver since this interface has no class functionality and only the device-specific custom data on its two endpoints and that I could use the endpoint operations directly without any class driver.&amp;nbsp; Did you find that the class driver is necessary?&lt;/P&gt;&lt;P&gt;I will look further at your example code for ideas, thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Oct 2021 14:19:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/USB-interface-not-part-of-a-class-driver/m-p/1354298#M46743</guid>
      <dc:creator>mditto1</dc:creator>
      <dc:date>2021-10-12T14:19:15Z</dc:date>
    </item>
    <item>
      <title>Re: USB interface not part of a class driver</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/USB-interface-not-part-of-a-class-driver/m-p/1354310#M46744</link>
      <description>&lt;P&gt;You will be pleasantly surprised &lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/P&gt;&lt;P&gt;The code is basically very simple, I think when you go thru the files you will see it is not that complicated (although it took me some time to figure it all out)&lt;/P&gt;&lt;P&gt;Let me know if there is anything specific, Its been a while since I did the code, so I will have to dig it up from the back of my head, it has just been running flawlessly since I did the code &lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Carsten&lt;/P&gt;</description>
      <pubDate>Tue, 12 Oct 2021 14:39:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/USB-interface-not-part-of-a-class-driver/m-p/1354310#M46744</guid>
      <dc:creator>carstengroen</dc:creator>
      <dc:date>2021-10-12T14:39:11Z</dc:date>
    </item>
  </channel>
</rss>

