<?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 esdhc issues in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/esdhc-issues/m-p/224201#M6027</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;I'm using a custom board with a MK60DN512VLL10 and an SDHC socket. This is my third project using this combination (same MQX 3.8 stack) although this project includes the AR4100 patch and seems to fail on initialising the SDHC card depending on the project size??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The call that fails is in:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;* $FileName: sdcard_esdhc.c$&lt;/P&gt;&lt;P&gt;* $Version : 3.8.8.0$&lt;/P&gt;&lt;P&gt;* $Date&amp;nbsp;&amp;nbsp;&amp;nbsp; : &lt;SPAN style="text-decoration: underline;"&gt;Sep&lt;/SPAN&gt;-1-2011$&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;boolean &lt;STRONG&gt;_io_sdcard_esdhc_init&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;/* [IN/OUT] SD card file descriptor */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #005032; font-size: 10pt;"&gt;MQX_FILE_PTR&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; fd_ptr&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;/* Card identify */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;command.&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;COMMAND&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; = ESDHC_CMD2;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;command.&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;TYPE&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; = ESDHC_TYPE_NORMAL;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;command.&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;ARGUMENT&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; = 0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;command.&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;READ&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; = FALSE;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;command.&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;BLOCKS&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; = 0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #7f0055; font-size: 10pt;"&gt;if&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; (ESDHC_OK != ioctl (sdcard_ptr-&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;COM_DEVICE&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;, IO_IOCTL_ESDHC_SEND_COMMAND, &amp;amp;command))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #7f0055; font-size: 10pt;"&gt;{&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #7f0055; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; FALSE;&lt;/SPAN&gt;&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;/P&gt;&lt;P&gt;If I change the size of the project by commenting out another function call or making a new one the issue goes away for a while and then comes back later!?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It almost looks like a boundary issue in the linker command file, but everything looks aligned as it should be?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Luke&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Oct 2013 18:03:42 GMT</pubDate>
    <dc:creator>lukeb74</dc:creator>
    <dc:date>2013-10-22T18:03:42Z</dc:date>
    <item>
      <title>esdhc issues</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/esdhc-issues/m-p/224201#M6027</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;I'm using a custom board with a MK60DN512VLL10 and an SDHC socket. This is my third project using this combination (same MQX 3.8 stack) although this project includes the AR4100 patch and seems to fail on initialising the SDHC card depending on the project size??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The call that fails is in:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;* $FileName: sdcard_esdhc.c$&lt;/P&gt;&lt;P&gt;* $Version : 3.8.8.0$&lt;/P&gt;&lt;P&gt;* $Date&amp;nbsp;&amp;nbsp;&amp;nbsp; : &lt;SPAN style="text-decoration: underline;"&gt;Sep&lt;/SPAN&gt;-1-2011$&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;boolean &lt;STRONG&gt;_io_sdcard_esdhc_init&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;/* [IN/OUT] SD card file descriptor */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #005032; font-size: 10pt;"&gt;MQX_FILE_PTR&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; fd_ptr&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;/* Card identify */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;command.&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;COMMAND&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; = ESDHC_CMD2;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;command.&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;TYPE&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; = ESDHC_TYPE_NORMAL;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;command.&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;ARGUMENT&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; = 0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;command.&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;READ&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; = FALSE;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;command.&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;BLOCKS&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; = 0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #7f0055; font-size: 10pt;"&gt;if&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; (ESDHC_OK != ioctl (sdcard_ptr-&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;COM_DEVICE&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;, IO_IOCTL_ESDHC_SEND_COMMAND, &amp;amp;command))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #7f0055; font-size: 10pt;"&gt;{&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #7f0055; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; FALSE;&lt;/SPAN&gt;&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;/P&gt;&lt;P&gt;If I change the size of the project by commenting out another function call or making a new one the issue goes away for a while and then comes back later!?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It almost looks like a boundary issue in the linker command file, but everything looks aligned as it should be?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Luke&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Oct 2013 18:03:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/esdhc-issues/m-p/224201#M6027</guid>
      <dc:creator>lukeb74</dc:creator>
      <dc:date>2013-10-22T18:03:42Z</dc:date>
    </item>
  </channel>
</rss>

