<?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 Microcontrollers中的主题 Re: MKV10/11 SD Card Library</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKV10-11-SD-Card-Library/m-p/928848#M54018</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the clarification. I will also start reviewing the uTasker. I need to add the SD card functionality to an ongoing project which was developed by bare-metal C, so I asked it if it supports bare-metal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Abdullah.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Sep 2019 11:27:43 GMT</pubDate>
    <dc:creator>abdullah_cinar</dc:creator>
    <dc:date>2019-09-17T11:27:43Z</dc:date>
    <item>
      <title>MKV10/11 SD Card Library</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKV10-11-SD-Card-Library/m-p/928842#M54012</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'm trying to find a&amp;nbsp;bare-metal SD card library driven by DSPI for MKV11 series microcontrollers. Is there any example for something like port to FATFS?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to know if there is already a pre-used library before I start writing my own.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Abdullah.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit: I attached the KV11 project that works. See the last post, I couldn't attach file there so I did it here.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Sep 2019 12:15:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKV10-11-SD-Card-Library/m-p/928842#M54012</guid>
      <dc:creator>abdullah_cinar</dc:creator>
      <dc:date>2019-09-16T12:15:10Z</dc:date>
    </item>
    <item>
      <title>Re: MKV10/11 SD Card Library</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKV10-11-SD-Card-Library/m-p/928843#M54013</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;&lt;A href="http://www.utasker.com/kinetis/TWR-KV10Z32.html" target="test_blank"&gt;http://www.utasker.com/kinetis/TWR-KV10Z32.html&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.utasker.com/docs/uTasker/uTasker_utFAT.PDF" target="test_blank"&gt;http://www.utasker.com/docs/uTasker/uTasker_utFAT.PDF&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Open source solution for KV and FAT: Open Source version at &lt;A href="https://github.com/uTasker/uTasker-Kinetis" target="test_blank"&gt;https://github.com/uTasker/uTasker-Kinetis&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Including KV and SD card simulator:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/84941iCD03C26DD9D97C47/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Sep 2019 15:44:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKV10-11-SD-Card-Library/m-p/928843#M54013</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2019-09-16T15:44:34Z</dc:date>
    </item>
    <item>
      <title>Re: MKV10/11 SD Card Library</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKV10-11-SD-Card-Library/m-p/928844#M54014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I thought uTasker is an OS?&amp;nbsp;I need a bare-metal solution if there is, otherwise I will review it and try to write my own.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Sep 2019 05:30:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKV10-11-SD-Card-Library/m-p/928844#M54014</guid>
      <dc:creator>abdullah_cinar</dc:creator>
      <dc:date>2019-09-17T05:30:56Z</dc:date>
    </item>
    <item>
      <title>Re: MKV10/11 SD Card Library</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKV10-11-SD-Card-Library/m-p/928845#M54015</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" data-content-finding="Community" data-userid="269276" data-username="abdullah.cinar" href="https://community.nxp.com/people/abdullah.cinar"&gt;Abdullah Çınar&lt;/A&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;Please check the following information, maybe useful to you:&lt;/P&gt;&lt;P&gt;1. &lt;A href="https://community.nxp.com/docs/DOC-330958"&gt;Porting FatFs file system to KL26 SPI SD card code&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. SDK code for KV11, select the fatfs and sdmmc&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://mcuxpresso.nxp.com/en/builder" title="https://mcuxpresso.nxp.com/en/builder"&gt;https://mcuxpresso.nxp.com/en/builder&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/86822iFA0DE6FBFB7410EC/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Then, you can find the related driver in this folder: SDK_2.6.0_FRDM-KV11Z\middleware&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&gt;Kerry&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Sep 2019 10:08:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKV10-11-SD-Card-Library/m-p/928845#M54015</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2019-09-17T10:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: MKV10/11 SD Card Library</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKV10-11-SD-Card-Library/m-p/928846#M54016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kerry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much for your help. I&amp;nbsp;didn't know we can do that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By the way, if I change&amp;nbsp;the device from MKV10Z32 to MKV11Z64, I can add FatFs and I can not select Kinetis Design Studio. Do you know why?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is not possible to proceed with MKV11, I will start with MKV10 and then try to use the drivers in the MKV11 since the APIs are similar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Abdullah.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Sep 2019 10:17:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKV10-11-SD-Card-Library/m-p/928846#M54016</guid>
      <dc:creator>abdullah_cinar</dc:creator>
      <dc:date>2019-09-17T10:17:41Z</dc:date>
    </item>
    <item>
      <title>Re: MKV10/11 SD Card Library</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKV10-11-SD-Card-Library/m-p/928847#M54017</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;uTasker is a solution and not an OS. It can be run in uTasker scheduling mode (default), in bare-metal mode by removing uTaskerStart() from main() or in FreeRTOS mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bare metal mode saves about 2..3k of code space but loses various features that then need to be added using custom code so it is very rare to use bare-metal mode [&lt;EM&gt;typically only on very small devices where complete code sizes of a few hundred bytes is to be achieved&lt;/EM&gt;] due to the fact the uTasker scheduler is in fact more or less equivalent to a bare-metal project, with an intelligent main() forever loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you just want the utFAT code it is also available at &lt;BR /&gt;&lt;A href="http://www.utasker.com/forum/index.php?topic=1667.0" target="test_blank"&gt;http://www.utasker.com/forum/index.php?topic=1667.0&lt;/A&gt;&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Sep 2019 11:18:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKV10-11-SD-Card-Library/m-p/928847#M54017</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2019-09-17T11:18:19Z</dc:date>
    </item>
    <item>
      <title>Re: MKV10/11 SD Card Library</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKV10-11-SD-Card-Library/m-p/928848#M54018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the clarification. I will also start reviewing the uTasker. I need to add the SD card functionality to an ongoing project which was developed by bare-metal C, so I asked it if it supports bare-metal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Abdullah.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Sep 2019 11:27:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKV10-11-SD-Card-Library/m-p/928848#M54018</guid>
      <dc:creator>abdullah_cinar</dc:creator>
      <dc:date>2019-09-17T11:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: MKV10/11 SD Card Library</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKV10-11-SD-Card-Library/m-p/928849#M54019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kerry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I included all the necessary files from the Kinetis SDK FatFS folders to my project. I am trying to run the "fsl_sdspi_disk".&lt;/P&gt;&lt;P&gt;I filled up the necessary configuration&amp;nbsp;defines (spi_base, spi_cs).&lt;/P&gt;&lt;P&gt;I added the pin mux calls to init boot pin settings.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I&amp;nbsp;get an error when I try to open a new file. Do you know where to start testing the library to know the cause of the error?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the routine in my main.c file. I get "FR_OK" when I call "f_mount" but I get "FR_NOT_READY" when I call "f_open".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_7.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/87096i8E3D912E1883F3A0/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_7.png" alt="pastedImage_7.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Sep 2019 13:40:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKV10-11-SD-Card-Library/m-p/928849#M54019</guid>
      <dc:creator>abdullah_cinar</dc:creator>
      <dc:date>2019-09-17T13:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: MKV10/11 SD Card Library</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKV10-11-SD-Card-Library/m-p/928850#M54020</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;It is generally quite easy to integrate existing bare metal code into the project - see chapter 8 of&lt;BR /&gt;&lt;A href="http://www.utasker.com/docs/uTasker/uTaskerV1.4_user_guide.PDF" target="test_blank"&gt;http://www.utasker.com/docs/uTasker/uTaskerV1.4_user_guide.PDF&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It then allows improvements in efficiency and use of dynamic low power (etc.) to be achieved by removing typical bare metal blocking operation with event driven techniques.&lt;BR /&gt;If peripheral drivers from the uTasker library can be used it then gives full simulation of the chip and the project which allows accelerated development and debugging capabilities that can help further slash project development times and costs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/512558" target="test_blank"&gt;https://community.nxp.com/thread/512558&lt;/A&gt;&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Sep 2019 14:04:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKV10-11-SD-Card-Library/m-p/928850#M54020</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2019-09-17T14:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: MKV10/11 SD Card Library</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKV10-11-SD-Card-Library/m-p/928851#M54021</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" data-content-finding="Community" data-userid="269276" data-username="abdullah.cinar" href="https://community.nxp.com/people/abdullah.cinar"&gt;Abdullah Çınar&lt;/A&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp; I have checked the KDS, both KV10 and KV11 is supported.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/87766i08490C9D7B9F3794/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So you KV11 can use KDS IDE, but now, KDS won't update the new chip, we have transferred to the MCUXpresso IDE.&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&gt;Kerry&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Sep 2019 02:21:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKV10-11-SD-Card-Library/m-p/928851#M54021</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2019-09-18T02:21:48Z</dc:date>
    </item>
    <item>
      <title>Re: MKV10/11 SD Card Library</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKV10-11-SD-Card-Library/m-p/928852#M54022</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" data-userid="269276" data-username="abdullah.cinar" href="https://community.nxp.com/people/abdullah.cinar"&gt;Abdullah Çınar&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;When you meet the problem, I think you need to check the SD card initialization code at first, can you connect to the SD card, and do the sd card read and write operation? When that function works, then you can add the fatfs again.&lt;/P&gt;&lt;P&gt;Kerry&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Sep 2019 02:23:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKV10-11-SD-Card-Library/m-p/928852#M54022</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2019-09-18T02:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: MKV10/11 SD Card Library</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKV10-11-SD-Card-Library/m-p/928853#M54023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kerry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I already use KDS for KV11, but I couldn't add the FatFS middleware to SDK package of KV11. But it's okay, I downloaded the FatFS middleware for KV10 and I translated them since I'm also familiar with KV10.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since this project is in production, I can not migrate the whole project to MCUXpresso, for now, I only need to add the SD card interface.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Sep 2019 09:18:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKV10-11-SD-Card-Library/m-p/928853#M54023</guid>
      <dc:creator>abdullah_cinar</dc:creator>
      <dc:date>2019-09-18T09:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: MKV10/11 SD Card Library</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKV10-11-SD-Card-Library/m-p/928854#M54024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kerry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried debugging the&amp;nbsp;f_mount function and also the functions inside it. But I think it is hard to say what's wrong without scoping the board. I'm trying to understand the communication stages and the spi specs to understand what is going on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Abdullah.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Sep 2019 09:22:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKV10-11-SD-Card-Library/m-p/928854#M54024</guid>
      <dc:creator>abdullah_cinar</dc:creator>
      <dc:date>2019-09-18T09:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: MKV10/11 SD Card Library</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKV10-11-SD-Card-Library/m-p/928855#M54025</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" data-content-finding="Community" data-userid="269276" data-username="abdullah.cinar" href="https://community.nxp.com/people/abdullah.cinar"&gt;Abdullah Çınar&lt;/A&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp; You need to debug the disk_initialize, disk_write and disk_read in the diskio.c at first, if these function can works OK, it means your SD card communication is OK, otherwise, you still need to check the sd card communication level, not the fatfst file side.&lt;/P&gt;&lt;P&gt;Kerry&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Sep 2019 01:59:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKV10-11-SD-Card-Library/m-p/928855#M54025</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2019-09-19T01:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: MKV10/11 SD Card Library</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKV10-11-SD-Card-Library/m-p/928856#M54026</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;See sections 2 and 3 of &lt;A href="http://www.utasker.com/docs/uTasker/uTasker_utFAT.PDF" target="test_blank"&gt;http://www.utasker.com/docs/uTasker/uTasker_utFAT.PDF&lt;/A&gt; for the relevant details for SPI mode and a reference to the SPI signals that should be used.&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Sep 2019 02:16:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKV10-11-SD-Card-Library/m-p/928856#M54026</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2019-09-19T02:16:23Z</dc:date>
    </item>
    <item>
      <title>Re: MKV10/11 SD Card Library</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKV10-11-SD-Card-Library/m-p/928857#M54027</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;If you have a FRDM-KV11Z board you can load a reference binary (attached) which adds SD card support to the following pins:&lt;/P&gt;&lt;P&gt;PTC5 = SPI0_CLK&lt;BR /&gt;PTC6 = SPI0_SOUT&lt;BR /&gt;PTC7 = SPI0_SIN&lt;BR /&gt;PTC1 = chip select&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the OpenSDA VCOM UART there is a DOS-like interface (115kBaud) [menu 8 - utFAT Disk Interface] which allows formatting, listing card content, moving between directories, creating, renaming, etc and also viewing details of files and their objects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;&amp;nbsp; Disk interface&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;===================&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;up&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; go to main menu&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;info&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; utFAT/card info&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;dir&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [path] show directory content&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;dird&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [path] show deleted directory content&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;dirh&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [path] show hidden content&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;infof&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [path] show file info&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;infod&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [path] show deleted info&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;cd&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [path] change dir. (.. for up)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;comp&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; compare [file1] with [file2]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;file&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [path] new empty file&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;write&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [path] test write to file&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;mkdir&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; new empty dir&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;rename&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [from] [to] rename&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;trunc&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; truncate to [length] [path]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;copy&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [file1] to [file2]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;hide&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [path] file/dir to hide&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;unhide&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [path] file/dir to un-hide&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;prot&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [path] file/dir to write-protect&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;unprot&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [path] file/dir to un-protet&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;print&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [path] print file content&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;del&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [path] delete file or dir.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;undel&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; undelete [name]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;format&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [-16/12] [label] format (unformatted) disk&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;fformat&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [-16/12] [label] full format (unformatted) disk&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;re-format&amp;nbsp;&amp;nbsp;&amp;nbsp; [-16/12] [label] reformat disk!!!!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;re-fformat&amp;nbsp;&amp;nbsp; [-16/12] [label] full reformat disk!!!!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;sect&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [hex no.] display sector&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;help&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Display menu specific help&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;quit&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Leave command mode&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Visuals Studio it can also be tested (simulates the board, the KV11 and the SD card) if build from the uTasker project:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_6.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/82959iAEA9A99B519FD46B/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_6.png" alt="pastedImage_6.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you measure the signals you can also see a reference as to what is sent to the card so that you can work on solving the porting problems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a standard solution in the uTasker project that works on any Kinetis part (with enough memory for a FAT - on any SPI or SDHC) without porting requirements (and on memory sticks when USB host is available). It allows professional projects to benefit from immediate complete and mature solutions rather than requiring porting from examples (projects can also be switched between processors without needing different libraries and re-porting efforts)&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Sep 2019 03:36:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKV10-11-SD-Card-Library/m-p/928857#M54027</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2019-09-19T03:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: MKV10/11 SD Card Library</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKV10-11-SD-Card-Library/m-p/928858#M54028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I finally got it working!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue was related to DSPI SCK driving. The problem has been solved when I added below delays (current values are given for default SDSPI baudrates, you may need to change them for different initial SPI speeds.).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/91883i3273866E253E310D/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had to write my own routine to test the sd card by the CMD0 and check the R1 response. I realized that the SCK was skipping one low sequence between consecutive bytes. So I changed the delay configurations of the DSPI driver library in spi_init function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By the way, there is no SDSDPI middleware library for MKV11, I migrated the MKV10 files to MKV11.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For anyone who has the same problem; &lt;STRONG&gt;I attached my MKV11 project which includes this migrated library to the first post, it works for me&lt;/STRONG&gt;. The main routine has 2 option, first is to test the CMD0 command manually after calling the spi_init function. The second option is to use the FAT, you can enable the first option and scope the signals if you have a problem. Sorry the source code is a mess since it just worked and I didn't need to beautify it for now, but I guess it will be easy to understand the basics.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used SDK 2.6.0 for MKV11 in MCUXpresso IDE and 4GB Fat32 SanDisk SD Card.&amp;nbsp;By the way, I had 47K pull-ups on the MOSI, MISO and SCK lines but it didn't work until I replace them with 10K ohms.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Oct 2019 09:31:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKV10-11-SD-Card-Library/m-p/928858#M54028</guid>
      <dc:creator>abdullah_cinar</dc:creator>
      <dc:date>2019-10-02T09:31:07Z</dc:date>
    </item>
  </channel>
</rss>

