<?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: Adding SD Functionality in host_msd_fatfs_freertos in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Adding-SD-Functionality-in-host-msd-fatfs-freertos/m-p/979285#M55432</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe I found why it doesn't allow SDDISK to be mounted, I guess I need to change something on ffconfig.h. Should I use different ffconfig.h, ff.h and ff.c for SD and USB? Because some variables setting are different in the file. For example,&amp;nbsp;FF_FS_RPATH is 0 in USB, and 2 in SD card.&amp;nbsp;FF_FS_RPATH shows up many times in ff.c. Should I change this variable FF_FS_RPATH as well as ff.c so that they are not conflict.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone has experience of using multi-drive in Fatfs can help me out?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Charles&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Mar 2020 18:27:03 GMT</pubDate>
    <dc:creator>charles2</dc:creator>
    <dc:date>2020-03-04T18:27:03Z</dc:date>
    <item>
      <title>Adding SD Functionality in host_msd_fatfs_freertos</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Adding-SD-Functionality-in-host-msd-fatfs-freertos/m-p/979284#M55431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am testing some functionalities on FDRM - K66 board. Currently, I would like to add SDDISK to the existing "Host_msd_fatfs_freertos" example, which is only working for the USB stick originally.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to add the codes to test the speed that SD card can read/write data from USB stick. The codes I modified are in the function&amp;nbsp;USB_HostMsdFatfsThroughputTest(..). Why it gives me error when I tried to use f_mount(&amp;amp;fatfs, test_file_name1, 1) with sprintf(test_file_name1, "%c:", SDDISK + '0');. If I change the last parameter of f_mount from 1 to 0, it works. Does it only allow one DISK mounting to FATFS&amp;nbsp;each time?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I changed the last parameter from 1 to 0, then it failed when I tried to use&amp;nbsp;f_unlink() or&amp;nbsp;f_open() for the SD card, they all return error code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions or documents I can read through?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2020 16:01:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Adding-SD-Functionality-in-host-msd-fatfs-freertos/m-p/979284#M55431</guid>
      <dc:creator>charles2</dc:creator>
      <dc:date>2020-03-03T16:01:22Z</dc:date>
    </item>
    <item>
      <title>Re: Adding SD Functionality in host_msd_fatfs_freertos</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Adding-SD-Functionality-in-host-msd-fatfs-freertos/m-p/979285#M55432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe I found why it doesn't allow SDDISK to be mounted, I guess I need to change something on ffconfig.h. Should I use different ffconfig.h, ff.h and ff.c for SD and USB? Because some variables setting are different in the file. For example,&amp;nbsp;FF_FS_RPATH is 0 in USB, and 2 in SD card.&amp;nbsp;FF_FS_RPATH shows up many times in ff.c. Should I change this variable FF_FS_RPATH as well as ff.c so that they are not conflict.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone has experience of using multi-drive in Fatfs can help me out?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Charles&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Mar 2020 18:27:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Adding-SD-Functionality-in-host-msd-fatfs-freertos/m-p/979285#M55432</guid>
      <dc:creator>charles2</dc:creator>
      <dc:date>2020-03-04T18:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: Adding SD Functionality in host_msd_fatfs_freertos</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Adding-SD-Functionality-in-host-msd-fatfs-freertos/m-p/979286#M55433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Charles:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer to below link for the meaning of FF_FS_RPATH,&amp;nbsp; &lt;A class="link-titled" href="http://elm-chan.org/fsw/ff/doc/filename.html#nam" title="http://elm-chan.org/fsw/ff/doc/filename.html#nam"&gt;FatFs - Path Names&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0px 0px 0.3em 1em; padding: 0px; border-width: 0px; color: #000000; font-family: serif; font-size: medium; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #e0ffff; text-decoration-style: initial; text-decoration-color: initial;"&gt;In default configuration (&lt;TT style="margin: 0px 0.2em; padding: 0px; border-width: 0px; font-size: 0.85em; font-family: Consolas, 'Courier New', monospace;"&gt;&lt;A href="http://elm-chan.org/fsw/ff/doc/config.html#fs_rpath" style="margin: 0px; padding: 0px; border-width: 0px; color: darkmagenta;"&gt;FF_FS_RPATH&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;== 0&lt;/TT&gt;), it does not have a concept of current directory like OS oriented filesystem. Every object on the volume is always specified in full path name that followed from the root directory. Dot directory names (&lt;TT style="margin: 0px 0.2em; padding: 0px; border-width: 0px; font-size: 0.85em; font-family: Consolas, 'Courier New', monospace;"&gt;".", ".."&lt;/TT&gt;) are not allowed. Heading separator is ignored and it can be exist or omitted. The default drive is fixed to drive 0.&lt;/P&gt;&lt;P style="margin: 0px 0px 0.3em 1em; padding: 0px; border-width: 0px; color: #000000; font-family: serif; font-size: medium; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #e0ffff; text-decoration-style: initial; text-decoration-color: initial;"&gt;When relative path is enabled (&lt;TT style="margin: 0px 0.2em; padding: 0px; border-width: 0px; font-size: 0.85em; font-family: Consolas, 'Courier New', monospace;"&gt;FF_FS_RPATH &amp;gt;= 1&lt;/TT&gt;), specified path is followed from the root directory if a heading separator is exist. If not, it is followed from the current directory of the drive set by&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="http://elm-chan.org/fsw/ff/doc/chdir.html" style="margin: 0px; padding: 0px; border-width: 0px; color: darkmagenta;"&gt;&lt;TT style="margin: 0px 0.2em; padding: 0px; border-width: 0px; font-size: 0.85em; font-family: Consolas, 'Courier New', monospace;"&gt;f_chdir&lt;/TT&gt;&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;function. Dot names are also allowed for the path names. The default drive is the current drive set by&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="http://elm-chan.org/fsw/ff/doc/chdrive.html" style="margin: 0px; padding: 0px; border-width: 0px; color: darkmagenta;"&gt;&lt;TT style="margin: 0px 0.2em; padding: 0px; border-width: 0px; font-size: 0.85em; font-family: Consolas, 'Courier New', monospace;"&gt;f_chdrive&lt;/TT&gt;&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have a sdcard_fatfs_freertos demo in SDK.&lt;/P&gt;&lt;P&gt;SDK_2.7.0_EVK-MIMXRT1064\boards\evkmimxrt1064\sdmmc_examples\sdcard_fatfs_freertos&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, 05 Mar 2020 07:14:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Adding-SD-Functionality-in-host-msd-fatfs-freertos/m-p/979286#M55433</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2020-03-05T07:14:52Z</dc:date>
    </item>
  </channel>
</rss>

