<?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: FRDMK66F - maximum size of SD card? in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDMK66F-maximum-size-of-SD-card/m-p/1905881#M66549</link>
    <description>&lt;P&gt;&lt;SPAN class=""&gt;&lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/236188" target="_self"&gt;XuZhang&lt;/A&gt;, thanks for replying. &amp;nbsp;I tried your example code with a new 64GB microSD, and I got an error:&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;PRE&gt;SEGGER J-Link GDB Server V7.96q - Terminal output channel&lt;BR /&gt;&lt;BR /&gt;FATFS example to demonstrate how to use FATFS with SD card.&lt;BR /&gt;&lt;BR /&gt;Please insert a card into board.&lt;BR /&gt;&lt;BR /&gt;Card inserted.&lt;BR /&gt;&lt;BR /&gt;Make file system......The time may be long if the card capacity is big.&lt;BR /&gt;Make file system failed.&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN class=""&gt;Out of curiosity, I tried a different FRDMK66 board - I have two - and with the newer FRDMK66 board, the example code worked like yours with a 64GB microSD. &amp;nbsp;So it's partly a hardware issue. &amp;nbsp;I can live with that, since the older FRDMK66 will be used in a harsh environment, and a 2GB SD card should work well enough.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;I don't consider this resolved - it should work the same on both boards, I'd think - but you can close the issue. &amp;nbsp;Thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 11 Jul 2024 05:58:08 GMT</pubDate>
    <dc:creator>aaronm</dc:creator>
    <dc:date>2024-07-11T05:58:08Z</dc:date>
    <item>
      <title>FRDMK66F - maximum size of SD card?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDMK66F-maximum-size-of-SD-card/m-p/1903494#M66542</link>
      <description>&lt;P&gt;Is there a setting I can use to enable microSD cards bigger than 2 or 4 GB? &amp;nbsp;My app works if I use a 2GB microSD card, but fails with "&lt;FONT color="#FF9900"&gt;Error: send ACMD41 timeout&lt;/FONT&gt;" if I use a 16GB (exfat, or fat32) card. &amp;nbsp;The error code is coming from&amp;nbsp;&lt;SPAN&gt;&lt;FONT color="#008000"&gt;SD_ApplicationSendOperationCondition&lt;/FONT&gt; : &lt;FONT color="#808000"&gt;fsl_sd.c&lt;/FONT&gt;. &amp;nbsp;In that function, I see there's a check for&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;FONT color="#0000FF"&gt;kSD_SupportHighCapacityFlag&lt;/FONT&gt;, so it appears the software is at least minimally aware that some cards could be larger than expected.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The spec* indicates that the instructions should be changed if the microSD card is high capacity:&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;PRE&gt;If the card is High capacity SD Memory Card, there are 2 cases&lt;BR /&gt;1. CMD8 was not issued before ACMD41&lt;BR /&gt;2. ACMD41 is issued with HCS=0&lt;/PRE&gt;&lt;P&gt;But I don't see any accommodation for this condition in the software; or how to configure the SD card parameter to refer to a high capacity card. &amp;nbsp;So is the SD driver limited to 4GB SD cards?&lt;/P&gt;&lt;P&gt;Right now, I'm using the following SD-related modules:&lt;/P&gt;&lt;PRE&gt;middleware.fatfs.sd.MK66F18&lt;BR /&gt;middleware.sdmmc.osa.bm.MK66F18&lt;BR /&gt;middleware.sdmmc.common.MK66F18&lt;BR /&gt;middleware.sdmmc.host.sdhc.MK66F18&lt;BR /&gt;middleware.sdmmc.sd.MK66F18&lt;BR /&gt;middleware.sdmmc.sdhc.template.MK66F18&lt;BR /&gt;middleware.sdmmc.host.sdhc.interrupt.MK66F18&lt;BR /&gt;platform.drivers.sdhc.MK66F18&lt;BR /&gt;middleware.fatfs.MK66F18&lt;BR /&gt;middleware.fatfs.template_sd.MK66F18&lt;/PRE&gt;&lt;P&gt;Do I need &lt;FONT color="#FF9900"&gt;SDSPI&lt;/FONT&gt; modules for bigger SD cards?&lt;/P&gt;&lt;P&gt;*&amp;nbsp;&lt;A href="https://users.ece.utexas.edu/~valvano/EE345M/SD_Physical_Layer_Spec.pdf" target="_blank" rel="noopener"&gt;https://users.ece.utexas.edu/~valvano/EE345M/SD_Physical_Layer_Spec.pdf&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 09 Jul 2024 05:44:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDMK66F-maximum-size-of-SD-card/m-p/1903494#M66542</guid>
      <dc:creator>aaronm</dc:creator>
      <dc:date>2024-07-09T05:44:09Z</dc:date>
    </item>
    <item>
      <title>Re: FRDMK66F - maximum size of SD card?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDMK66F-maximum-size-of-SD-card/m-p/1905831#M66548</link>
      <description>&lt;P&gt;Hi , aaronm&lt;/P&gt;
