<?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: MFS space limitation on SD cards? in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MFS-space-limitation-on-SD-cards/m-p/720938#M44145</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;Have you looked at my post &lt;A _jive_internal="true" href="https://community.nxp.com/thread/452368"&gt;https://community.nxp.com/thread/452368&lt;/A&gt;&amp;nbsp;&lt;SPAN style="font-size: 11pt;"&gt;_io_part_mgr_write fails on large sector&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;It sounds like a similar problem and I have suggested a fix to the KSDK in that post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Adrian.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Mar 2018 11:06:18 GMT</pubDate>
    <dc:creator>adyr</dc:creator>
    <dc:date>2018-03-02T11:06:18Z</dc:date>
    <item>
      <title>MFS space limitation on SD cards?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MFS-space-limitation-on-SD-cards/m-p/720936#M44143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We borrowed (copied/modified) the SD card example in KSDK and got MFS working on an SD card (thank you Freescale for the most robust enablement on the planet).&lt;/P&gt;&lt;P&gt;We've grown our funcionality to include reading and writing files to the SD card and it works well.&lt;/P&gt;&lt;P&gt;But we have a (very consistent) problem when approx 1.9 GB has been written to the SD card (after a fresh windows format) where files can no longer be written, opened, ioctl, read or anything.&lt;/P&gt;&lt;P&gt;It appears that if we delete files from the SD card, we can resume reading/writing/opening files just fine until space fills again.&lt;/P&gt;&lt;P&gt;We think it has to do with the partition manager (limit) but reading around does not tell us that is the real problem.&lt;/P&gt;&lt;P&gt;We've considered removing the partition manager (our reading suggests it isn't needed but we admit we haven't read enough).&lt;/P&gt;&lt;P&gt;But removing the partition manager causes other problems.&lt;/P&gt;&lt;P&gt;And it looks like MFS wants the sector size to be 512 bytes but windows only allows 8k, 16k, or 32k).&lt;/P&gt;&lt;P&gt;Where to turn? Any help is very much appreciated!&lt;/P&gt;&lt;P&gt;PS: KSDK 1.3, KSD 3.2, K65 (tower and custom target board)&lt;/P&gt;&lt;P&gt;PPS: SD card is a 32 GB card, quick formatted as 27.9 GB&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Mar 2018 01:08:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MFS-space-limitation-on-SD-cards/m-p/720936#M44143</guid>
      <dc:creator>mscovel</dc:creator>
      <dc:date>2018-03-02T01:08:11Z</dc:date>
    </item>
    <item>
      <title>Re: MFS space limitation on SD cards?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MFS-space-limitation-on-SD-cards/m-p/720937#M44144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the size of the card and the size of the FAT that is configured when formatted?&lt;BR /&gt;Check also the routine that allocates more clusters to see whether it returns a failure - there is a limit when the FAT clusters are used up, which will not allow further data to be written to a file or further objects created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have utFAT running on a KEA128 next to me which allows good monitoring and analysis, as shown below (on command line interface), so I expect you will have something similar to see the SD card formatting details and analyse objects etc. which may give some ideas.&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;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier, monospace;"&gt;Hello, world... FRDM-KEAZ128Q80 [Power-on]&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: 'courier new', courier, monospace;"&gt;Static memory = 0x00004000&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: 'courier new', courier, monospace;"&gt;OS Heap use = 0x0225 from 0x2000&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: 'courier new', courier, monospace;"&gt;Initial stack margin 0x00000000&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: 'courier new', courier, monospace;"&gt;SD-card V2 - High Capacity&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier, monospace;"&gt;Disk D mounted&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier, monospace;"&gt;Serial number: 00&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: 'courier new', courier, monospace;"&gt;Software version V1.4.012&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: 'courier new', courier, monospace;"&gt;Device identification: KINETIS&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier, monospace;"&gt;Main menu&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: 'courier new', courier, monospace;"&gt;===================&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: 'courier new', courier, monospace;"&gt;1 Configure LAN interface&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: 'courier new', courier, monospace;"&gt;2 Configure serial interface&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: 'courier new', courier, monospace;"&gt;3 Go to I/O menu&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: 'courier new', courier, monospace;"&gt;4 Go to administration menu&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: 'courier new', courier, monospace;"&gt;5 Go to overview/statistics menu&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: 'courier new', courier, monospace;"&gt;6 Go to USB menu&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: 'courier new', courier, monospace;"&gt;7 Go to I2C menu&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: 'courier new', courier, monospace;"&gt;8 Go to utFAT disk interface&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: 'courier new', courier, monospace;"&gt;9 FTP/TELNET commands&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: 'courier new', courier, monospace;"&gt;a CAN commands&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: 'courier new', courier, monospace;"&gt;help Display menu specific help&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: 'courier new', courier, monospace;"&gt;quit Leave command mode&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: 'courier new', courier, monospace;"&gt;8&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG style="font-family: 'courier new', courier, monospace;"&gt; Disk interface&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: 'courier new', courier, monospace;"&gt;===================&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: 'courier new', courier, monospace;"&gt;up go to main menu&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: 'courier new', courier, monospace;"&gt;info utFAT/card info&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: 'courier new', courier, monospace;"&gt;dir [path] show directory content&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: 'courier new', courier, monospace;"&gt;dird [path] show deleted directory content&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: 'courier new', courier, monospace;"&gt;dirh [path] show hidden content&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: 'courier new', courier, monospace;"&gt;infof [path] show file info&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: 'courier new', courier, monospace;"&gt;infod [path] show deleted info&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: 'courier new', courier, monospace;"&gt;cd [path] change dir. (.. for up)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: 'courier new', courier, monospace;"&gt;file [path] new empty file&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: 'courier new', courier, monospace;"&gt;write [path] test write to file&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: 'courier new', courier, monospace;"&gt;mkdir new empty dir&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: 'courier new', courier, monospace;"&gt;rename [from] [to] rename&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: 'courier new', courier, monospace;"&gt;trunc truncate to [length] [path]&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: 'courier new', courier, monospace;"&gt;hide [path] file/dir to hide&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: 'courier new', courier, monospace;"&gt;unhide [path] file/dir to un-hide&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: 'courier new', courier, monospace;"&gt;prot [path] file/dir to write-protect&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: 'courier new', courier, monospace;"&gt;unprot [path] file/dir to un-protet&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: 'courier new', courier, monospace;"&gt;print [path] print file content&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: 'courier new', courier, monospace;"&gt;del [path] delete file or dir.&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: 'courier new', courier, monospace;"&gt;undel undelete [name]&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: 'courier new', courier, monospace;"&gt;format [-16/12] [label] format (unformatted) disk&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: 'courier new', courier, monospace;"&gt;fformat [-16/12] [label] full format (unformatted) disk&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: 'courier new', courier, monospace;"&gt;re-format [-16/12] [label] reformat disk!!!!!&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: 'courier new', courier, monospace;"&gt;re-fformat [-16/12] [label] full reformat disk!!!!!&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: 'courier new', courier, monospace;"&gt;sect [hex no.] display sector&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: 'courier new', courier, monospace;"&gt;help Display menu specific help&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: 'courier new', courier, monospace;"&gt;quit Leave command mode&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG style="font-family: 'courier new', courier, monospace;"&gt;info&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier, monospace;"&gt;Disk CARD (4124049408 bytes) SDHC FAT32&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: 'courier new', courier, monospace;"&gt;Bytes per sector: 512&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: 'courier new', courier, monospace;"&gt;Cluster size: 4096&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: 'courier new', courier, monospace;"&gt;Directory base: 0x00000002&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: 'courier new', courier, monospace;"&gt;FAT start: 0x0000005f&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: 'courier new', courier, monospace;"&gt;FAT size: 0x00001eb3&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: 'courier new', courier, monospace;"&gt;Number of FATs: 2&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: 'courier new', courier, monospace;"&gt;LBA: 0x00003dc5&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: 'courier new', courier, monospace;"&gt;Total clusters: 0x000f5547&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: 'courier new', courier, monospace;"&gt;Info sect: 0x00000040&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: 'courier new', courier, monospace;"&gt;Free clusters: 0x000f5545&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: 'courier new', courier, monospace;"&gt;Next free: 0x00000004&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: 'courier new', courier, monospace;"&gt;CSD: 0x40 0x0e 0x00 0x32 0x5b 0x59 0x00 0x00 0x1e 0xb9 0x7f 0x80 0x0a 0x40 0x00 0xc7&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG style="font-family: 'courier new', courier, monospace;"&gt;&amp;gt;dir&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: 'courier new', courier, monospace;"&gt;Directory D:\&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier, monospace;"&gt;---A 26.10.2015 12:00 669752 software.bin&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: 'courier new', courier, monospace;"&gt;1 files with 669752 bytes&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: 'courier new', courier, monospace;"&gt;0 directories, 4115943424 bytes free&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: 'courier new', courier, monospace;"&gt;D:\&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier, monospace;"&gt;infof software.bin&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: 'courier new', courier, monospace;"&gt;File: software.bin is LFN&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: 'courier new', courier, monospace;"&gt;Starting at entry 0x01 in sector 0x00003dc5 (cluster 0x00000002)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: 'courier new', courier, monospace;"&gt;First object from 1&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: 'courier new', courier, monospace;"&gt;Data = 0x41 0x73 0x00 0x6f 0x00 0x66 0x00 0x74 0x00 0x77 0x00 0x0f 0x00 0xed 0x61 0x00 0x72 0x00 0x65 0x00 0x2e 0x00 0x62 0x00 0x69 0x00 0x00 0x00 0x6e 0x00 0x00 0x00&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: 'courier new', courier, monospace;"&gt;SFN File located at entry 0x02 in sector 0x00003dc5 (cluster 0x00000002)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: 'courier new', courier, monospace;"&gt;Data = 0x20 0x00 0x09 0x00 0x03 0x08 0x1e 0x18 0x2f 0x00 0x00 0x20 0x00 0x00 0x00 0x60 0x5a 0x47 0x5a 0x47 0x00 0x00 0x00 0x60 0x5a 0x47 0x03 0x00 0x38 0x38 0x0a 0x00&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: 'courier new', courier, monospace;"&gt;SFN name (archive) = ......./.. Alias CS = 0xed&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: 'courier new', courier, monospace;"&gt;File length = 669752 starting in sector 0x00003dcd (cluster 0x00000003) FAT sector 0x0000005f offset 0x03&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-family: 'courier new', courier, monospace;"&gt;D:\&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Mar 2018 01:41:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MFS-space-limitation-on-SD-cards/m-p/720937#M44144</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2018-03-02T01:41:46Z</dc:date>
    </item>
    <item>
      <title>Re: MFS space limitation on SD cards?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MFS-space-limitation-on-SD-cards/m-p/720938#M44145</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;Have you looked at my post &lt;A _jive_internal="true" href="https://community.nxp.com/thread/452368"&gt;https://community.nxp.com/thread/452368&lt;/A&gt;&amp;nbsp;&lt;SPAN style="font-size: 11pt;"&gt;_io_part_mgr_write fails on large sector&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;It sounds like a similar problem and I have suggested a fix to the KSDK in that post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Adrian.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Mar 2018 11:06:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MFS-space-limitation-on-SD-cards/m-p/720938#M44145</guid>
      <dc:creator>adyr</dc:creator>
      <dc:date>2018-03-02T11:06:18Z</dc:date>
    </item>
  </channel>
</rss>

