<?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 Composite HID-MSD device does not start in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-Composite-HID-MSD-device-does-not-start/m-p/433310#M25161</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a project based on HID_AUDIO example code located at &amp;lt;KSDK_1_2_PATH&amp;gt;/examples/frdmk64f/demo_apps/usb/device/composite, and here are the steps needed to run this demo:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Unzip code and copy it into next direction:&amp;nbsp; C:\Freescale\KSDK_1.2.0\examples\frdmk64f\demo_apps\usb\device\composite&lt;/P&gt;&lt;P&gt;2. Open KDS and import this new project&lt;/P&gt;&lt;P&gt;3. Replace files in source folder for the one located on the new project (C:\Freescale\KSDK_1.2.0\examples\frdmk64f\demo_apps\usb\device\composite\hid_msd). This step is added due when I tested this example in another computer, when i imported the project, all files related to HID_AUDIO project where linked instead the ones located in HID_MSD, so i had to link the correct files.&lt;/P&gt;&lt;P&gt;4. Build the project and download it. (Remember that this project needs ksdk_platform_lib and usbd_frdmk64 libs to be compiled previously)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this can help you.&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Isaac&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Sep 2015 20:50:43 GMT</pubDate>
    <dc:creator>isaacavila</dc:creator>
    <dc:date>2015-09-14T20:50:43Z</dc:date>
    <item>
      <title>USB Composite HID-MSD device does not start</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-Composite-HID-MSD-device-does-not-start/m-p/433307#M25158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;"&gt;We have been busy trying to use the Freescale USB library and create a Composite device – HID + MSD for VeraVanti.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;"&gt;We have had many issues with the USB library and the KDS tools (&lt;/SPAN&gt;L&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;"&gt;). We have finally successfully built a Composite device that enumerates both the HID and MSD devices, however, we are getting several other errors that we do not have access to debugging.&amp;nbsp; We are getting errors as trapped by the USB analyzer – see below.&amp;nbsp; One is an Operations “Cancelled” and the other one is XACT_ERROR.&amp;nbsp; see attached pictures USB_Error_*.jpg.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;"&gt;Both the HID and MSD complete the enumeration process, but the MSD device gives an error 0xa – Device Cannot Start.&amp;nbsp; I have tested this on both your RAM-DISK example and on my custom code (based on your tutorial).&amp;nbsp; (note that your RAM-Disk example – does not work).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;"&gt;The XACT error : &lt;EM&gt; “&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; background: white; font-size: 11.5pt; font-family: 'Segoe UI',sans-serif;"&gt;&lt;EM&gt;This error is reported to USB device drivers by the Microsoft USB core driver stack via the USB status code USBD_STATUS_XACT_ERROR if the USB EHCI host controller sets the Transaction Error (XactErr) bit in the USB transfer descriptor upon completion of the USB transfer. “ &lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: black; background: white;"&gt;We are using the KHCI version of the USB Stack.&amp;nbsp; We tried to build the EHCI version, but it does not build.&amp;nbsp; I am convinced the error is in the USB stack as we cannot trap the error condition and all the descriptors are properly verified by both Windows and by the USB analyzer.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To test the MSD I am using the RAM-Disk example.&amp;nbsp; Eventually I will swap this out for a Spansion flash chip.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: black; background: white;"&gt;we are using the FRDM-KL26Z Freedom board to prototype.&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2015 04:57:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-Composite-HID-MSD-device-does-not-start/m-p/433307#M25158</guid>
      <dc:creator>jonperrin</dc:creator>
      <dc:date>2015-08-12T04:57:59Z</dc:date>
    </item>
    <item>
      <title>Re: USB Composite HID-MSD device does not start</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-Composite-HID-MSD-device-does-not-start/m-p/433308#M25159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case you don't have success with the framework that you are working with you can also check out a complete, industrially proven solution that will allow you to simply create reliable composite devices (with MSD + HID), including Kinetis + USB simulation so that there are no development/debugging complications.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Details at links below and supported in this forum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kinetis: &lt;A href="http://www.utasker.com/kinetis.html" title="http://www.utasker.com/kinetis.html"&gt;µTasker Kinetis support&lt;/A&gt; &lt;/P&gt;&lt;P&gt;KL26: &lt;A href="http://www.utasker.com/kinetis/FRDM-KL26Z.html" title="http://www.utasker.com/kinetis/FRDM-KL26Z.html"&gt;µTasker Kinetis FRDM-KL26Z support&lt;/A&gt;&amp;nbsp; / &lt;A href="http://www.utasker.com/kinetis/TEENSY_LC.html" title="http://www.utasker.com/kinetis/TEENSY_LC.html"&gt;µTasker Kinetis Teensy LC support&lt;/A&gt; &lt;/P&gt;&lt;P&gt;USB User's Guide: &lt;A href="http://www.utasker.com/docs/uTasker/USB_User_Guide.PDF" title="http://www.utasker.com/docs/uTasker/USB_User_Guide.PDF"&gt;http://www.utasker.com/docs/uTasker/USB_User_Guide.PDF&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Composite USB: &lt;A href="http://www.utasker.com/kinetis/USB_Device.html" title="http://www.utasker.com/kinetis/USB_Device.html"&gt;µTasker USB Device Configuration&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;EM&gt;For the complete "out-of-the-box" Kinetis experience and faster time to market&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2015 14:06:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-Composite-HID-MSD-device-does-not-start/m-p/433308#M25159</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2015-08-13T14:06:09Z</dc:date>
    </item>
    <item>
      <title>Re: USB Composite HID-MSD device does not start</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-Composite-HID-MSD-device-does-not-start/m-p/433309#M25160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have already sent you a HID+MSD example implemented for FRDM-K64F board. You can use either keyboard or mouse support for HID class and for MSD you can select between internal RAM DISK application or SD_CARD application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am in process to make it a stand-alone project. By now, you can validate this example following the described steps listed in email from Joel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this can help you,&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Isaac Avila&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Aug 2015 23:42:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-Composite-HID-MSD-device-does-not-start/m-p/433309#M25160</guid>
      <dc:creator>isaacavila</dc:creator>
      <dc:date>2015-08-28T23:42:41Z</dc:date>
    </item>
    <item>
      <title>Re: USB Composite HID-MSD device does not start</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-Composite-HID-MSD-device-does-not-start/m-p/433310#M25161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a project based on HID_AUDIO example code located at &amp;lt;KSDK_1_2_PATH&amp;gt;/examples/frdmk64f/demo_apps/usb/device/composite, and here are the steps needed to run this demo:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Unzip code and copy it into next direction:&amp;nbsp; C:\Freescale\KSDK_1.2.0\examples\frdmk64f\demo_apps\usb\device\composite&lt;/P&gt;&lt;P&gt;2. Open KDS and import this new project&lt;/P&gt;&lt;P&gt;3. Replace files in source folder for the one located on the new project (C:\Freescale\KSDK_1.2.0\examples\frdmk64f\demo_apps\usb\device\composite\hid_msd). This step is added due when I tested this example in another computer, when i imported the project, all files related to HID_AUDIO project where linked instead the ones located in HID_MSD, so i had to link the correct files.&lt;/P&gt;&lt;P&gt;4. Build the project and download it. (Remember that this project needs ksdk_platform_lib and usbd_frdmk64 libs to be compiled previously)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this can help you.&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Isaac&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2015 20:50:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-Composite-HID-MSD-device-does-not-start/m-p/433310#M25161</guid>
      <dc:creator>isaacavila</dc:creator>
      <dc:date>2015-09-14T20:50:43Z</dc:date>
    </item>
    <item>
      <title>Re: USB Composite HID-MSD device does not start</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-Composite-HID-MSD-device-does-not-start/m-p/433311#M25162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Isaac,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The composite example that you helped us with works well.  We are now moving to change the SD interface to a NOR flash interface using a Spansion library.  The Spansion library requires a larger RAM to provide sector buffering so we moved to the FRDM-K64F board.  The first step is to get the DSPI -0 working.  I have tried to get it working with the a BLOCKING call – see the main in disk.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;However, I am unable to get the DSPI_DRV_MasterTransferBlocking() to work.  It always ends up in the default ISR, even though I have defined a SPI0_Interrupt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me get this SPI working as soon as you can.  I am sure you can easily debug it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-jon-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jon Perrin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Glacier River Design, LLC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &amp;lt;mailto:Jon.perrin@glacierriver.com&amp;gt; Jon.perrin@glacierriver.com&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &amp;lt;http://www.glacierriver.com&amp;gt; &lt;A href="https://community.nxp.com/www.glacierriver.com" target="test_blank"&gt;www.glacierriver.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;425-829-4151&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2015 02:05:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-Composite-HID-MSD-device-does-not-start/m-p/433311#M25162</guid>
      <dc:creator>jonperrin</dc:creator>
      <dc:date>2015-09-23T02:05:48Z</dc:date>
    </item>
    <item>
      <title>Re: USB Composite HID-MSD device does not start</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-Composite-HID-MSD-device-does-not-start/m-p/433312#M25163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for late response, i would like to invite you to create a new community post related to your SPI issue. I know SPI protocol but I am focused on USB. If you create a new post, SPI's expert can look at your problem and may help you to solve it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for all inconvenience it may cause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Isaac&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Oct 2015 21:09:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-Composite-HID-MSD-device-does-not-start/m-p/433312#M25163</guid>
      <dc:creator>isaacavila</dc:creator>
      <dc:date>2015-10-06T21:09:29Z</dc:date>
    </item>
  </channel>
</rss>

