<?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: K64 SD-card question!? in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K64-SD-card-question/m-p/511543#M32329</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Runar,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Did you add the heard file path in the MDK options?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; project-&amp;gt;options-&amp;gt;c/c++-&amp;gt;include paths, please add the fatfs file path, then compile it again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jingjing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Apr 2016 02:56:55 GMT</pubDate>
    <dc:creator>kerryzhou</dc:creator>
    <dc:date>2016-04-21T02:56:55Z</dc:date>
    <item>
      <title>K64 SD-card question!?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K64-SD-card-question/m-p/511538#M32324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey! I am doing a project (bachelor thesis) with the K64F. (Regulation/Testing of an active load). I want to be able to store data somehow, and I would like transfer it over SD-card. I don’t have a lot of knowledge about coding, and would like an example of how to set it up. I tried finding it in SDK (v3), but it seems there is no example for SD with this microcontroller. I’m coding in Keil (uvision) and was hoping to hear if someone had an example they cared to share! Best regards, Runar. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2016 15:42:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K64-SD-card-question/m-p/511538#M32324</guid>
      <dc:creator>runarhaaskjold</dc:creator>
      <dc:date>2016-04-18T15:42:53Z</dc:date>
    </item>
    <item>
      <title>Re: K64 SD-card question!?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K64-SD-card-question/m-p/511539#M32325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Runar Haaskjol,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Please refer to this document:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-105852"&gt;FatFs + SDHC data logger with KSDK in Kinetis Design Studio&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; This document is the SD card KSDK code, the project is the KDS project, the test platform is FRDM-K64.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&gt;If you still have question, please contact me!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jingjing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2016 09:40:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K64-SD-card-question/m-p/511539#M32325</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2016-04-19T09:40:46Z</dc:date>
    </item>
    <item>
      <title>Re: K64 SD-card question!?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K64-SD-card-question/m-p/511540#M32326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey. Thanks for your reply. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to use this example in Keil aswell?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2016 10:29:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K64-SD-card-question/m-p/511540#M32326</guid>
      <dc:creator>runarhaaskjold</dc:creator>
      <dc:date>2016-04-19T10:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: K64 SD-card question!?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K64-SD-card-question/m-p/511541#M32327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Runar,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I don't have the SDcare keil project now, but you can use the KSDK keil project,&amp;nbsp; and put this SD card code to the keil project.&lt;/P&gt;&lt;P&gt;&amp;nbsp; You can try it on your side, it is not difficult.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If you have any question in your keil project migration, you can let me know!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jingjing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2016 02:32:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K64-SD-card-question/m-p/511541#M32327</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2016-04-20T02:32:49Z</dc:date>
    </item>
    <item>
      <title>Re: K64 SD-card question!?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K64-SD-card-question/m-p/511542#M32328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 11.5pt; font-family: Helvetica, sans-serif;"&gt;Hey again &lt;/SPAN&gt;&lt;SPAN style="color: #51626f; font-size: 11.5pt; font-family: 'Arial',sans-serif;"&gt;Jingjing. Thank you for taking the time with me. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-size: 11.5pt; font-family: Helvetica, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&lt;SPAN style="font-size: 11.5pt; font-family: 'Arial',sans-serif; color: #51626f;"&gt;So what i've done over the last couple of days, is trying to implement the files needed to run the program. I've managed to put the ff.h, diskio.h and ffconf.h aswell as the needed fsl. files into Keil. (The headers files is included and defined into main.c).&amp;nbsp;&amp;nbsp; &lt;BR /&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 11.5pt; font-family: 'Arial',sans-serif; color: #51626f;"&gt;Though when I try to compile it, it seems as it does not find the ff header files for some reason and I get the following errors:&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&lt;SPAN style="font-size: 11.5pt; font-family: 'Arial',sans-serif; color: #51626f;"&gt;//Im using the dac_adc_demo as base. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.5pt; font-family: Helvetica, sans-serif;"&gt;debug\dac_adc_demo.out: Error: L6218E: Undefined symbol f_chdrive (referred from demo_state_machine.o).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.5pt; font-family: Helvetica, sans-serif;"&gt;I get this for disk_initialize, f_close and some other errors defined in the ff files. (6 all togheter and a “Not enough information to list image symbols”.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.5pt; font-family: Helvetica, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.5pt; font-family: Helvetica, sans-serif;"&gt;I "googled" my erros, and what I concluded with was that I had implemented it wrong, forgot to implement the .c files somehow?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.5pt; font-family: Helvetica, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.5pt; font-family: Helvetica, sans-serif;"&gt;What I did when I included the files, was copying them and adding them to the folders where dac_adc_demo files is. Is there something that I have forgotten to do? I have also stripped down the SD-demo to only include what I need to test. If you got any ideas on what to do/read up on? I’m happy to try anything, cause at the moment I'm kinda blank.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 11.5pt; font-family: Helvetica, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 11.5pt; font-family: Helvetica, sans-serif;"&gt;Again, thanks for taking the time with me! &lt;BR /&gt;Best regards Runar&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2016 10:23:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K64-SD-card-question/m-p/511542#M32328</guid>
      <dc:creator>runarhaaskjold</dc:creator>
      <dc:date>2016-04-20T10:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: K64 SD-card question!?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K64-SD-card-question/m-p/511543#M32329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Runar,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Did you add the heard file path in the MDK options?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; project-&amp;gt;options-&amp;gt;c/c++-&amp;gt;include paths, please add the fatfs file path, then compile it again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jingjing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2016 02:56:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K64-SD-card-question/m-p/511543#M32329</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2016-04-21T02:56:55Z</dc:date>
    </item>
    <item>
      <title>Re: K64 SD-card question!?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K64-SD-card-question/m-p/511544#M32330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 11.5pt; font-family: Helvetica, sans-serif;"&gt;Hey again! &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.5pt; font-family: Helvetica, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.5pt; font-family: Helvetica, sans-serif;"&gt;So I tried deleting the files and implementing them the way you suggest, though with lack of any success. I still get the same errors. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.5pt; font-family: Helvetica, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.5pt; font-family: Helvetica, sans-serif;"&gt;It seems as my files is compiling fine, but when the "linking" (when compiling) shows up, I get the errors. I tried commenting out the ff.h, giving me a lot of erros is my main file which doesn’t pop up when having it there. (So it seems as its included correctly?). &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 11.5pt; font-family: Helvetica, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 11.5pt; font-family: Helvetica, sans-serif;"&gt;I tried deleting all the code from the main; expect initalizing functions and &lt;STRONG&gt;“ds = disk_initialize(SD)”,&lt;/STRONG&gt; giving me the same error as previously…&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 11.5pt; font-family: Helvetica, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 11.5pt; font-family: Helvetica, sans-serif;"&gt;If you have any advice on what to do, I’d appreciate it! Thanks for the help! &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 11.5pt; font-family: Helvetica, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 11.5pt; font-family: Helvetica, sans-serif;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 11.5pt; font-family: Helvetica, sans-serif;"&gt;Runar &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Apr 2016 08:39:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K64-SD-card-question/m-p/511544#M32330</guid>
      <dc:creator>runarhaaskjold</dc:creator>
      <dc:date>2016-04-22T08:39:12Z</dc:date>
    </item>
    <item>
      <title>Re: K64 SD-card question!?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K64-SD-card-question/m-p/511545#M32331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Jingjing. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;So your including worked. Somehow I included the files in an inproper way that my compiler didnt like. I added the .c files after I had changed the file path. (Also i had to include "stdint.h" to diskio, but i may have managed to delete that when trying to find a solution. Thanks for the help! Have a nice weekend!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Best regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Runar &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Apr 2016 09:06:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K64-SD-card-question/m-p/511545#M32331</guid>
      <dc:creator>runarhaaskjold</dc:creator>
      <dc:date>2016-04-22T09:06:16Z</dc:date>
    </item>
    <item>
      <title>Re: K64 SD-card question!?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K64-SD-card-question/m-p/511546#M32332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Jingjing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have some problems with the two functions (in running mode);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;ds = disk_initialize(SD);&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(ds)&lt;/P&gt;&lt;P&gt;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp; printf("\nFailed to initialize SD disk\r\n");&lt;/P&gt;&lt;P&gt;&amp;nbsp; for(;;){}&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;and;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;fr = f_open(&amp;amp;fil, "logdata.txt", FA_WRITE | FA_OPEN_ALWAYS);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(fr)&lt;/P&gt;&lt;P&gt;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp; printf("\nError opening text file\r\n");&lt;/P&gt;&lt;P&gt;&amp;nbsp; for(;;){}&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The if sentence is running constantly, printing the error. Is it software related or related to the sd-card?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The other ones are running fine except this one. Got any ideas what the problem may be?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Runar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Apr 2016 11:26:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K64-SD-card-question/m-p/511546#M32332</guid>
      <dc:creator>runarhaaskjold</dc:creator>
      <dc:date>2016-04-25T11:26:27Z</dc:date>
    </item>
    <item>
      <title>Re: K64 SD-card question!?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K64-SD-card-question/m-p/511547#M32333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Runar,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; You said:&lt;SPAN style="color: #e23d39;"&gt;The if sentence is running constantly, printing the error.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;&amp;nbsp; &lt;SPAN style="color: #303030;"&gt;Do you mean, if run it the first time, it has no error, but if you run the open code constantly, it will printing error.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;&amp;nbsp; Take care, after your open the file, you should close it before the next open.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;&amp;nbsp; so please modify your code like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;ds = disk_initialize(SD);&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(ds)&lt;/P&gt;&lt;P&gt;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp; printf("\nFailed to initialize SD disk\r\n");&lt;/P&gt;&lt;P&gt;&amp;nbsp; for(;;){}&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-size: 10pt;"&gt;fr= f_mount(0, &amp;amp;fs); &lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(fr)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp;&amp;nbsp; printf("\nError mounting file system\r\n");&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt; for(;;){}&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;and;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;fr = f_open(&amp;amp;fil, "logdata.txt", FA_WRITE | FA_OPEN_ALWAYS);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(fr)&lt;/P&gt;&lt;P&gt;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp; printf("\nError opening text file\r\n");&lt;/P&gt;&lt;P&gt;&amp;nbsp; for(;;){}&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;fr = f_close(&amp;amp;fil);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;if(fr)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;&amp;nbsp; {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;&amp;nbsp; printf("\nError closing text file\r\n");&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;&amp;nbsp; for(;;){}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;&amp;nbsp; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try it again!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jingjing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Apr 2016 10:14:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K64-SD-card-question/m-p/511547#M32333</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2016-04-26T10:14:31Z</dc:date>
    </item>
    <item>
      <title>Re: K64 SD-card question!?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K64-SD-card-question/m-p/511548#M32334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pardon the confusing, i see i failed to explain it properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no errors regarding building the program, though while I try to run it, i get the error message:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--------------------------------------------------------&lt;/P&gt;&lt;P&gt;SD Card inserted&lt;/P&gt;&lt;P&gt;Initializing SD Card...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Failed to initialize SD disk"&lt;/P&gt;&lt;P&gt;--------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the program stops. I tried commenting out the function, and then it runs until if(fr)...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://pastebin.com/CfxXZ9k0" title="http://pastebin.com/CfxXZ9k0"&gt;[C#] void log_values() { FRESULT fr; /* FatFs return code */ DRESULT ds; /* Di - Pastebin.com&lt;/A&gt; &lt;A href="http://pastebin.com/CfxXZ9k0" title="http://pastebin.com/CfxXZ9k0"&gt;&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I added the code I use (removed everything i dont need). Im running 'SD_kort' as its own function instead of having it in main.&lt;/P&gt;&lt;P&gt;If you got any suggestion id appericate it greatly!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help!&lt;/P&gt;&lt;P&gt;Best regards Runar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Apr 2016 10:30:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K64-SD-card-question/m-p/511548#M32334</guid>
      <dc:creator>runarhaaskjold</dc:creator>
      <dc:date>2016-04-26T10:30:22Z</dc:date>
    </item>
    <item>
      <title>Re: K64 SD-card question!?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K64-SD-card-question/m-p/511549#M32335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Runar,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Your problem is the SD initialize question.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Now we already have the MDK KSDK fat code in our KSDK2.0, please go to this link:&lt;/P&gt;&lt;P&gt;&lt;A href="http://kex.freescale.com/en/welcome" title="http://kex.freescale.com/en/welcome"&gt;Welcome to Kinetis Expert | Kinetis Expert&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Click build a ksdk and choose the FRDM-K64 board.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="65.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/35806i5BED8346C3652D07/image-size/large?v=v2&amp;amp;px=999" role="button" title="65.jpg" alt="65.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; After you download the sample code package,&amp;nbsp; you will find the project in folder:SDK_2.0_FRDM-K64F\boards\frdmk64f\driver_examples\sdcard_fatfs\mdk&lt;/P&gt;&lt;P&gt;Please try it on your side.&lt;/P&gt;&lt;P&gt;Any question, please let me know!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jingjing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Apr 2016 06:34:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K64-SD-card-question/m-p/511549#M32335</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2016-04-27T06:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: K64 SD-card question!?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K64-SD-card-question/m-p/511550#M32336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.5pt; font-family: Helvetica, sans-serif;"&gt;I see what my problem is now; I'm working in KDSK 1.3 and not 2.0... I suspect there is no SD-card example for &lt;/SPAN&gt;&lt;SPAN style="font-size: 11.5pt; font-family: 'Arial',sans-serif; color: #51626f;"&gt;MDK KSDK 1.3? I geus I either have to rewrite everything using the libraries in KDSK 2.0 or rather not use the SD-card function.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.5pt; font-family: 'Arial',sans-serif; color: #51626f;"&gt;I will see if I can use the examples given to build my own code, and I’l post here if there is any success.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.5pt; font-family: 'Arial',sans-serif; color: #51626f;"&gt;Edit; Playing around with KDSK 2.0, i try to use tx to communicate between board and display (newhaven). I made it work with KDSK 1.3, setting uart 3 and baud rate of 9600, as well as setting PTC17 as output pin. Tried the same for KDSK 2.0 with no sucess. Any suggestions here?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.5pt; font-family: 'Arial',sans-serif; color: #51626f;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.5pt; font-family: 'Arial',sans-serif; color: #51626f;"&gt;Thank you so much!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.5pt; font-family: 'Arial',sans-serif; color: #51626f;"&gt;Have a nice day &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Apr 2016 14:03:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K64-SD-card-question/m-p/511550#M32336</guid>
      <dc:creator>runarhaaskjold</dc:creator>
      <dc:date>2016-04-27T14:03:57Z</dc:date>
    </item>
  </channel>
</rss>

