<?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: SDK 3.1 + KSDK 2.0 + SD card driver in Kinetis Software Development Kit</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/SDK-3-1-KSDK-2-0-SD-card-driver/m-p/500661#M4763</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The 2.0, is giving me issues.&amp;nbsp; I had to stop trying to get it going to keep things moving along, so I reverted back to 1.3.0.&lt;/P&gt;&lt;P&gt;Unfortunately or fortunately, we found that if you heat up the board we start getting read/write failures (the read/write comes&lt;/P&gt;&lt;P&gt;back with an error), in my application, then I create a recovery, which allows me to continue.&amp;nbsp; We believe that slowing down&lt;/P&gt;&lt;P&gt;the SDcard clock will resolve the issue, but now I am struggling doing that.&amp;nbsp; You can see my latest POST slowing down the &lt;/P&gt;&lt;P&gt;clock.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am able to slow it down, using the Freedom K64F board and their example code, but on our custom board its not happening.&lt;/P&gt;&lt;P&gt;I believe it has to do with the settings of our processor clock along with other registers that handle the SDHC module clock.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eventually I will have to go back to and fight with 2.0, but for now slowing down the clock is a priority...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Neil Porven&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Jun 2016 16:31:54 GMT</pubDate>
    <dc:creator>neilporven</dc:creator>
    <dc:date>2016-06-13T16:31:54Z</dc:date>
    <item>
      <title>SDK 3.1 + KSDK 2.0 + SD card driver</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/SDK-3-1-KSDK-2-0-SD-card-driver/m-p/500652#M4754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where can I find the SD card driver function calls (document)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second question, are there any instructions on how to initialize and setup the SD card with the&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; KSDK 2.0 driver?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;than you, &lt;/P&gt;&lt;P&gt;Neil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Mar 2016 05:04:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/SDK-3-1-KSDK-2-0-SD-card-driver/m-p/500652#M4754</guid>
      <dc:creator>neilporven</dc:creator>
      <dc:date>2016-03-02T05:04:19Z</dc:date>
    </item>
    <item>
      <title>Re: SDK 3.1 + KSDK 2.0 + SD card driver</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/SDK-3-1-KSDK-2-0-SD-card-driver/m-p/500653#M4755</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;Under Freescale-&amp;gt;SDK_2.0_K64F-&amp;gt;docs, there exist the following&amp;nbsp; .pdf ( Kinetis SDK v.2.0 API Reference Manual)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Under the SDHC, I found the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Typical use case&lt;/P&gt;&lt;P&gt;/* Initializes the SDHC.&lt;/P&gt;&lt;P&gt;sdhcConfig-&amp;gt;cardDetectDat3 = false;&lt;/P&gt;&lt;P&gt;sdhcConfig-&amp;gt;endianMode = kSDHC_EndianModeLittle;&lt;/P&gt;&lt;P&gt;sdhcConfig-&amp;gt;dmaMode = kSDHC_DmaModeAdma2;&lt;/P&gt;&lt;P&gt;sdhcConfig-&amp;gt;readWatermarkLevel = 0x80U;&lt;/P&gt;&lt;P&gt;sdhcConfig-&amp;gt;writeWatermarkLevel = 0x80U;&lt;/P&gt;&lt;P&gt;SDHC_Init(BOARD_SDHC_BASEADDR, sdhcConfig);&lt;/P&gt;&lt;P&gt;/* Fills state in the card driver.&lt;/P&gt;&lt;P&gt;card-&amp;gt;sdhcBase = BOARD_SDHC_BASEADDR;&lt;/P&gt;&lt;P&gt;card-&amp;gt;sdhcSourceClock = CLOCK_GetFreq(BOARD_SDHC_CLKSRC);&lt;/P&gt;&lt;P&gt;card-&amp;gt;sdhcTransfer = sdhc_transfer_function;&lt;/P&gt;&lt;P&gt;/* Initializes the card.&lt;/P&gt;&lt;P&gt;if (SD_Init(card))&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;PRINTF("nrnnSD card init failed.nrnn");&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;PRINTF("nrnnRead/Write/Erase the card continuously until it encounters error......nrnn");&lt;/P&gt;&lt;P&gt;while (true)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;if (kStatus_Success != SD_WriteBlocks(card, g_dataWrite, DATA_BLOCK_START, DATA_BLOCK_COUNT))&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;PRINTF("Write multiple data blocks failed.nrnn");&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;if (kStatus_Success != SD_ReadBlocks(card, g_dataRead, DATA_BLOCK_START, DATA_BLOCK_COUNT))&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;PRINTF("Read multiple data blocks failed.nrnn");&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;if (kStatus_Success != SD_EraseBlocks(card, DATA_BLOCK_START, DATA_BLOCK_COUNT))&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;PRINTF("Erase multiple data blocks failed.nrnn");&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;SD_Deinit(card);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Question is: "What are the includes needed?"&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;I am currently placing this one: #include "fsl_sd_disk.h", but sdhcConfig-&amp;gt; is not being recognized?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Question is: "Is the above all I need for the SDcard to function?".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you,&lt;/P&gt;&lt;P&gt;Neil Porven&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Mar 2016 17:24:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/SDK-3-1-KSDK-2-0-SD-card-driver/m-p/500653#M4755</guid>
      <dc:creator>neilporven</dc:creator>
      <dc:date>2016-03-02T17:24:18Z</dc:date>
    </item>
    <item>
      <title>Re: SDK 3.1 + KSDK 2.0 + SD card driver</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/SDK-3-1-KSDK-2-0-SD-card-driver/m-p/500654#M4756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Neil,&lt;/P&gt;&lt;P&gt;Do you want to implement a File system on the SD card via SDHC interface? If it is the case, I have an example based on FRDM-K64, it works fine. I attach it, you can refer to it. If you have issue when you compile the project, you have to modify the the "include" directory in the KDS tools.&lt;/P&gt;&lt;P&gt;If you want to write data to SD card directory without File System, I have not example.&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Xiangjun Rong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2016 09:12:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/SDK-3-1-KSDK-2-0-SD-card-driver/m-p/500654#M4756</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2016-03-04T09:12:56Z</dc:date>
    </item>
    <item>
      <title>Re: SDK 3.1 + KSDK 2.0 + SD card driver</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/SDK-3-1-KSDK-2-0-SD-card-driver/m-p/500655#M4757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Xiangjun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't see your attachment?&amp;nbsp; Can you please attach it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Neil Porven&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Mar 2016 16:32:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/SDK-3-1-KSDK-2-0-SD-card-driver/m-p/500655#M4757</guid>
      <dc:creator>neilporven</dc:creator>
      <dc:date>2016-03-07T16:32:09Z</dc:date>
    </item>
    <item>
      <title>Re: SDK 3.1 + KSDK 2.0 + SD card driver</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/SDK-3-1-KSDK-2-0-SD-card-driver/m-p/500656#M4758</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;Pls check the project in the attachment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;XiangJun Rong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Mar 2016 09:13:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/SDK-3-1-KSDK-2-0-SD-card-driver/m-p/500656#M4758</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2016-03-08T09:13:15Z</dc:date>
    </item>
    <item>
      <title>Re: SDK 3.1 + KSDK 2.0 + SD card driver</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/SDK-3-1-KSDK-2-0-SD-card-driver/m-p/500657#M4759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Xiangjun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will take a look at it and see if I can compile it and understand how it works.&amp;nbsp; The &lt;/P&gt;&lt;P&gt;code on the main looks almost identical to Jorge Gonzales FatFs example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Neil Porven&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Mar 2016 16:27:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/SDK-3-1-KSDK-2-0-SD-card-driver/m-p/500657#M4759</guid>
      <dc:creator>neilporven</dc:creator>
      <dc:date>2016-03-08T16:27:09Z</dc:date>
    </item>
    <item>
      <title>Re: SDK 3.1 + KSDK 2.0 + SD card driver</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/SDK-3-1-KSDK-2-0-SD-card-driver/m-p/500658#M4760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Xiangjun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please attach the project?&amp;nbsp; I don't see an attachment?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Neil Porven&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 May 2016 20:16:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/SDK-3-1-KSDK-2-0-SD-card-driver/m-p/500658#M4760</guid>
      <dc:creator>neilporven</dc:creator>
      <dc:date>2016-05-27T20:16:05Z</dc:date>
    </item>
    <item>
      <title>Re: SDK 3.1 + KSDK 2.0 + SD card driver</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/SDK-3-1-KSDK-2-0-SD-card-driver/m-p/500659#M4761</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 am re-visiting this thread and noticed that I never got a reply to questions 1 &amp;amp; 2, can someone from NXP&lt;/P&gt;&lt;P&gt;try answering these questions?&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, 27 May 2016 20:18:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/SDK-3-1-KSDK-2-0-SD-card-driver/m-p/500659#M4761</guid>
      <dc:creator>neilporven</dc:creator>
      <dc:date>2016-05-27T20:18:44Z</dc:date>
    </item>
    <item>
      <title>Re: SDK 3.1 + KSDK 2.0 + SD card driver</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/SDK-3-1-KSDK-2-0-SD-card-driver/m-p/500660#M4762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Neil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i was was wondering how did you make out with the microSD project using 2.0?&amp;nbsp;&amp;nbsp; I'm looking for a project example to work from. Thanks.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Jun 2016 12:33:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/SDK-3-1-KSDK-2-0-SD-card-driver/m-p/500660#M4762</guid>
      <dc:creator>efnlpz1010</dc:creator>
      <dc:date>2016-06-12T12:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: SDK 3.1 + KSDK 2.0 + SD card driver</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/SDK-3-1-KSDK-2-0-SD-card-driver/m-p/500661#M4763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The 2.0, is giving me issues.&amp;nbsp; I had to stop trying to get it going to keep things moving along, so I reverted back to 1.3.0.&lt;/P&gt;&lt;P&gt;Unfortunately or fortunately, we found that if you heat up the board we start getting read/write failures (the read/write comes&lt;/P&gt;&lt;P&gt;back with an error), in my application, then I create a recovery, which allows me to continue.&amp;nbsp; We believe that slowing down&lt;/P&gt;&lt;P&gt;the SDcard clock will resolve the issue, but now I am struggling doing that.&amp;nbsp; You can see my latest POST slowing down the &lt;/P&gt;&lt;P&gt;clock.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am able to slow it down, using the Freedom K64F board and their example code, but on our custom board its not happening.&lt;/P&gt;&lt;P&gt;I believe it has to do with the settings of our processor clock along with other registers that handle the SDHC module clock.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eventually I will have to go back to and fight with 2.0, but for now slowing down the clock is a priority...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Neil Porven&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jun 2016 16:31:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/SDK-3-1-KSDK-2-0-SD-card-driver/m-p/500661#M4763</guid>
      <dc:creator>neilporven</dc:creator>
      <dc:date>2016-06-13T16:31:54Z</dc:date>
    </item>
  </channel>
</rss>

