<?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: Having trouble with Keyboard Demo application with fsl_usb_device_hid_class on FRDM-K22F in Kinetis Software Development Kit</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Having-trouble-with-Keyboard-Demo-application-with-fsl-usb/m-p/408729#M1792</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kenneth Sloat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think your issue might be related with two causes.&lt;/P&gt;&lt;P&gt;1. You didn't set the correct VID and PID for this HID demo.&lt;/P&gt;&lt;P&gt;2. The PEx component put USB descriptor in the internal flash, while USB module does not have access for this space out of reset. Please kindly refer to &lt;A href="https://community.nxp.com/docs/DOC-105714"&gt;How to implement a USB Device MSD demo based on KSDK PEx components and KDS 3.0&lt;/A&gt; for details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Freescale Technical Support&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 31 Aug 2015 06:41:55 GMT</pubDate>
    <dc:creator>Kan_Li</dc:creator>
    <dc:date>2015-08-31T06:41:55Z</dc:date>
    <item>
      <title>Having trouble with Keyboard Demo application with fsl_usb_device_hid_class on FRDM-K22F</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Having-trouble-with-Keyboard-Demo-application-with-fsl-usb/m-p/408728#M1791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using a FRDM-K22F board and attempting to get the HID keyboard demo that is an option when you add the processor expert fsl_usb_device_hid_class component in KDS. After programming the board, and plugging the USB port (the one that connects directly to the K22) into my computer, I get the following on my Linux machine:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[30253.038480] usb 2-3.1: new full-speed USB device number 107 using ehci-pci&lt;/P&gt;&lt;P&gt;[30253.126568] usb 2-3.1: device descriptor read/64, error 18&lt;/P&gt;&lt;P&gt;[30253.318734] usb 2-3.1: device descriptor read/64, error 18&lt;/P&gt;&lt;P&gt;[30253.510859] usb 2-3.1: new full-speed USB device number 108 using ehci-pci&lt;/P&gt;&lt;P&gt;[30253.598992] usb 2-3.1: device descriptor read/64, error 18&lt;/P&gt;&lt;P&gt;[30253.791124] usb 2-3.1: device descriptor read/64, error 18&lt;/P&gt;&lt;P&gt;[30253.983162] usb 2-3.1: new full-speed USB device number 109 using ehci-pci&lt;/P&gt;&lt;P&gt;[30254.003903] usb 2-3.1: device descriptor read/8, error -61&lt;/P&gt;&lt;P&gt;[30254.124121] usb 2-3.1: device descriptor read/8, error -61&lt;/P&gt;&lt;P&gt;[30254.315496] usb 2-3.1: new full-speed USB device number 110 using ehci-pci&lt;/P&gt;&lt;P&gt;[30254.336286] usb 2-3.1: device descriptor read/8, error -61&lt;/P&gt;&lt;P&gt;[30254.456352] usb 2-3.1: device descriptor read/8, error -61&lt;/P&gt;&lt;P&gt;[30254.559816] usb 2-3-port1: unable to enumerate USB device&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This happens regardless of whether I leave the debug USB port connected or not. I know that this can work, because if I import the FreeRTOS USB HID Keyboard project from the SDK folder, build it and program it, my computer sees a keyboard device and the board starts sending keystrokes to my computer.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just not understanding why I am getting this problem. If I run the application in debug mode and set a breakpoint in the hid1_application_callback function, it will break there when I plug/unplug the USB cable, but it's always the same "event_type", "USB_DEV_EVENT_BUS_RESET."&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="69851_69851.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/120583i0BB9B5B373692FBE/image-size/large?v=v2&amp;amp;px=999" role="button" title="69851_69851.png" alt="69851_69851.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/52900i80C6790228261BF7/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here our some shots of my configurations in processor expert for reference:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="69852_69852.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/120584iB59BF9DE3D1A6980/image-size/large?v=v2&amp;amp;px=999" role="button" title="69852_69852.png" alt="69852_69852.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/52966i1E542B94583B932A/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="69853_69853.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/120585iD9233C5F49A301A9/image-size/large?v=v2&amp;amp;px=999" role="button" title="69853_69853.png" alt="69853_69853.png" /&gt;&lt;/span&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/53010i9B7BF3385D56A0EE/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 style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="69855_69855.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/120586i18257D1DE6AFB9B8/image-size/large?v=v2&amp;amp;px=999" role="button" title="69855_69855.png" alt="69855_69855.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/53091iD758D5C91191D117/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="69856_69856.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/120587iD7985CD65239C2C0/image-size/large?v=v2&amp;amp;px=999" role="button" title="69856_69856.png" alt="69856_69856.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_4.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/53138iA3DA72C2F9B724FB/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="69857_69857.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/120588i7199A59743D7AD3A/image-size/large?v=v2&amp;amp;px=999" role="button" title="69857_69857.png" alt="69857_69857.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_5.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/53190i8D574F8857A627E7/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_5.png" alt="pastedImage_5.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="69858_69858.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/120589i5142F6CF7962595E/image-size/large?v=v2&amp;amp;px=999" role="button" title="69858_69858.png" alt="69858_69858.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_6.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/53239i83457649110E8CD7/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_6.png" alt="pastedImage_6.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="69859_69859.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/120590iA53D27079F29CABB/image-size/large?v=v2&amp;amp;px=999" role="button" title="69859_69859.png" alt="69859_69859.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_7.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/53191iE2D84822B3554541/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_7.png" alt="pastedImage_7.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Aug 2015 04:22:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Having-trouble-with-Keyboard-Demo-application-with-fsl-usb/m-p/408728#M1791</guid>
      <dc:creator>ken_sloat</dc:creator>
      <dc:date>2015-08-30T04:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: Having trouble with Keyboard Demo application with fsl_usb_device_hid_class on FRDM-K22F</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Having-trouble-with-Keyboard-Demo-application-with-fsl-usb/m-p/408729#M1792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kenneth Sloat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think your issue might be related with two causes.&lt;/P&gt;&lt;P&gt;1. You didn't set the correct VID and PID for this HID demo.&lt;/P&gt;&lt;P&gt;2. The PEx component put USB descriptor in the internal flash, while USB module does not have access for this space out of reset. Please kindly refer to &lt;A href="https://community.nxp.com/docs/DOC-105714"&gt;How to implement a USB Device MSD demo based on KSDK PEx components and KDS 3.0&lt;/A&gt; for details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Freescale Technical Support&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Aug 2015 06:41:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Having-trouble-with-Keyboard-Demo-application-with-fsl-usb/m-p/408729#M1792</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2015-08-31T06:41:55Z</dc:date>
    </item>
    <item>
      <title>Re: Having trouble with Keyboard Demo application with fsl_usb_device_hid_class on FRDM-K22F</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Having-trouble-with-Keyboard-Demo-application-with-fsl-usb/m-p/408730#M1793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Kan, this article helped me fix most of the issues! After following your tutorial suggestion to set the no option for setting descriptors as const my device was now recognized, but still had errors. I was able to get the demo working by additionally unchecking another option for marking the descriptors as const under the hid class component:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/53072i4F76B52B00259315/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Aug 2015 22:59:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Having-trouble-with-Keyboard-Demo-application-with-fsl-usb/m-p/408730#M1793</guid>
      <dc:creator>ken_sloat</dc:creator>
      <dc:date>2015-08-31T22:59:16Z</dc:date>
    </item>
  </channel>
</rss>

