<?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 Generic HID in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-Generic-HID/m-p/231907#M5097</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, during weeked I managed to make generic HID device. The main problem was, that the usb_hid class provided in Freescale USB stack supports only IN transactions. In other words, it is not a general implementation of HID class. I added support of OUT transactions (USB_Class_HID_Recv_Data() function calling _usb_device_recv_data()) and second endpoint (OUT). It seems to be working well, I'm testing the generic HID now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Mar 2013 06:48:59 GMT</pubDate>
    <dc:creator>gaminn</dc:creator>
    <dc:date>2013-03-25T06:48:59Z</dc:date>
    <item>
      <title>USB Generic HID</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-Generic-HID/m-p/231905#M5095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I adapted USB hid mouse example project from Freescale USB Stack v4.0.2 to Generic HID. My PC program to test HID device succesfully sends first report, but MCU (TWR-K70) never receives it. Then I'm unable to send next reports to MCU. Like the first report blocks the endpoint. I registered callbacks when initializing HID class:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;USB_Class_HID_Init(CONTROLLER_ID, USB_App_Callback, VendorCallback, USB_App_Param_Callback);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;On first report sent from PC to MCU, USB_App_Callback() is called with event_type = USB_APP_SEND_COMPLETE (why send complete ???). Then nothing. &lt;/SPAN&gt;Sending reports from MCU to PC works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;I configured HID generic device to use 2 endpoints IN and OUT, report size is 64 bytes.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;Thanks for any advice.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Mar 2013 13:24:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-Generic-HID/m-p/231905#M5095</guid>
      <dc:creator>gaminn</dc:creator>
      <dc:date>2013-03-19T13:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: USB Generic HID</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-Generic-HID/m-p/231906#M5096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Martin,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;I have attached a generic HID project for CodeWarrior v10.2. It is a SCI to HID bridge application, using the MC9S08JS16 MCU. It is based on Mouse example Freescale USB Stack v3.2.0, but generating a stand-alone project that doesn’t require installing any USB Stack version or placing the project on a specific location. Besides, it adds the implementation of the optional OUT endpoint, which is not included on any of the HID examples of USB Stack.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;On this project, the SCI module is configured by default to 8N1, 115200 bps. These configurations are declared on file “sci.h” and on the call of function “u8SCI_init”. Then, on interrupt function “SCI_rx_srvc”, the SCI data is received and stored on the circular buffer “g_sci_rx_buf”, and the proper flags are set. Finally, on “Serial2HID_Task” function (on “Serial2HID.c” file), the SCI’s buffer is sent by HID’s IN endpoint, and the data received from HID´s OUT endpoint is sent by the SCI module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The time interval between transaction is configured to 1mS, and this time base is generated by the TPM module, which is configured inside function “TestApp_Init” of “Serial2HID.c” file. On TPM´s interrupt function “TPM_OVF_ISR”, the circular buffer (used for transactions) is managed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope you could use it as reference.&lt;/P&gt;&lt;P&gt;Best regards!&lt;/P&gt;&lt;P&gt;/Carlos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Mar 2013 02:46:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-Generic-HID/m-p/231906#M5096</guid>
      <dc:creator>CarlosCasillas</dc:creator>
      <dc:date>2013-03-23T02:46:22Z</dc:date>
    </item>
    <item>
      <title>Re: USB Generic HID</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-Generic-HID/m-p/231907#M5097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, during weeked I managed to make generic HID device. The main problem was, that the usb_hid class provided in Freescale USB stack supports only IN transactions. In other words, it is not a general implementation of HID class. I added support of OUT transactions (USB_Class_HID_Recv_Data() function calling _usb_device_recv_data()) and second endpoint (OUT). It seems to be working well, I'm testing the generic HID now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Mar 2013 06:48:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-Generic-HID/m-p/231907#M5097</guid>
      <dc:creator>gaminn</dc:creator>
      <dc:date>2013-03-25T06:48:59Z</dc:date>
    </item>
    <item>
      <title>Re: USB Generic HID</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-Generic-HID/m-p/231908#M5098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello, did you make it works? i'm trying to do this also. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Apr 2013 18:01:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-Generic-HID/m-p/231908#M5098</guid>
      <dc:creator>xavi2804</dc:creator>
      <dc:date>2013-04-11T18:01:45Z</dc:date>
    </item>
    <item>
      <title>Re: USB Generic HID</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-Generic-HID/m-p/231909#M5099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Javier,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, I was able to get it working.   When I get a second from my job, I will send you my code.  You have to make changes to the usb_descriptor.c, usb_descriptor.h, USB_Config.h, usb_hid.c, and then some changes to the actual callback function in the particular application code (in our case we called it IntersilDAQ.c).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are using an MKL25Z128xxx4 microcontroller so we used the USBHIDKBD-Flash demo for our template code.   I followed Carlos generic HID project code for the SCI to HID bridge application to write my code and the reading chapter 5 in the Freescale USB Device Stack Users Guide.   His code is up on the Freescale community.  His microcontroller was different than the one we are using.   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Allan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Apr 2013 20:07:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-Generic-HID/m-p/231909#M5099</guid>
      <dc:creator>allanrobinson</dc:creator>
      <dc:date>2013-04-11T20:07:08Z</dc:date>
    </item>
    <item>
      <title>Re: USB Generic HID</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-Generic-HID/m-p/231910#M5100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Allan, i'm going to check the code and try to get it work for my MK60F.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Javier&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Apr 2013 14:13:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-Generic-HID/m-p/231910#M5100</guid>
      <dc:creator>xavi2804</dc:creator>
      <dc:date>2013-04-15T14:13:08Z</dc:date>
    </item>
    <item>
      <title>Re: USB Generic HID</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-Generic-HID/m-p/231911#M5101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Javier,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Were you able to get your HID communication working?&amp;nbsp; Do you still need me to try and send you my code pertaining to HID communication?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Allan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Apr 2013 14:15:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-Generic-HID/m-p/231911#M5101</guid>
      <dc:creator>allanrobinson</dc:creator>
      <dc:date>2013-04-22T14:15:05Z</dc:date>
    </item>
    <item>
      <title>Re: USB Generic HID</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-Generic-HID/m-p/231912#M5102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;well, still i haven't got time to make it work, i just see a little the code from CarlosCasillas, and i tryed to modified form my microcrontroler but got any lucky, no i cant get the computer to reconize the usb device, but if you could sen me your code to check it and compare it would be very helpul.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Apr 2013 14:21:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-Generic-HID/m-p/231912#M5102</guid>
      <dc:creator>xavi2804</dc:creator>
      <dc:date>2013-04-22T14:21:57Z</dc:date>
    </item>
    <item>
      <title>Re: USB Generic HID</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-Generic-HID/m-p/231913#M5103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Javier,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached is my code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Allan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Apr 2013 14:26:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-Generic-HID/m-p/231913#M5103</guid>
      <dc:creator>allanrobinson</dc:creator>
      <dc:date>2013-04-23T14:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: USB Generic HID</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-Generic-HID/m-p/231914#M5104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, could you explain me, in what part of code the MCU is receiving data?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what is the function for doing that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Jose &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2014 07:14:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-Generic-HID/m-p/231914#M5104</guid>
      <dc:creator>joseali</dc:creator>
      <dc:date>2014-03-07T07:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: USB Generic HID</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-Generic-HID/m-p/231915#M5105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Martin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is the Generic HID yellow-banged in Device Manger (Windows)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Chris.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Aug 2014 19:29:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-Generic-HID/m-p/231915#M5105</guid>
      <dc:creator>csjc</dc:creator>
      <dc:date>2014-08-29T19:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: USB Generic HID</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-Generic-HID/m-p/231916#M5106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Allan.&lt;/P&gt;&lt;P&gt;I'm trying to make working your code.&lt;/P&gt;&lt;P&gt;I've started from the HID_MOUSE_DEVICE_MKL25Z128_PEx and applied all of your code, but it doesn't work.&lt;/P&gt;&lt;P&gt;I've modified the descriptors and I've got to comunicate from my board to PC. But I cannot comunicate from PC to board.&lt;/P&gt;&lt;P&gt;Could you give me any help?&amp;nbsp; Please.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2015 13:25:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-Generic-HID/m-p/231916#M5106</guid>
      <dc:creator>PedroBecerra</dc:creator>
      <dc:date>2015-05-06T13:25:58Z</dc:date>
    </item>
  </channel>
</rss>

