<?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>Kinetis Software Development Kit中的主题 Re: K64F KDS_3.1 + KSDK_1.3.0 USB/SD using FatFs</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/K64F-KDS-3-1-KSDK-1-3-0-USB-SD-using-FatFs/m-p/694773#M7468</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Don,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am at the point where I am able to use the FATFS on the USB and I tied all the USB libraries.&amp;nbsp; Unfortunately, I been struggling with an example&lt;/P&gt;&lt;P&gt;I am following.&amp;nbsp; The example uses Tasks which is part of the OS, although the project was written for Baremetal??? Weird!!! Anyways, it seems&lt;/P&gt;&lt;P&gt;that once the example project starts working, its locked in a endless loop that does not come out.&amp;nbsp; I am trying to figure out how to make it come&lt;/P&gt;&lt;P&gt;out that way I can service other routines in my application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Neil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Oct 2017 12:20:24 GMT</pubDate>
    <dc:creator>neilporven</dc:creator>
    <dc:date>2017-10-16T12:20:24Z</dc:date>
    <item>
      <title>K64F KDS_3.1 + KSDK_1.3.0 USB/SD using FatFs</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/K64F-KDS-3-1-KSDK-1-3-0-USB-SD-using-FatFs/m-p/694766#M7461</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 have a custom board which has a USB connection and a micro SD card connection. &amp;nbsp;I am currently&amp;nbsp;collecting&lt;/P&gt;&lt;P&gt;data on the micro SD card (as a data logger), but I would also like be able to insert a USB stick and read a file&lt;/P&gt;&lt;P&gt;from it and/or be able to create a file and write to it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am confused if I should be following a USB host example project or should I be using the device example project?&lt;/P&gt;&lt;P&gt;These are both located in the Kinetics-&amp;gt;KSDK_1.3.0-&amp;gt;examples-&amp;gt;frdmk64f-&amp;gt;demo_apps-&amp;gt;usb&lt;/P&gt;&lt;P&gt;I need for both the existing SD card code working and the USB (host or device) code working, both will be using&lt;/P&gt;&lt;P&gt;the Chang FatFs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone help me on this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Neil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Aug 2017 14:58:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/K64F-KDS-3-1-KSDK-1-3-0-USB-SD-using-FatFs/m-p/694766#M7461</guid>
      <dc:creator>neilporven</dc:creator>
      <dc:date>2017-08-09T14:58:14Z</dc:date>
    </item>
    <item>
      <title>Re: K64F KDS_3.1 + KSDK_1.3.0 USB/SD using FatFs</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/K64F-KDS-3-1-KSDK-1-3-0-USB-SD-using-FatFs/m-p/694767#M7462</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;If you need to write to/ read from&amp;nbsp; a file from USB stick,&amp;nbsp;&amp;nbsp; usb stick is a device, your custom board is a host.&lt;/P&gt;&lt;P&gt;You can check the msd_fatfs demo&lt;/P&gt;&lt;P&gt;KSDK_1.3.0\examples\frdmk64f\demo_apps\usb\host\msd\msd_fatfs&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 07:41:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/K64F-KDS-3-1-KSDK-1-3-0-USB-SD-using-FatFs/m-p/694767#M7462</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2017-08-10T07:41:13Z</dc:date>
    </item>
    <item>
      <title>Re: K64F KDS_3.1 + KSDK_1.3.0 USB/SD using FatFs</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/K64F-KDS-3-1-KSDK-1-3-0-USB-SD-using-FatFs/m-p/694768#M7463</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;Thank you for pointing me in the right direction. I will take a look at the demo application and&lt;/P&gt;&lt;P&gt;see how its done. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know if I can have both the SD card and the USB working simultaneously using the same&lt;/P&gt;&lt;P&gt;FatFs from Chang?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Neil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2017 20:14:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/K64F-KDS-3-1-KSDK-1-3-0-USB-SD-using-FatFs/m-p/694768#M7463</guid>
      <dc:creator>neilporven</dc:creator>
      <dc:date>2017-08-10T20:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: K64F KDS_3.1 + KSDK_1.3.0 USB/SD using FatFs</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/K64F-KDS-3-1-KSDK-1-3-0-USB-SD-using-FatFs/m-p/694769#M7464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class=""&gt;&lt;A _jive_internal="true" class="" data-content-finding="Community" data-userid="227346" data-username="neilporven" href="https://community.nxp.com/people/neilporven"&gt;Neil Porven&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In theory it is possible to write into several different physical disc, but I have never tried it in practice.&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>Fri, 11 Aug 2017 11:44:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/K64F-KDS-3-1-KSDK-1-3-0-USB-SD-using-FatFs/m-p/694769#M7464</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2017-08-11T11:44:23Z</dc:date>
    </item>
    <item>
      <title>Re: K64F KDS_3.1 + KSDK_1.3.0 USB/SD using FatFs</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/K64F-KDS-3-1-KSDK-1-3-0-USB-SD-using-FatFs/m-p/694770#M7465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Daniel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Aug 2017 13:09:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/K64F-KDS-3-1-KSDK-1-3-0-USB-SD-using-FatFs/m-p/694770#M7465</guid>
      <dc:creator>neilporven</dc:creator>
      <dc:date>2017-08-11T13:09:46Z</dc:date>
    </item>
    <item>
      <title>Re: K64F KDS_3.1 + KSDK_1.3.0 USB/SD using FatFs</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/K64F-KDS-3-1-KSDK-1-3-0-USB-SD-using-FatFs/m-p/694771#M7466</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;I imported the project and noticed that the fatfs file did not contain the file fsl_usb_disk, which contains&lt;/P&gt;&lt;P&gt;the msd_diskio.c and .h files. &amp;nbsp;My first question is of course aren't these files needed?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second, after I compiled the project, it complained about the following library libusbh_bm.a &amp;nbsp; I noticed that&lt;/P&gt;&lt;P&gt;a Read.pdf document in the sample project stated that the following libraries are needed:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;install_dir&amp;gt;/usb/usb_core/host/lib/bm/&amp;lt;tool_chain&amp;gt;/&amp;lt;soc_name&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;install_dir&amp;gt;/lib/ksdk_platform_lib/&amp;lt;tool_chain&amp;gt;/&amp;lt;platform&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have some questions regarding this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Where am I suppose to place these libraries and how?&lt;/P&gt;&lt;P&gt;2. What do these libraries do for the project itself?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Neil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Aug 2017 18:21:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/K64F-KDS-3-1-KSDK-1-3-0-USB-SD-using-FatFs/m-p/694771#M7466</guid>
      <dc:creator>neilporven</dc:creator>
      <dc:date>2017-08-11T18:21:01Z</dc:date>
    </item>
    <item>
      <title>Re: K64F KDS_3.1 + KSDK_1.3.0 USB/SD using FatFs</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/K64F-KDS-3-1-KSDK-1-3-0-USB-SD-using-FatFs/m-p/694772#M7467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't know whether or not you ever found any of the items that you were looking for.&amp;nbsp; FatFs talks to a file called "diskio.c" which is included in the FatFs folder of the SDK.&amp;nbsp; "diskio.c" talks to some combination of "fsl_mmc_disk.c", "fsl_ram_disk.c", "fsl_sd_disk.c", "fsl_sdspi_disk.c", and "fsl_usb_disk.c" depending on which physical device types you want to interact with as a FAT file system.&amp;nbsp; All of these files are in the SDK as well (&amp;lt;sdk dir&amp;gt;\middleware\fatfs_0.12b\src).&amp;nbsp; There are several other files that you will need to add to your project as well:&amp;nbsp; event.c, fsl_sd.c, fsl_sdmmc.c, get_fattime.c.&amp;nbsp; The two "fsl_*" files can be found in the SDK (along with the additional header files that they reference: fsl_card.h, fsl_specification.h, sdhc_config.h).&amp;nbsp; The "event.c" file must be written by you, but at least a couple of examples of this file are included in the SDK tree.&amp;nbsp; I am still looking for an example implementation of the get_fattime() function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would encourage you to visit the FATFS web site as a newer version is available (0.13) along with 2 bug fix patches.&amp;nbsp; Beyond that, I cannot be much help to you--I have only ever tied FATFS to an SD card, so the missing USB libraries are outside of my experience.&amp;nbsp; Hope this helps, even though this doesn't address your original question.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Oct 2017 14:50:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/K64F-KDS-3-1-KSDK-1-3-0-USB-SD-using-FatFs/m-p/694772#M7467</guid>
      <dc:creator>donelmore</dc:creator>
      <dc:date>2017-10-14T14:50:13Z</dc:date>
    </item>
    <item>
      <title>Re: K64F KDS_3.1 + KSDK_1.3.0 USB/SD using FatFs</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/K64F-KDS-3-1-KSDK-1-3-0-USB-SD-using-FatFs/m-p/694773#M7468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Don,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am at the point where I am able to use the FATFS on the USB and I tied all the USB libraries.&amp;nbsp; Unfortunately, I been struggling with an example&lt;/P&gt;&lt;P&gt;I am following.&amp;nbsp; The example uses Tasks which is part of the OS, although the project was written for Baremetal??? Weird!!! Anyways, it seems&lt;/P&gt;&lt;P&gt;that once the example project starts working, its locked in a endless loop that does not come out.&amp;nbsp; I am trying to figure out how to make it come&lt;/P&gt;&lt;P&gt;out that way I can service other routines in my application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Neil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2017 12:20:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/K64F-KDS-3-1-KSDK-1-3-0-USB-SD-using-FatFs/m-p/694773#M7468</guid>
      <dc:creator>neilporven</dc:creator>
      <dc:date>2017-10-16T12:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: K64F KDS_3.1 + KSDK_1.3.0 USB/SD using FatFs</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/K64F-KDS-3-1-KSDK-1-3-0-USB-SD-using-FatFs/m-p/694774#M7469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What problem are you having?&amp;nbsp; Are you using FreeRTOS?&amp;nbsp; I have a bit of experience w/ FreeRTOS, so maybe I could help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2017 14:11:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/K64F-KDS-3-1-KSDK-1-3-0-USB-SD-using-FatFs/m-p/694774#M7469</guid>
      <dc:creator>donelmore</dc:creator>
      <dc:date>2017-10-16T14:11:10Z</dc:date>
    </item>
    <item>
      <title>Re: K64F KDS_3.1 + KSDK_1.3.0 USB/SD using FatFs</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/K64F-KDS-3-1-KSDK-1-3-0-USB-SD-using-FatFs/m-p/694775#M7470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Don,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take a look at this thread:&amp;nbsp;&lt;A href="https://community.nxp.com/thread/461422"&gt;https://community.nxp.com/thread/461422&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The example I am following doesn't use FreeRTOS, is BM(Bare Metal), I fully explain what is happening in the thread.&lt;/P&gt;&lt;P&gt;Any help will be great.&lt;/P&gt;&lt;P&gt;Neil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2017 15:25:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/K64F-KDS-3-1-KSDK-1-3-0-USB-SD-using-FatFs/m-p/694775#M7470</guid>
      <dc:creator>neilporven</dc:creator>
      <dc:date>2017-10-16T15:25:40Z</dc:date>
    </item>
  </channel>
</rss>

