<?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 device driver development in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/USB-device-driver-development/m-p/609299#M23769</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vicente,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have gone through that example code. but my not getting when the data (packet) which contains PID and VID information should be sent.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Sep 2016 03:54:02 GMT</pubDate>
    <dc:creator>nagendramurthy</dc:creator>
    <dc:date>2016-09-20T03:54:02Z</dc:date>
    <item>
      <title>USB device driver development</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/USB-device-driver-development/m-p/609297#M23767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to develop a USB device driver. this is first time i'm working on USB protocol.&lt;/P&gt;&lt;P&gt;Hardware information: this is a customized board using LPC1837 controller, which two USB ports. but we are using only one USB. i'm using CMSIS USB driver to develop the code.&lt;/P&gt;&lt;P&gt;Compiler information: keil 5 vision&amp;nbsp;&lt;/P&gt;&lt;P&gt;Software Information:&amp;nbsp;&lt;SPAN&gt;i'm using CMSIS USB driver to develop the code.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; the problem what i'm facing is when i connect my device to PC it display a message saying unknown device connected. can anyone help me out to resolve this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;little information about the steps or procedure i have followed. &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;i have gone through the USB protocol. the protocol has 4 types of packets.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;1. Token&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;2. Data&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;3. Handshake&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;4. SOF(start of frame).&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;i have been sending the information of DEVICE_DESCRIPTOR which contains PID and VID data, by setting the&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;below is the Token struct which is sending the data to PC&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;usb_Token.sync = 0x55;&lt;BR /&gt; usb_Token.pid=0x1E;&lt;BR /&gt; usb_Token.Addr = 0x01;&lt;BR /&gt; usb_Token.endpoint=0x01;&lt;BR /&gt; usb_Token.CRC5 =0x05;&lt;BR /&gt; usb_Token.EOP=00;&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;below is the data struct which is sending the data of device descriptor&lt;BR /&gt; usb_data.sync=0x55;&lt;BR /&gt; usb_data.pid=0xB4;&lt;BR /&gt; usb_data.Data = (uint8_t *)device0_dev_desc;&lt;BR /&gt; usb_data.CRC16 = 0x12;&lt;BR /&gt; usb_data.EOP=0x00;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;both the above struct was send one after the other using CMSIS API called endpoint Transfer.&lt;/P&gt;&lt;P&gt;USBDDrv-&amp;gt;EndpointTransfer(0x80,(uint8_t *)&amp;amp;usb_Token,6);&lt;/P&gt;&lt;P&gt;USBDDrv-&amp;gt;EndpointTransfer(0x80,(uint8_t *)&amp;amp;usb_data,22);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if anyone need i can provide the code.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2016 05:53:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/USB-device-driver-development/m-p/609297#M23767</guid>
      <dc:creator>nagendramurthy</dc:creator>
      <dc:date>2016-09-12T05:53:59Z</dc:date>
    </item>
    <item>
      <title>Re: USB device driver development</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/USB-device-driver-development/m-p/609298#M23768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi you can check the examples from the LPCOpen, normally this examples are installed on the following folder&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C:\NXP\LPCXpresso_8.2.0_647\lpcxpresso\Examples\LPCOpen\lpcopen_2_18_lpcxpresso_nxp_lpcxpresso_1837.zip\LPCUSBlib_MassStorageHost&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Vicente Gomez&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2016 17:48:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/USB-device-driver-development/m-p/609298#M23768</guid>
      <dc:creator>vicentegomez</dc:creator>
      <dc:date>2016-09-19T17:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: USB device driver development</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/USB-device-driver-development/m-p/609299#M23769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vicente,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have gone through that example code. but my not getting when the data (packet) which contains PID and VID information should be sent.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2016 03:54:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/USB-device-driver-development/m-p/609299#M23769</guid>
      <dc:creator>nagendramurthy</dc:creator>
      <dc:date>2016-09-20T03:54:02Z</dc:date>
    </item>
  </channel>
</rss>

