<?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: SD card on K21 in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SD-card-on-K21/m-p/1060315#M57073</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Evgeni&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the SDHC_SYSCTL setting (PEREN bit) which controls whether the clock is automatically gated off or not [it sounds as though the setting is different in the two projects].&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;P&gt;&lt;EM&gt;[uTasker project developer for Kinetis and i.MX RT]&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 05 Apr 2020 05:01:44 GMT</pubDate>
    <dc:creator>mjbcswitzerland</dc:creator>
    <dc:date>2020-04-05T05:01:44Z</dc:date>
    <item>
      <title>SD card on K21</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SD-card-on-K21/m-p/1060314#M57072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;Currently, I am working on TWR-K21 with the Kinetis K21 microcontroller&amp;nbsp;and using sample NXP project sdcard_fatfs through SDIO. When running project I see the following situation:&lt;BR /&gt;After turning 'ON' the SD clock in the SDHC_SetClock () function, the pin CLK starts working without stopping.&lt;BR /&gt;The first SetIdle () command passes and the next SendInterfaceCondition () command returns an error.&lt;BR /&gt;I see that the data goes through the CMD pin, but it does not give anything.&lt;/P&gt;&lt;P&gt;Before that, I did a similar project on TWR-K60 (with different drivers) and everything worked. Therefore, I compared 2 protocols on the scope and saw that the K60 clock works only during data transfer and on K21 clock works all the time.&lt;BR /&gt;Maybe this will solve the problem of working with the SD card.&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to find the reason that CLK is constantly working?&lt;/P&gt;&lt;P&gt;Project is attached.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Evgeni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Apr 2020 16:35:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/SD-card-on-K21/m-p/1060314#M57072</guid>
      <dc:creator>evgenik</dc:creator>
      <dc:date>2020-04-04T16:35:35Z</dc:date>
    </item>
    <item>
      <title>Re: SD card on K21</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SD-card-on-K21/m-p/1060315#M57073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Evgeni&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the SDHC_SYSCTL setting (PEREN bit) which controls whether the clock is automatically gated off or not [it sounds as though the setting is different in the two projects].&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;P&gt;&lt;EM&gt;[uTasker project developer for Kinetis and i.MX RT]&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Apr 2020 05:01:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/SD-card-on-K21/m-p/1060315#M57073</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2020-04-05T05:01:44Z</dc:date>
    </item>
    <item>
      <title>Re: SD card on K21</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SD-card-on-K21/m-p/1060316#M57074</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;I have found this configuration and correct it. Now I can see that CLK works correct but the SD card again doesn't respond. The same situation I have found at&amp;nbsp;&lt;A class="link-titled" href="https://electronics.stackexchange.com/questions/303745/sd-card-initialization-problem-cmd8-wrong-response" title="https://electronics.stackexchange.com/questions/303745/sd-card-initialization-problem-cmd8-wrong-response"&gt;spi - SD card initialization problem - CMD8 wrong response&lt;/A&gt;&amp;nbsp;but in this example is&amp;nbsp;used SPI protocol and I use SDIO. How after send command can I do spare 8 clocks and do '0' start bit for start SD card response? Or SD card start '0' response by itself?&amp;nbsp;May be anything wrong configuration for allowing reply in K21 registers? In my K60 project, I don't do anything for this.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Evgeni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Apr 2020 10:40:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/SD-card-on-K21/m-p/1060316#M57074</guid>
      <dc:creator>evgenik</dc:creator>
      <dc:date>2020-04-05T10:40:07Z</dc:date>
    </item>
  </channel>
</rss>

