<?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: TWR-K70 SDHC get wrong data from SD card in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K70-SDHC-get-wrong-data-from-SD-card/m-p/676599#M41614</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try using MQX 4.2. &lt;A class="link-titled" href="http://www.nxp.com/products/software-and-tools/run-time-software/mqx-software-solutions/mqx-real-time-operating-system-rtos/mqx-classic-software-solutions:MQX" title="http://www.nxp.com/products/software-and-tools/run-time-software/mqx-software-solutions/mqx-real-time-operating-system-rtos/mqx-classic-software-solutions:MQX"&gt;MQX™ Classic Software Solutions|NXP&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In MQX RTOS is available the (E)SDHC I/O Driver. This I/O driver covers the (e)SDHC peripheral module and provides low-level communication interface for various types of cards including SD, SDHC, SDIO, SDCOMBO, SDHCCOMBO, MMC, and CE-ATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After install MQX you can find some example projects that you can use as reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a nice day!&lt;/P&gt;&lt;P&gt;Sol &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, 17 May 2017 21:28:29 GMT</pubDate>
    <dc:creator>soledad</dc:creator>
    <dc:date>2017-05-17T21:28:29Z</dc:date>
    <item>
      <title>TWR-K70 SDHC get wrong data from SD card</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K70-SDHC-get-wrong-data-from-SD-card/m-p/676598#M41613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Hello, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;There is an inexplicable issue about K70 SDHC. I am developing SD card driver for K70. But it fails to identify SD card. At the beginning, driver can get correct&amp;nbsp;OCR,CID,RCA,CSD registers from SD card. But it get wrong&amp;nbsp;SCR and data from SD card.&lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;nbsp;I found that the driver can get correct response from SDHC0_CMD line, but get wrong value from SDHC_DAT lines. Pleas help me debug the issue. Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Hardware environment (4 boards):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp; TWR-K70F120M CPU board (700-27166 REV A, SCH-27166 REV C2)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp; TWR-SER2 Board (700-26185 REV B, SCH-26185 REV D)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp; Primary Elevator (700-26006 REV D, SCH-26006 REV H)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp; Secondary Elevator (700-26493 REV B, SCH-26493 REV A)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Pin Control Register setting:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; PORTE_PCR0[0x4004d000] = 0x443 /* portE, pin0, ALT4, SDHC0_D1 */&lt;BR /&gt;&amp;nbsp; &amp;nbsp; PORTE_PCR1[0x4004d004] = 0x443 /* portE, pin1, ALT4, SDHC0_D0 */&lt;BR /&gt;&amp;nbsp; &amp;nbsp; PORTE_PCR2[0x4004d008] = 0x443 /* portE, pin2, ALT4, SDHC0_DCLK */&lt;BR /&gt;&amp;nbsp; &amp;nbsp; PORTE_PCR3[0x4004d00c] = 0x443 /* portE, pin3, ALT4, SDHC0_CMD */&lt;BR /&gt;&amp;nbsp; &amp;nbsp; PORTE_PCR4[0x4004d010] = 0x443 /* portE, pin4, ALT4, SDHC0_D3 */&lt;BR /&gt;&amp;nbsp; &amp;nbsp; PORTE_PCR5[0x4004d014] = 0x443 /* portE, pin5, ALT4, SDHC0_D2 */&lt;BR /&gt;&amp;nbsp; &amp;nbsp; PORTE_PCR28[0x4004d070] = 0x143 /* portE, pin28, ALT1, SDHC0_CD */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Use internal SDMA transfer to read SCR, some SDHC registers setting:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Send&amp;nbsp;CMD55:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; DSADDR = 0x00000000, BLKATTR= 0x00010000 &lt;BR /&gt;&amp;nbsp; &amp;nbsp; CMDARG = 0x12340000, XFERTYP= 0x371a0000 &lt;BR /&gt;&amp;nbsp; &amp;nbsp; PRSSTAT= 0xff880008, PROCTL = 0x00000020 &lt;BR /&gt;&amp;nbsp; &amp;nbsp; SYSCTL = 0x0000010f, WML = 0x08800810 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Send CMD51:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp; DSADDR = 0x80567450, BLKATTR= 0x00010008 &lt;BR /&gt;&amp;nbsp; &amp;nbsp; CMDARG = 0x00000000, XFERTYP= 0x333a0011 &lt;BR /&gt;&amp;nbsp; &amp;nbsp; PRSSTAT= 0xff880008, PROCTL = 0x00000020 &lt;BR /&gt;&amp;nbsp; &amp;nbsp; SYSCTL = 0x000e010f, WML = 0x08800802 &lt;BR /&gt;respones =0x00000920&amp;nbsp;&lt;BR /&gt;SCR=0x[33-c0-8e-d0-bc-00], the value may be&lt;SPAN&gt;&amp;nbsp;different at next reading.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;Correct SCR should be [02-35-80-00-01-00].&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;Please help analyze the issue is hardware issue (pin setting, jumper?) or software issue. Do you have K70 SDHC driver sample code? &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;Thanks,&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;Miles&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 May 2017 09:17:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K70-SDHC-get-wrong-data-from-SD-card/m-p/676598#M41613</guid>
      <dc:creator>mileswang</dc:creator>
      <dc:date>2017-05-11T09:17:20Z</dc:date>
    </item>
    <item>
      <title>Re: TWR-K70 SDHC get wrong data from SD card</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K70-SDHC-get-wrong-data-from-SD-card/m-p/676599#M41614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try using MQX 4.2. &lt;A class="link-titled" href="http://www.nxp.com/products/software-and-tools/run-time-software/mqx-software-solutions/mqx-real-time-operating-system-rtos/mqx-classic-software-solutions:MQX" title="http://www.nxp.com/products/software-and-tools/run-time-software/mqx-software-solutions/mqx-real-time-operating-system-rtos/mqx-classic-software-solutions:MQX"&gt;MQX™ Classic Software Solutions|NXP&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In MQX RTOS is available the (E)SDHC I/O Driver. This I/O driver covers the (e)SDHC peripheral module and provides low-level communication interface for various types of cards including SD, SDHC, SDIO, SDCOMBO, SDHCCOMBO, MMC, and CE-ATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After install MQX you can find some example projects that you can use as reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a nice day!&lt;/P&gt;&lt;P&gt;Sol &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, 17 May 2017 21:28:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K70-SDHC-get-wrong-data-from-SD-card/m-p/676599#M41614</guid>
      <dc:creator>soledad</dc:creator>
      <dc:date>2017-05-17T21:28:29Z</dc:date>
    </item>
    <item>
      <title>Re: TWR-K70 SDHC get wrong data from SD card</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K70-SDHC-get-wrong-data-from-SD-card/m-p/676600#M41615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sol,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have downloaded&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;MQX 4.2 and found the SDHC sample code located in below folder:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; "\Freescale_MQX_4_2\usb_v2\example\device\msd\kinetis_sdhc"&lt;/P&gt;&lt;P&gt;Is it right? The example code uses PIO mode, does not use DMA mode. PIO mode can work but throughput is too low.&lt;/P&gt;&lt;P&gt;Do you have example code which uses DMA mode?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Miles&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2017 00:57:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K70-SDHC-get-wrong-data-from-SD-card/m-p/676600#M41615</guid>
      <dc:creator>mileswang</dc:creator>
      <dc:date>2017-05-18T00:57:14Z</dc:date>
    </item>
  </channel>
</rss>