&lt;P&gt;I used the MK66FN2M0xxx18 development board and the "frdmk66f_sdcard_fatfs" program in the SDK to conduct an experiment. At the same time, a 32G SD card was used in the experiment. My program can work normally and create files. I tried to modify the program to detect the size of the output SD card. The modified content and test results are shown in the figure below.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="XuZhang_0-1720670315945.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/288045iCDD2DB808A6E022C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="XuZhang_0-1720670315945.png" alt="XuZhang_0-1720670315945.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="XuZhang_1-1720670325051.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/288046iB920CD25F8AAC0ED/image-size/medium?v=v2&amp;amp;px=400" role="button" title="XuZhang_1-1720670325051.png" alt="XuZhang_1-1720670325051.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="XuZhang_2-1720670336885.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/288047i561F5E1659A3341D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="XuZhang_2-1720670336885.png" alt="XuZhang_2-1720670336885.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I also tested an 8G SD card and the program also worked successfully. I put the program in the attachment, I hope these can help you.&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Xu Zhang&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2024 04:04:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDMK66F-maximum-size-of-SD-card/m-p/1905831#M66548</guid>
      <dc:creator>Joey_z</dc:creator>
      <dc:date>2024-07-11T04:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: FRDMK66F - maximum size of SD card?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDMK66F-maximum-size-of-SD-card/m-p/1905881#M66549</link>
      <description>&lt;P&gt;&lt;SPAN class=""&gt;&lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/236188" target="_self"&gt;XuZhang&lt;/A&gt;, thanks for replying. &amp;nbsp;I tried your example code with a new 64GB microSD, and I got an error:&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;PRE&gt;SEGGER J-Link GDB Server V7.96q - Terminal output channel&lt;BR /&gt;&lt;BR /&gt;FATFS example to demonstrate how to use FATFS with SD card.&lt;BR /&gt;&lt;BR /&gt;Please insert a card into board.&lt;BR /&gt;&lt;BR /&gt;Card inserted.&lt;BR /&gt;&lt;BR /&gt;Make file system......The time may be long if the card capacity is big.&lt;BR /&gt;Make file system failed.&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN class=""&gt;Out of curiosity, I tried a different FRDMK66 board - I have two - and with the newer FRDMK66 board, the example code worked like yours with a 64GB microSD. &amp;nbsp;So it's partly a hardware issue. &amp;nbsp;I can live with that, since the older FRDMK66 will be used in a harsh environment, and a 2GB SD card should work well enough.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;I don't consider this resolved - it should work the same on both boards, I'd think - but you can close the issue. &amp;nbsp;Thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2024 05:58:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDMK66F-maximum-size-of-SD-card/m-p/1905881#M66549</guid>
      <dc:creator>aaronm</dc:creator>
      <dc:date>2024-07-11T05:58:08Z</dc:date>
    </item>
    <item>
      <title>Re: FRDMK66F - maximum size of SD card?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDMK66F-maximum-size-of-SD-card/m-p/1906244#M66551</link>
      <description>&lt;P&gt;hi,arronm&lt;/P&gt;
&lt;P&gt;OK, I will close the issue,If you meet any issues about your project in the future, You can create the new case,I will continue to help you in your new case, thanks!&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Xu Zhang&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2024 10:42:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDMK66F-maximum-size-of-SD-card/m-p/1906244#M66551</guid>
      <dc:creator>Joey_z</dc:creator>
      <dc:date>2024-07-11T10:42:18Z</dc:date>
    </item>
  </channel>
</rss>

