<?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: FRDM64F &amp; SD card using SDCH_LDD not working in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM64F-SD-card-using-SDCH-LDD-not-working/m-p/407974#M22883</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Alice.&lt;/P&gt;&lt;P&gt;I know there is a wait. It doesn’t help, it exists on a timeout. If I disable the timeout it waits forever.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eyal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Oct 2015 13:19:01 GMT</pubDate>
    <dc:creator>eyaldoron</dc:creator>
    <dc:date>2015-10-20T13:19:01Z</dc:date>
    <item>
      <title>FRDM64F &amp; SD card using SDCH_LDD not working</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM64F-SD-card-using-SDCH-LDD-not-working/m-p/407970#M22879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P dir="ltr"&gt;Hi,&lt;/P&gt;&lt;P dir="ltr"&gt;I've seen discussions around this, but not quite. I'm trying to read/write to an SD card in the Freedom64F card, using Processor Expert and the SDHC_LDD component. I'm using KDS 3.0.0, with no OS and no SDK. I'm following the documentation example as closely as possible, but I can't get it to work - I always get a timeout at SDHC_GetCardInfo. Looking into the code, specifically CardInfoRetrieval in SDHC.c, the last viable state is SDHC_CIR_TRANSFER_STATE.&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;I noticed that the board does not include a pullup resistor on the CMD line, which should be there (also possibly on D0). I changed the port pins to include pullups, but it made no difference. I also modified the example code to support active-high card detect. Card detection now works, but not the rest of the code. &lt;/P&gt;&lt;P dir="ltr"&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;I've tried Erich Styger's logger code, which uses SPI mode, and it works nicely, however its slow - both read and write take roughly the same time, ~190 kbyte/sec, which seems to be mainly driver code overhead, as it changes when I change optimization, and almost doesn't depend on SPI clock. I would really like higher read rates, and DMA/interrupts would also be nice though not essential.&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;Has anybody got SDHC_LDD or one of its derivatives working on this board, in full 4-bit data width and a higher data rate? Any ideas?&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;Thanks,&lt;/P&gt;&lt;P dir="ltr"&gt;Eyal Doron&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Oct 2015 14:42:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM64F-SD-card-using-SDCH-LDD-not-working/m-p/407970#M22879</guid>
      <dc:creator>eyaldoron</dc:creator>
      <dc:date>2015-10-17T14:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM64F &amp; SD card using SDCH_LDD not working</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM64F-SD-card-using-SDCH-LDD-not-working/m-p/407971#M22880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Eyal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you can refer to the "Typical Usage" , there is demo code .&lt;/P&gt;&lt;P&gt;Please right click the SDHC component , then select the "help on component " , then you can find it :&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;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/23050i587051A9862A4335/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;/P&gt;&lt;P&gt;Alice&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>Mon, 19 Oct 2015 10:18:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM64F-SD-card-using-SDCH-LDD-not-working/m-p/407971#M22880</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2015-10-19T10:18:00Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM64F &amp; SD card using SDCH_LDD not working</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM64F-SD-card-using-SDCH-LDD-not-working/m-p/407972#M22881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="direction: ltr;"&gt;Hello Alice,&lt;/P&gt;&lt;P style="direction: ltr;"&gt;&lt;/P&gt;&lt;P style="direction: ltr;"&gt;Thank you for your answer. Unfortunately, if it were that simple I would not have posted... The example does not work for me, failing (as I said in my post) at the GetCardInfo command. The project is a clean test of the component, with nothing else except what appears in the typical usage code.&lt;/P&gt;&lt;P style="direction: ltr;"&gt;&lt;/P&gt;&lt;P style="direction: ltr;"&gt;One caveat - the code as described in the help also produces a hard fault in the OnFinished event, due to some problem with the UserData pointer. I changed the code to directly use the SD variable, instead of a cast on the UserData.&lt;/P&gt;&lt;P style="direction: ltr;"&gt;&lt;/P&gt;&lt;P style="direction: ltr;"&gt;Any ideas?&lt;/P&gt;&lt;P style="direction: ltr;"&gt;&lt;/P&gt;&lt;P style="direction: ltr;"&gt;Thanks,&lt;/P&gt;&lt;P style="direction: ltr;"&gt;Eyal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2015 11:05:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM64F-SD-card-using-SDCH-LDD-not-working/m-p/407972#M22881</guid>
      <dc:creator>eyaldoron</dc:creator>
      <dc:date>2015-10-19T11:05:01Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM64F &amp; SD card using SDCH_LDD not working</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM64F-SD-card-using-SDCH-LDD-not-working/m-p/407973#M22882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Eyal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I checked in the demo code , there is a wait for the SDHC_GetCardInfo() :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/23892iDAC7CD154FCCC1CE/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Oct 2015 11:12:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM64F-SD-card-using-SDCH-LDD-not-working/m-p/407973#M22882</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2015-10-20T11:12:44Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM64F &amp; SD card using SDCH_LDD not working</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM64F-SD-card-using-SDCH-LDD-not-working/m-p/407974#M22883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Alice.&lt;/P&gt;&lt;P&gt;I know there is a wait. It doesn’t help, it exists on a timeout. If I disable the timeout it waits forever.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eyal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Oct 2015 13:19:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM64F-SD-card-using-SDCH-LDD-not-working/m-p/407974#M22883</guid>
      <dc:creator>eyaldoron</dc:creator>
      <dc:date>2015-10-20T13:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM64F &amp; SD card using SDCH_LDD not working</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM64F-SD-card-using-SDCH-LDD-not-working/m-p/407975#M22884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my case, the last viable is SDHC_CMD_AMCD (which seems to be a substate of SDHC_CIR_TRANSFER_STATE?) Within this state, there is a line which reads&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SDHC_PDD_SendCommand(SDHC_BASE_PTR, SDHC_PDD_ACMD51_SEND_SCR, SDHC_PDD_ENABLE_DMA | SDHC_PDD_DATA_PRESENT | SDHC_PDD_DATA_READ | SDHC_PDD_RESPONSE_LENGTH_48);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After this line has been executed, the IRQSTAT register becomes 0x1000000, which according to the reference manual means that there was an ADMA error. The operation never finishes, and I get a timeout.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Oct 2015 10:10:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM64F-SD-card-using-SDCH-LDD-not-working/m-p/407975#M22884</guid>
      <dc:creator>haraldlandro</dc:creator>
      <dc:date>2015-10-26T10:10:28Z</dc:date>
    </item>
  </channel>
</rss>

