<?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: Read SD card size information in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/Read-SD-card-size-information/m-p/183816#M3027</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi S.,&lt;/P&gt;&lt;P&gt;What Kinetis device are you using?&amp;nbsp; Are you using Tower kit?&lt;/P&gt;&lt;P&gt;Are you accessing SD Card with SPI or SDHC controller?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Jun 2013 14:40:37 GMT</pubDate>
    <dc:creator>DavidS</dc:creator>
    <dc:date>2013-06-05T14:40:37Z</dc:date>
    <item>
      <title>Read SD card size information</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Read-SD-card-size-information/m-p/183812#M3023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to read the SD card information (4G SHDC) using IO_IOCTL_FREE_CLUSTERS and IO_IOCTL_GET_CLUSTER_SIZE. I am using MQX 3.7. The first time that I try to do that is too slow,&lt;/P&gt;&lt;P&gt;almost 2 minuts. The second time is immediate..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2012 17:10:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Read-SD-card-size-information/m-p/183812#M3023</guid>
      <dc:creator>oscar</dc:creator>
      <dc:date>2012-07-27T17:10:15Z</dc:date>
    </item>
    <item>
      <title>Re: Read SD card size information</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Read-SD-card-size-information/m-p/183813#M3024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fixed in the MQX3.8.1 release per the release notes.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2012 20:14:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Read-SD-card-size-information/m-p/183813#M3024</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2012-10-26T20:14:56Z</dc:date>
    </item>
    <item>
      <title>Re: Read SD card size information</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Read-SD-card-size-information/m-p/183814#M3025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good news!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it easy to import this changes to MQX 3.7.1?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Oscar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2012 10:25:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Read-SD-card-size-information/m-p/183814#M3025</guid>
      <dc:creator>oscar</dc:creator>
      <dc:date>2012-11-06T10:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: Read SD card size information</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Read-SD-card-size-information/m-p/183815#M3026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using MQX 4.0 and though, have the same issue : at first use IO_IOCTL_FREE_CLUSTERS lasts a bunch of seconds, while on the next calls, its execution is rather quick. I get the same behavior with IO_IOCTL_FREE_SPACE as well.&lt;/P&gt;&lt;P&gt;Besides, these functions always return "UNKNOWN ERROR !!!" so I did not manage to know the remaining space on my SD device! Any idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Oscar,&lt;/P&gt;&lt;P&gt;Did you manage to have the IO_IOCTL_FREE_CLUSTERS function working?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help,&lt;/P&gt;&lt;P&gt;S.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jun 2013 13:57:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Read-SD-card-size-information/m-p/183815#M3026</guid>
      <dc:creator>sgqo</dc:creator>
      <dc:date>2013-06-05T13:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: Read SD card size information</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Read-SD-card-size-information/m-p/183816#M3027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi S.,&lt;/P&gt;&lt;P&gt;What Kinetis device are you using?&amp;nbsp; Are you using Tower kit?&lt;/P&gt;&lt;P&gt;Are you accessing SD Card with SPI or SDHC controller?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jun 2013 14:40:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Read-SD-card-size-information/m-p/183816#M3027</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2013-06-05T14:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: Read SD card size information</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Read-SD-card-size-information/m-p/183817#M3028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using a Kinetis K60 on our prototype board, running with the SDHC driver.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For your information, I manage to get rid of the unknown error: I was probably misusing the IO_IOCTL_FREE_CLUSTERS function. This piece of code is now working properly.&lt;/P&gt;&lt;P&gt;Still, I have the issue mentionned by Oscar when the first access is very long (something like 20+ sec.) whereas further accesses are quite fast (1-2 sec), although using MQX 4.0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;S.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jun 2013 12:21:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Read-SD-card-size-information/m-p/183817#M3028</guid>
      <dc:creator>sgqo</dc:creator>
      <dc:date>2013-06-06T12:21:29Z</dc:date>
    </item>
    <item>
      <title>Re: Read SD card size information</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Read-SD-card-size-information/m-p/183818#M3029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using the MCF54417 and we're experiencing the same issue using &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;IO_IOCTL_FREE_SPACE&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;I never bothered calling it a second time to see if it ran any faster though. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Travis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jun 2013 15:22:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Read-SD-card-size-information/m-p/183818#M3029</guid>
      <dc:creator>t_k</dc:creator>
      <dc:date>2013-06-06T15:22:49Z</dc:date>
    </item>
    <item>
      <title>Re: Read SD card size information</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Read-SD-card-size-information/m-p/183819#M3030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tested the IO_IOCTL_FREE_CLUSTERS with a 8G SD card on mqx 4.0. The first time it cost 8s and second 2ms. I think it is normal.The first time the the drive' information FREE_COUNT has a&amp;nbsp; signiture&amp;nbsp; of FSI_UNKNOWN indicating that work need to be done to count the free clusters. It is a normal value of 8s to count the free clusters on the SD card because as many as 2M bytes FAT need to be read on MFS. The reason why the second time call is fast is that the FREE_COUNT is available and the app can directly use the value preserved in the mfs cache without a extra compute.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jul 2013 09:03:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Read-SD-card-size-information/m-p/183819#M3030</guid>
      <dc:creator>zhiyangzhang</dc:creator>
      <dc:date>2013-07-03T09:03:52Z</dc:date>
    </item>
    <item>
      <title>Re: Read SD card size information</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Read-SD-card-size-information/m-p/183820#M3031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok Zhiyang Zhang. Thank you for your information, it makes sense to me.&lt;/P&gt;&lt;P&gt;So I guess the only way to reduce that time would be to increase clock speed on the SD bus ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jul 2013 09:38:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Read-SD-card-size-information/m-p/183820#M3031</guid>
      <dc:creator>sgqo</dc:creator>
      <dc:date>2013-07-03T09:38:38Z</dc:date>
    </item>
  </channel>
</rss>

