<?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 USB VID/PID change using example code dev_hid_generic_freertos in MCUXpresso SDK</title>
    <link>https://community.nxp.com/t5/MCUXpresso-SDK/USB-VID-PID-change-using-example-code-dev-hid-generic-freertos/m-p/783996#M895</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First, an intro before my question ... I am using the TWR-K22F120M tower board to develop a USB device.&amp;nbsp; Using the SDK for that board including the USB stack and FreeRTOS, I have successfully tested the example code for the generic HID with FreeRTOS ("dev_hid_generic_freertos").&amp;nbsp; This required downloading and modifying code from codeproject.com per the readme.pdf (attached) in the example code folder.&amp;nbsp; Here is the link:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.codeproject.com/Articles/18099/A-USB-HID-Component-for-C" title="https://www.codeproject.com/Articles/18099/A-USB-HID-Component-for-C"&gt;A USB HID Component for C# - CodeProject&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Follow the readme instructions EXACTLY and it will work.&amp;nbsp; I initially compiled the C# program for "all processors" and it would compile and run, but it would not connect to the device and echo data.&amp;nbsp; NOTE - there are code modifications required and defined in the readme.&amp;nbsp; Here is what the running program looks like except that I modified the VID/PID and default send data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="TWR-K22F120M USB HID Program.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/45722i3F29A06BC5055513/image-size/large?v=v2&amp;amp;px=999" role="button" title="TWR-K22F120M USB HID Program.png" alt="TWR-K22F120M USB HID Program.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QUESTION:&amp;nbsp; Being brand new to the USB game, I assume the VID and PID are hard-coded somewhere in the example code.&amp;nbsp; I verified that the VID is for NXP.&amp;nbsp; Since I'm a little slower than the other kids, I could not find where this is.&amp;nbsp; We have our own VID and PID block reserved, so I would like to put it in the code.&amp;nbsp; Does anyone know where VID and PID are defined in this project?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Jun 2018 20:47:53 GMT</pubDate>
    <dc:creator>nbgatgi</dc:creator>
    <dc:date>2018-06-14T20:47:53Z</dc:date>
    <item>
      <title>USB VID/PID change using example code dev_hid_generic_freertos</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/USB-VID-PID-change-using-example-code-dev-hid-generic-freertos/m-p/783996#M895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First, an intro before my question ... I am using the TWR-K22F120M tower board to develop a USB device.&amp;nbsp; Using the SDK for that board including the USB stack and FreeRTOS, I have successfully tested the example code for the generic HID with FreeRTOS ("dev_hid_generic_freertos").&amp;nbsp; This required downloading and modifying code from codeproject.com per the readme.pdf (attached) in the example code folder.&amp;nbsp; Here is the link:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.codeproject.com/Articles/18099/A-USB-HID-Component-for-C" title="https://www.codeproject.com/Articles/18099/A-USB-HID-Component-for-C"&gt;A USB HID Component for C# - CodeProject&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Follow the readme instructions EXACTLY and it will work.&amp;nbsp; I initially compiled the C# program for "all processors" and it would compile and run, but it would not connect to the device and echo data.&amp;nbsp; NOTE - there are code modifications required and defined in the readme.&amp;nbsp; Here is what the running program looks like except that I modified the VID/PID and default send data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="TWR-K22F120M USB HID Program.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/45722i3F29A06BC5055513/image-size/large?v=v2&amp;amp;px=999" role="button" title="TWR-K22F120M USB HID Program.png" alt="TWR-K22F120M USB HID Program.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QUESTION:&amp;nbsp; Being brand new to the USB game, I assume the VID and PID are hard-coded somewhere in the example code.&amp;nbsp; I verified that the VID is for NXP.&amp;nbsp; Since I'm a little slower than the other kids, I could not find where this is.&amp;nbsp; We have our own VID and PID block reserved, so I would like to put it in the code.&amp;nbsp; Does anyone know where VID and PID are defined in this project?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2018 20:47:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/USB-VID-PID-change-using-example-code-dev-hid-generic-freertos/m-p/783996#M895</guid>
      <dc:creator>nbgatgi</dc:creator>
      <dc:date>2018-06-14T20:47:53Z</dc:date>
    </item>
    <item>
      <title>Re: USB VID/PID change using example code dev_hid_generic_freertos</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/USB-VID-PID-change-using-example-code-dev-hid-generic-freertos/m-p/783997#M896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" class="" data-content-finding="Community" data-userid="307979" data-username="nbgatgi" href="https://community.nxp.com/people/nbgatgi"&gt;Nick:&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VID and PID are defined in USB device descriptor, please refer to file usb_device_descriptor.c&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/61968i825B35C6E87098EE/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2018 07:37:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/USB-VID-PID-change-using-example-code-dev-hid-generic-freertos/m-p/783997#M896</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2018-06-19T07:37:46Z</dc:date>
    </item>
  </channel>
</rss>

