<?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: SDHC writing block procedure</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SDHC-writing-block-procedure/m-p/861874#M51589</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Mark, the information you gave me its really good. I'll take a look more closely and study it.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Jan 2019 02:21:11 GMT</pubDate>
    <dc:creator>mariovlw</dc:creator>
    <dc:date>2019-01-09T02:21:11Z</dc:date>
    <item>
      <title>SDHC writing block procedure</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SDHC-writing-block-procedure/m-p/861872#M51587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am doing a project using the SDHC module in the&amp;nbsp;K64F board, I believe that the initialization process is fine, but now i want to write into the SD card, does anyone has an example for the writing procedure that must be done?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I am trying with the following steps:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Select the card using CMD7 with the RCA given by the CMD3 at the initialization process&lt;/LI&gt;&lt;LI&gt;Write into the&amp;nbsp;SDHC_DATPORT (the data entered into this register is some random data just to see if my procedure is correct)&lt;/LI&gt;&lt;LI&gt;Send the CMD24 (Write block) with address 0&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;Stop transmission using CMD12&amp;nbsp;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: When I send the CMD24 my card status has the APP_CMD flag&amp;nbsp;set, I wonder if there is a way to reset it or if this does not affect.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mario V.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2019 19:48:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/SDHC-writing-block-procedure/m-p/861872#M51587</guid>
      <dc:creator>mariovlw</dc:creator>
      <dc:date>2019-01-08T19:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: SDHC writing block procedure</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SDHC-writing-block-procedure/m-p/861873#M51588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi Mario&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To write a single sector one sends CMD24, followed by the 512 bytes of data. CMD12 is used only to terminate a multiple block write (CMD25).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can download the open source uTasker project from GITHUB for a FRDM-K64F project which allows you to test writing (command "sectw" command) and display sectors (with command "sect" in the debug menu). It also shows how to use the card with utFAT:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fdocs%2FuTasker%2FuTasker_utFAT.PDF" rel="nofollow" target="_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;on a DOS like interface, with FTP and web server or via USB-MSD. You can use it also on memory sticks or in internal Flash or external SPI flash.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will be able to copy the methods if you need to write the code again yourself and simulate the SDHC and SD card in its simulator with Visual Studio.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;To see some parts in action check out the video: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DVJ7YveF4_8g%26index%3D26%26list%3DPLWKlVb_MqDQFZAulrUywU30v869JBYi9Q" rel="nofollow" target="_blank"&gt;https://www.youtube.com/watch?v=VJ7YveF4_8g&amp;amp;index=26&amp;amp;list=PLWKlVb_MqDQFZAulrUywU30v869JBYi9Q&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;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For some FRDM-K64F binaries: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fkinetis%2FFRDM-K64F.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis/FRDM-K64F.html&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2019 23:28:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/SDHC-writing-block-procedure/m-p/861873#M51588</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2019-01-08T23:28:12Z</dc:date>
    </item>
    <item>
      <title>Re: SDHC writing block procedure</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SDHC-writing-block-procedure/m-p/861874#M51589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Mark, the information you gave me its really good. I'll take a look more closely and study it.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jan 2019 02:21:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/SDHC-writing-block-procedure/m-p/861874#M51589</guid>
      <dc:creator>mariovlw</dc:creator>
      <dc:date>2019-01-09T02:21:11Z</dc:date>
    </item>
  </channel>
</rss>

