<?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: K64F USB driver for USB Stick in Kinetis Software Development Kit</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/K64F-USB-driver-for-USB-Stick/m-p/681682#M7403</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Update,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to get some of the errors removed, by adding additional paths and by copying a&amp;nbsp;&lt;/P&gt;&lt;P&gt;new descriptor.c and descriptor .h file. &amp;nbsp;Since I want the USB driver to be a host and not a&lt;/P&gt;&lt;P&gt;device as in the MOUSE example being used, I copied the descriptor.c and descriptor.h&lt;/P&gt;&lt;P&gt;files from the following project "frdmk64_usb_msd" which can be found in the forum by doing a&amp;nbsp;&lt;/P&gt;&lt;P&gt;search. &amp;nbsp;Once I recompiled, I was still getting an error here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;uint8_t g_config_descriptor[CONFIG_DESC_SIZE] =&lt;BR /&gt;{&lt;BR /&gt; /* Configuration Descriptor Size - always 9 bytes*/&lt;BR /&gt; CONFIG_ONLY_DESC_SIZE,&lt;BR /&gt; /* "Configuration" type of descriptor */&lt;BR /&gt; USB_CONFIG_DESCRIPTOR,&lt;BR /&gt; /* Total length of the Configuration descriptor */&lt;BR /&gt; USB_uint_16_low(CONFIG_DESC_SIZE), USB_uint_16_high(CONFIG_DESC_SIZE),&lt;BR /&gt; /* NumInterfaces */&lt;BR /&gt; CONFIG_DESC_NUM_INTERFACES_SUPPOTED,&lt;BR /&gt; /* Configuration Value */&lt;BR /&gt; 1,&lt;BR /&gt; /* Configuration Description String Index */&lt;BR /&gt; 0,&lt;BR /&gt; /* Attributes.support RemoteWakeup and self power */&lt;BR /&gt; (USB_DESC_CFG_ATTRIBUTES_D7_POS) | (USBCFG_DEV_SELF_POWER &amp;lt;&amp;lt; USB_DESC_CFG_ATTRIBUTES_SELF_POWERED_SHIFT) | (USBCFG_DEV_REMOTE_WAKEUP &amp;lt;&amp;lt; USB_DESC_CFG_ATTRIBUTES_REMOTE_WAKEUP_SHIFT),&lt;BR /&gt; /* Current draw from bus */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Apparently&amp;nbsp;&lt;SPAN&gt;USBCFG_DEV_SELF_POWER&amp;nbsp; and&amp;nbsp;USBCFG_DEV_REMOTE_WAKEUP are not defined in the descriptor.h file. &amp;nbsp;This I found very&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;strange, because it means the person who did this did not compile this file because they would have realized that these were not included. Weird??? Anyways, after doing a search, I came across this: &amp;nbsp;&lt;A class="link-titled" href="https://github.com/hologram-io/dash-user-boot/blob/master/Generated_Code/SDK/usb/usb_core/device/include/usb_device_config.h" title="https://github.com/hologram-io/dash-user-boot/blob/master/Generated_Code/SDK/usb/usb_core/device/include/usb_device_config.h"&gt;dash-user-boot/usb_device_config.h at master · hologram-io/dash-user-boot · GitHub&lt;/A&gt;&amp;nbsp;which did have the above missing includes and I added them to the descriptor.h file and re-compiled and now the compiler did a&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;successful compile.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Aug 2017 14:00:57 GMT</pubDate>
    <dc:creator>neilporven</dc:creator>
    <dc:date>2017-08-04T14:00:57Z</dc:date>
    <item>
      <title>K64F USB driver for USB Stick</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/K64F-USB-driver-for-USB-Stick/m-p/681678#M7399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to do a USB driver on a K64F that is capable of copying a file into a USB Stick.&lt;/P&gt;&lt;P&gt;I found the following documentation:&amp;nbsp;Creating a New USB project with KSDK and Processor Expert support in KDS&lt;/P&gt;&lt;P&gt;Unfortunately, this example uses Processor Expert, but I can't use Processor Expert on my application. The other&lt;/P&gt;&lt;P&gt;thing is that this example was done for a mouse and not a USB stick. &amp;nbsp;I looked in the KSDK_1.2.0 and the only&lt;/P&gt;&lt;P&gt;other device is a keyboard application. &amp;nbsp;The other thing would be being able to create a file in the USB stick before&lt;/P&gt;&lt;P&gt;I can transfer the information into it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has someone done this, has documentation on doing this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;Neil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jul 2017 20:42:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/K64F-USB-driver-for-USB-Stick/m-p/681678#M7399</guid>
      <dc:creator>neilporven</dc:creator>
      <dc:date>2017-07-24T20:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: K64F USB driver for USB Stick</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/K64F-USB-driver-for-USB-Stick/m-p/681679#M7400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Update,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the USB stick should have been device class: Mass storage&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jul 2017 14:01:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/K64F-USB-driver-for-USB-Stick/m-p/681679#M7400</guid>
      <dc:creator>neilporven</dc:creator>
      <dc:date>2017-07-27T14:01:14Z</dc:date>
    </item>
    <item>
      <title>Re: K64F USB driver for USB Stick</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/K64F-USB-driver-for-USB-Stick/m-p/681680#M7401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Update,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The KSDK_1.2.0 has a MSD folder and I am hoping that it is the Mass Storage Device driver that I need. &amp;nbsp;Can someone&lt;/P&gt;&lt;P&gt;from NXP confirm this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Neil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jul 2017 14:56:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/K64F-USB-driver-for-USB-Stick/m-p/681680#M7401</guid>
      <dc:creator>neilporven</dc:creator>
      <dc:date>2017-07-28T14:56:20Z</dc:date>
    </item>
    <item>
      <title>Re: K64F USB driver for USB Stick</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/K64F-USB-driver-for-USB-Stick/m-p/681681#M7402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Update,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the following example:&amp;nbsp;Creating a New USB project with KSDK and Processor Expert support in KDS, I been trying&lt;/P&gt;&lt;P&gt;to build a USB project that is Bare Metal (no PE). &amp;nbsp;Unfortunately, after fighting multiple issues, I compiled the example and&amp;nbsp;&lt;/P&gt;&lt;P&gt;have the following errors coming from usb_descriptor.c and usb_descriptor.h:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="descriptor.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/9110iD37C784E0AC3D473/image-size/large?v=v2&amp;amp;px=999" role="button" title="descriptor.jpg" alt="descriptor.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not even sure if I need to include usb_descriptor.c and usb_descriptor.h. &amp;nbsp;The example was used&lt;/P&gt;&lt;P&gt;for a Mouse device (HID) and I am trying to use an USB stick device (MSD - Mass Storage Device).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone tell me if I need to even include the descriptors and if so, why am I getting these errors.&lt;/P&gt;&lt;P&gt;By the way, here is a picture of my include paths:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Paths.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/9111i231317E6308FDE9A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Paths.jpg" alt="Paths.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Neil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Aug 2017 18:40:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/K64F-USB-driver-for-USB-Stick/m-p/681681#M7402</guid>
      <dc:creator>neilporven</dc:creator>
      <dc:date>2017-08-03T18:40:45Z</dc:date>
    </item>
    <item>
      <title>Re: K64F USB driver for USB Stick</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/K64F-USB-driver-for-USB-Stick/m-p/681682#M7403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Update,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to get some of the errors removed, by adding additional paths and by copying a&amp;nbsp;&lt;/P&gt;&lt;P&gt;new descriptor.c and descriptor .h file. &amp;nbsp;Since I want the USB driver to be a host and not a&lt;/P&gt;&lt;P&gt;device as in the MOUSE example being used, I copied the descriptor.c and descriptor.h&lt;/P&gt;&lt;P&gt;files from the following project "frdmk64_usb_msd" which can be found in the forum by doing a&amp;nbsp;&lt;/P&gt;&lt;P&gt;search. &amp;nbsp;Once I recompiled, I was still getting an error here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;uint8_t g_config_descriptor[CONFIG_DESC_SIZE] =&lt;BR /&gt;{&lt;BR /&gt; /* Configuration Descriptor Size - always 9 bytes*/&lt;BR /&gt; CONFIG_ONLY_DESC_SIZE,&lt;BR /&gt; /* "Configuration" type of descriptor */&lt;BR /&gt; USB_CONFIG_DESCRIPTOR,&lt;BR /&gt; /* Total length of the Configuration descriptor */&lt;BR /&gt; USB_uint_16_low(CONFIG_DESC_SIZE), USB_uint_16_high(CONFIG_DESC_SIZE),&lt;BR /&gt; /* NumInterfaces */&lt;BR /&gt; CONFIG_DESC_NUM_INTERFACES_SUPPOTED,&lt;BR /&gt; /* Configuration Value */&lt;BR /&gt; 1,&lt;BR /&gt; /* Configuration Description String Index */&lt;BR /&gt; 0,&lt;BR /&gt; /* Attributes.support RemoteWakeup and self power */&lt;BR /&gt; (USB_DESC_CFG_ATTRIBUTES_D7_POS) | (USBCFG_DEV_SELF_POWER &amp;lt;&amp;lt; USB_DESC_CFG_ATTRIBUTES_SELF_POWERED_SHIFT) | (USBCFG_DEV_REMOTE_WAKEUP &amp;lt;&amp;lt; USB_DESC_CFG_ATTRIBUTES_REMOTE_WAKEUP_SHIFT),&lt;BR /&gt; /* Current draw from bus */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Apparently&amp;nbsp;&lt;SPAN&gt;USBCFG_DEV_SELF_POWER&amp;nbsp; and&amp;nbsp;USBCFG_DEV_REMOTE_WAKEUP are not defined in the descriptor.h file. &amp;nbsp;This I found very&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;strange, because it means the person who did this did not compile this file because they would have realized that these were not included. Weird??? Anyways, after doing a search, I came across this: &amp;nbsp;&lt;A class="link-titled" href="https://github.com/hologram-io/dash-user-boot/blob/master/Generated_Code/SDK/usb/usb_core/device/include/usb_device_config.h" title="https://github.com/hologram-io/dash-user-boot/blob/master/Generated_Code/SDK/usb/usb_core/device/include/usb_device_config.h"&gt;dash-user-boot/usb_device_config.h at master · hologram-io/dash-user-boot · GitHub&lt;/A&gt;&amp;nbsp;which did have the above missing includes and I added them to the descriptor.h file and re-compiled and now the compiler did a&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;successful compile.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Aug 2017 14:00:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/K64F-USB-driver-for-USB-Stick/m-p/681682#M7403</guid>
      <dc:creator>neilporven</dc:creator>
      <dc:date>2017-08-04T14:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: K64F USB driver for USB Stick</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/K64F-USB-driver-for-USB-Stick/m-p/681683#M7404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Neil:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you solved this issue?&amp;nbsp; Can I suggest you download the latest KSDK? It is more stable and easier to use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is one example in the installation folder, it executes some FatFS APIs to test the attached device.&amp;nbsp; You can check the read me file under this folder.&lt;/P&gt;&lt;P&gt;SDK_2.2_TWR-K64F120M\boards\twrk64f120m\usb_examples\usb_host_msd_fatfs\&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can download the latest&amp;nbsp; MCUXpress ( KSDK)&amp;nbsp; from the below link&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://mcuxpresso.nxp.com/en/welcome" title="https://mcuxpresso.nxp.com/en/welcome"&gt;Welcome to MCUXpresso | MCUXpresso Config Tools&lt;/A&gt;&amp;nbsp;&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>Thu, 10 Aug 2017 08:23:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/K64F-USB-driver-for-USB-Stick/m-p/681683#M7404</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2017-08-10T08:23:41Z</dc:date>
    </item>
    <item>
      <title>Re: K64F USB driver for USB Stick</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/K64F-USB-driver-for-USB-Stick/m-p/681684#M7405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes this issue was resolved, now I am fighting with the other post you answered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as moving to the latest KSDK, I don't want to do just yet. &amp;nbsp;I have the SD card portion working on&amp;nbsp;&lt;/P&gt;&lt;P&gt;the KSDK_1.3.0 and I would like to get the USB msd portion working on the same KSDK, so that I am&lt;/P&gt;&lt;P&gt;not creating more issues on top of something that is already working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for picking up this post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Neil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2017 18:39:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/K64F-USB-driver-for-USB-Stick/m-p/681684#M7405</guid>
      <dc:creator>neilporven</dc:creator>
      <dc:date>2017-08-10T18:39:12Z</dc:date>
    </item>
  </channel>
</rss>

