<?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: Implementing Freescale FAT Lite on ColdFire in ColdFire/68K Microcontrollers and Processors</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Implementing-Freescale-FAT-Lite-on-ColdFire/m-p/214873#M10794</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Seba, i really apreciate your dedication! I'm travelling right now, without computer! i'll come back to my job in may, and give you a full reply! Thx, sorry and good look! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Mar 2013 19:57:38 GMT</pubDate>
    <dc:creator>guille</dc:creator>
    <dc:date>2013-03-12T19:57:38Z</dc:date>
    <item>
      <title>Implementing Freescale FAT Lite on ColdFire</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Implementing-Freescale-FAT-Lite-on-ColdFire/m-p/214853#M10774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there, I need some help about this issue:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm working in a data logger project like DEMOFLEXISJMSD_DataLogger_V2 &lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.freescale.com%2Fwebapp%2Fsps%2Fsite%2Ftraining_information.jsp%3Fcode%3DWBNR_SDCARDREADER_S08JM%26fsrch%3D1" rel="nofollow" target="_blank"&gt;http://www.freescale.com/webapp/sps/site/training_information.jsp?code=WBNR_SDCARDREADER_S08JM&amp;amp;fsrch=1#&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This example use a SD card and Freescale FAT Lite to storage data.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I implemented the same FAT functions in the MCF51CN128RM ColdFire with the following results:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. SD_Init() function returns: &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ok (0).&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. FAT_FileOpen (FILE_NAME, MODIFY) function returns: &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FILE_NOT_FOUND (1) -&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If the file was not created with the same function with CREATE (1) as parameter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If I create a file using Windows XP, this function doesn't found it.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FILE_FOUND (0) -&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Just if the file was created using FAT_FileOpen function.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. FAT_FileOpen (FILE_NAME, CREATE) function returns: &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FILE_CREATE_OK (2) -&amp;gt;&amp;nbsp; But when I read the SD Card using Windows XP nothing appears.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using FAT functions like this:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #3366ff;"&gt;SD_Card_Status = SD_Init();&lt;/EM&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #3366ff;"&gt;if (SD_Card_Status != OK)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #3366ff;"&gt;{&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #3366ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #3366ff;"&gt;}&lt;/EM&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #3366ff;"&gt;FAT_Read_Master_Block();&lt;/EM&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #3366ff;"&gt;SD_Card_Status = FAT_FileOpen (FILE_NAME, MODIFY);&lt;/EM&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #3366ff;"&gt;if (SD_Card_Status = FILE_NOT_FOUND)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #3366ff;"&gt;{&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #3366ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SD_Card_Status = FAT_FileOpen (FILE_NAME, CREATE);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #3366ff;"&gt;}&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #3366ff;"&gt;FAT_FileClose();&lt;/EM&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;SD_Card_Status = FAT_FileOpen (FILE_NAME, MODIFY);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;FAT_FileWrite (SD_String_Array, 20);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;FAT_FileClose();&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this forum I found a discussion about Freescale FAT (&lt;A _jive_internal="true" data-containerid="2018" data-containertype="14" data-objectid="56589" data-objecttype="1" href="https://community.nxp.com/thread/56589#86766"&gt;https://community.freescale.com/message/86766#86766&lt;/A&gt;) but i can't solve the problem.&lt;/P&gt;&lt;P&gt;Even I&amp;nbsp; tried changing some part of the code suggested in the forum, but it doesn't work.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cuestions:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why FAT_FileOpen function returns FILE_CREATE_OK and Windows can't read it?&lt;/P&gt;&lt;P&gt;Why FAT FileOpen function can't recognize a file created with Windows?&lt;/P&gt;&lt;P&gt;Is this FAT library able to manage up to 2Gbs?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If some body test Freescale FAT Lite at ColdFire, please give me some tips.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards!&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pablo Suárez&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2012 20:42:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Implementing-Freescale-FAT-Lite-on-ColdFire/m-p/214853#M10774</guid>
      <dc:creator>PabloA</dc:creator>
      <dc:date>2012-10-10T20:42:02Z</dc:date>
    </item>
    <item>
      <title>Re: Implementing Freescale FAT Lite on ColdFire</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Implementing-Freescale-FAT-Lite-on-ColdFire/m-p/214854#M10775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pablo. &lt;/P&gt;&lt;P&gt;I have the same problem now and I don't know how to solve it. Have you found how to solve it meanwhile? Thank you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jaro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Dec 2012 15:05:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Implementing-Freescale-FAT-Lite-on-ColdFire/m-p/214854#M10775</guid>
      <dc:creator>jaroslavnecesan</dc:creator>
      <dc:date>2012-12-11T15:05:26Z</dc:date>
    </item>
    <item>
      <title>Re: Implementing Freescale FAT Lite on ColdFire</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Implementing-Freescale-FAT-Lite-on-ColdFire/m-p/214855#M10776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In that previously referenced discussion it looks like they were working from a modified version of FAT Lite. So whatever version you found may need previous modifications before finally those endian-related modifications will work.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Where did you get the library from? What download link?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This library was originally for 8-bit processors, and if it wasn't written to have the right structure sizes on 32-bit native CPUs, all of the "ints" might be the wrong length. These absolutely have to match Microsoft's definition of which bit and byte goes where in the FAT and Directory entries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If Freescale don't support a working FAT file system on these chips and you can't afford to buy one, this may turn into a big waste of your time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Dec 2012 05:25:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Implementing-Freescale-FAT-Lite-on-ColdFire/m-p/214855#M10776</guid>
      <dc:creator>TomE</dc:creator>
      <dc:date>2012-12-12T05:25:38Z</dc:date>
    </item>
    <item>
      <title>Re: Implementing Freescale FAT Lite on ColdFire</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Implementing-Freescale-FAT-Lite-on-ColdFire/m-p/214856#M10777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I seem to remember that the Codewarrior Coldfire compiler has configurable size of int and minimum alignment. So it might be possible to compile the code with the right settings to make it work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Dec 2012 06:23:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Implementing-Freescale-FAT-Lite-on-ColdFire/m-p/214856#M10777</guid>
      <dc:creator>scifi</dc:creator>
      <dc:date>2012-12-12T06:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: Implementing Freescale FAT Lite on ColdFire</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Implementing-Freescale-FAT-Lite-on-ColdFire/m-p/214857#M10778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pablo!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was having lots of problem with &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;DEMOFLEXISJMSD_DataLogger_V2&lt;/SPAN&gt; software, even I've read that it's got lots of bugs... Also, I was using it and sometimes it just hangs... It's been working fine and then suddenly it crashes for no reason so it was not reliable.&lt;/P&gt;&lt;P&gt;After lots of headaches I've found this: &lt;A href="https://github.com/suan/Freescale-SD-FAT-Library"&gt;https://github.com/suan/Freescale-SD-FAT-Library&lt;/A&gt; and it works like a charm!!! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;About FILE_CREATE_OK and can't see it on Windows (XP or 7), I can tell you 2 things:&lt;/P&gt;&lt;P&gt;1- In CodeWarrior Project Settings, you &lt;STRONG&gt;MUST&lt;/STRONG&gt; set &lt;EM&gt;Struct Aligment&lt;/EM&gt; to &lt;STRONG&gt;byte&lt;/STRONG&gt; under &lt;EM&gt;ColdFire Processor&lt;/EM&gt; panel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2- With suan's Library I needed to use SD Formatter: &lt;A href="https://www.sdcard.org/downloads/formatter_3/"&gt;https://www.sdcard.org/downloads/formatter_3/&lt;/A&gt; to format the SD card because when I formatted with windows it wouldn't have the format as the Library espect it to be (I didn't go deeper with this but I think is about FAT standards. This is the structure that suan's Library uses: &lt;A href="http://home.teleport.com/~brainy/fat16.htm"&gt;http://home.teleport.com/~brainy/fat16.htm&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I strongly recommend you to use this Library instead of the one from DRM104. So far I haven't got a single error regarding SD Card writes (I don't perform readings). And as you can see in older post I did have a lot of problems before.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Dec 2012 18:48:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Implementing-Freescale-FAT-Lite-on-ColdFire/m-p/214857#M10778</guid>
      <dc:creator>sebasira</dc:creator>
      <dc:date>2012-12-12T18:48:39Z</dc:date>
    </item>
    <item>
      <title>Re: Implementing Freescale FAT Lite on ColdFire</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Implementing-Freescale-FAT-Lite-on-ColdFire/m-p/214858#M10779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One thing I forgot to mentioned, is that not all the SD Cards can be handled via SPI... SunDisk's ones does. And if I recall correctly 2GB is the maximum for DRM104 FAT and also suan's library.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Saludos!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Dec 2012 18:54:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Implementing-Freescale-FAT-Lite-on-ColdFire/m-p/214858#M10779</guid>
      <dc:creator>sebasira</dc:creator>
      <dc:date>2012-12-12T18:54:43Z</dc:date>
    </item>
    <item>
      <title>Re: Implementing Freescale FAT Lite on ColdFire</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Implementing-Freescale-FAT-Lite-on-ColdFire/m-p/214859#M10780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;More interesting information on the various FAT formats and their history here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://en.wikipedia.org/wiki/Fat16" title="http://en.wikipedia.org/wiki/Fat16"&gt;http://en.wikipedia.org/wiki/Fat16&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A bit of perspective from Wikipedia. FAT16 (actually FAT16B) dates from 1987, 25 years ago. FAT32 was introduced with Windows 95 OSR2 in 1996, 16 years ago. FAT32 supports 32 bit cluster numbers, increasing the disk size from the 2G FAT16 limit to 16T. FAT32 usually implies "VFAT Long File names" (LFN) too, otherwise you have to use "8.3 file names".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FAT16 is fine for embedded storage, but if you want to be able to swap SD cards or USB Keys between the embedded system and other computers you'll have less problems if you get a stack that supports FAT32 and LFNs. That one doesn't support directories either (only files in the root directory).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; I needed to use SD Formatter:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Under Windows (at least XP) with small enough memory sticks you have the choice of formatting "FAT32", "FAT" or "exFAT". That library might work with "FAT" formatting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are swapping cards between the embedded device and a PC, be careful, and expect to lose data when the computers somehow disagree. I've even had the linux-based OS in a Tektronix oscilloscope format a USB Key in a way that Windows accepted, but which put a commercial embedded FAT32 stack into an infinite loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Dec 2012 23:30:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Implementing-Freescale-FAT-Lite-on-ColdFire/m-p/214859#M10780</guid>
      <dc:creator>TomE</dc:creator>
      <dc:date>2012-12-12T23:30:22Z</dc:date>
    </item>
    <item>
      <title>Re: Implementing Freescale FAT Lite on ColdFire</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Implementing-Freescale-FAT-Lite-on-ColdFire/m-p/214860#M10781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Hi there, I just published a revised version of FAT Lite. Some improvements were taken from this thread (&lt;A href="https://community.nxp.com/message/86766"&gt;Re: Problems porting SD FAT to MCF51 JM Badge Board - Datalogger application&lt;/A&gt;),&amp;nbsp; the others were the result of the efforts of me and my team.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;A class="jive-link-external-small" href="http://code.google.com/p/sdfatlite/" style="font-style: inherit; font-family: inherit; color: #3778c7;"&gt;http://code.google.com/p/sdfatlite/&lt;/A&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Cheers!&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2013 00:32:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Implementing-Freescale-FAT-Lite-on-ColdFire/m-p/214860#M10781</guid>
      <dc:creator>guille</dc:creator>
      <dc:date>2013-01-03T00:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: Implementing Freescale FAT Lite on ColdFire</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Implementing-Freescale-FAT-Lite-on-ColdFire/m-p/214861#M10782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Guille!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll give it a try and let you know about my experience&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SebaS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jan 2013 11:59:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Implementing-Freescale-FAT-Lite-on-ColdFire/m-p/214861#M10782</guid>
      <dc:creator>sebasira</dc:creator>
      <dc:date>2013-01-04T11:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: Implementing Freescale FAT Lite on ColdFire</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Implementing-Freescale-FAT-Lite-on-ColdFire/m-p/214862#M10783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This might seem a noob's question, but why on earth are there three main modules on the example you provided?, that is mainFAT, mainSD and mainSPI all have an infinite loop. I had never seen that before.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jan 2013 19:58:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Implementing-Freescale-FAT-Lite-on-ColdFire/m-p/214862#M10783</guid>
      <dc:creator>carlospalma</dc:creator>
      <dc:date>2013-01-04T19:58:47Z</dc:date>
    </item>
    <item>
      <title>Re: Implementing Freescale FAT Lite on ColdFire</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Implementing-Freescale-FAT-Lite-on-ColdFire/m-p/214863#M10784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh I Will correct that and upload it again. Those are the main functions were I tested the different modules independently. mainFat.c is the main that you need, thx for your comment.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jan 2013 21:03:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Implementing-Freescale-FAT-Lite-on-ColdFire/m-p/214863#M10784</guid>
      <dc:creator>guille</dc:creator>
      <dc:date>2013-01-04T21:03:18Z</dc:date>
    </item>
    <item>
      <title>Re: Implementing Freescale FAT Lite on ColdFire</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Implementing-Freescale-FAT-Lite-on-ColdFire/m-p/214864#M10785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thx, good luck!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jan 2013 21:05:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Implementing-Freescale-FAT-Lite-on-ColdFire/m-p/214864#M10785</guid>
      <dc:creator>guille</dc:creator>
      <dc:date>2013-01-04T21:05:00Z</dc:date>
    </item>
    <item>
      <title>Re: Implementing Freescale FAT Lite on ColdFire</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Implementing-Freescale-FAT-Lite-on-ColdFire/m-p/214865#M10786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have been working with the modified library you provided, but for some reason when I try to read the file LOG1.txt using my computer it shows nothing...that is even after I confirmed the routine to create a file was accessed by setting an LED on. Could you point me in the right direction? Is the format I'm using for my card the right one, because I have formatted it using windows seven and choosing FAT(default) .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Jan 2013 17:05:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Implementing-Freescale-FAT-Lite-on-ColdFire/m-p/214865#M10786</guid>
      <dc:creator>carlospalma</dc:creator>
      <dc:date>2013-01-05T17:05:52Z</dc:date>
    </item>
    <item>
      <title>Re: Implementing Freescale FAT Lite on ColdFire</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Implementing-Freescale-FAT-Lite-on-ColdFire/m-p/214866#M10787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;You should use some tool that gives you raw access to the file system, like WinHex, to verify the data is correctly write into the FS on the SD card, before trying with Windows. I read the structures described here (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.maverick-os.dk/FileSystemFormats/FAT16_FileSystem.html"&gt;http://www.maverick-os.dk/FileSystemFormats/FAT16_FileSystem.html&lt;/A&gt;&lt;SPAN&gt;) to understand and improve the Fat Lite library provided by Freescale. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;There are many posible cases and i don't probe them all. The idea is to keep the library as simple as posible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FAT (Default) is correct, it's FAT16 (you can see this with WinHex). It is posible that, for some reason, the library is not correctly writing the new file entry in the Root Directory section of the FS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know about your progress after using WinHex and reading the FAT structures!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Guille&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Jan 2013 18:59:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Implementing-Freescale-FAT-Lite-on-ColdFire/m-p/214866#M10787</guid>
      <dc:creator>guille</dc:creator>
      <dc:date>2013-01-05T18:59:32Z</dc:date>
    </item>
    <item>
      <title>Re: Implementing Freescale FAT Lite on ColdFire</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Implementing-Freescale-FAT-Lite-on-ColdFire/m-p/214867#M10788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guille. Listen, so far I got it to work modifying an already created file, I have to warn you and the community that even if winhex shows the boot information on block 0, it is not there, I used the method proposed by the original guy who uploaded the library (a loop to find boot information), and when reading main_offset using Freemaster (great tool by the way), it showed 226 as the block in which the boot information is stored. I don't know if it's because of the SD card I'm using, but changing that and this line of code :&lt;/P&gt;&lt;P&gt;while(ag8FATReadBuffer[0]!= 0xEB || ag8FATReadBuffer[1]!=0x3C || ag8FATReadBuffer[2]!=0x90)&lt;/P&gt;&lt;P&gt;did the trick for me. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;P&gt;the line of code used to read like this:&lt;/P&gt;&lt;P&gt;while(ag8FATReadBuffer[0]!=0xEB &amp;amp;&amp;amp; ag8FATReadBuffer[0]!=0x3C &amp;amp;&amp;amp; ag8FATReadBuffer[0]!=0x90)&lt;/P&gt;&lt;P&gt;I did this because negating an AND sentence gives an OR sentence (boolean logic)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2013 20:45:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Implementing-Freescale-FAT-Lite-on-ColdFire/m-p/214867#M10788</guid>
      <dc:creator>carlospalma</dc:creator>
      <dc:date>2013-01-08T20:45:02Z</dc:date>
    </item>
    <item>
      <title>Re: Implementing Freescale FAT Lite on ColdFire</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Implementing-Freescale-FAT-Lite-on-ColdFire/m-p/214868#M10789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Carlos, you are right about replacing &amp;amp;&amp;amp; with ||, i will correct it and update the repo soon. That line was commented on the library, so it shouldn't do any harm. However, regarding the method to obtain the location of the MBR (of the first partition), to further obtain the location of the Root Directory, to further access the file you want, you have two options:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. The method that the library originally use, commented in our version of the library:&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;while(ag8FATReadBuffer[0]!=0xEB &amp;amp;&amp;amp; ag8FATReadBuffer[0]!=0x3C &amp;amp;&amp;amp; ag8FATReadBuffer[0]!=0x90)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GetPhysicalBlock(u16Main_Offset++,&amp;amp;ag8FATReadBuffer[0]);&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; __RESET_WATCHDOG();&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;u16Main_Offset--; //Offset correction&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; Our method:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GetPhysicalBlock(0,&amp;amp;ag8FATReadBuffer[0]); //Get physical block zero from the SD&lt;/P&gt;&lt;P&gt;PartitionTable=(PartitionTable_Entries*)ag8FATReadBuffer; //Load the content of the buffer into the apropiate structure&lt;/P&gt;&lt;P&gt;if(PartitionTable-&amp;gt;MBRSignature!=0x55AA) return; // Verify MBR Signature&lt;/P&gt;&lt;P&gt;u16Main_Offset=(UINT16)LWordSwap(PartitionTable-&amp;gt;Partition[0].LBAStart);&amp;nbsp; //Compute address of first partition&lt;/P&gt;&lt;P&gt;GetPhysicalBlock(u16Main_Offset,&amp;amp;ag8FATReadBuffer[0]);&amp;nbsp; //Get physical block where the first partition is&lt;/P&gt;&lt;P&gt;if(ag8FATReadBuffer[0]!= 0xEB || ag8FATReadBuffer[1]!=0x3C || ag8FATReadBuffer[2]!=0x90) return;&amp;nbsp; // Verify the first partition start pattern&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can see, our method doesn't need to iterate in order to obtain the location of the first partition. It just get it from the values loaded in the MBR (not the MBR of the first partition -offset=226-, but the MBR of the physical volume, always located in zero address). As you said, i asume that the boot info &lt;EM&gt;of the physical volume &lt;/EM&gt;is in block zero. I read this from the FAT specs. &lt;EM&gt;The boot info of the first partition is not in block zero&lt;/EM&gt;. In your case, is in block 226. It's a little messy, in my case, the first partition began at 239.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I follow this picture to write the _PartitionTable_Entries structure&lt;/P&gt;&lt;P&gt;&lt;A href="http://es.wikipedia.org/wiki/Tabla_de_particiones" title="http://es.wikipedia.org/wiki/Tabla_de_particiones"&gt;Tabla de particiones - Wikipedia, la enciclopedia libre&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Same here&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.maverick-os.dk/FileSystemFormats/FAT16_FileSystem.html" title="http://www.maverick-os.dk/FileSystemFormats/FAT16_FileSystem.html"&gt;Maverick - The Operating System&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PD: Sorry for my english! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jan 2013 17:56:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Implementing-Freescale-FAT-Lite-on-ColdFire/m-p/214868#M10789</guid>
      <dc:creator>guille</dc:creator>
      <dc:date>2013-01-09T17:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: Implementing Freescale FAT Lite on ColdFire</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Implementing-Freescale-FAT-Lite-on-ColdFire/m-p/214869#M10790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guille!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I didn't have time to test your library before, and I started yesterday. Luckly for me, when I visit the site to download it, I found out that you already have a newer version.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I must tell you, I've got a custom hardware which has and SD socket, and it's attached to a MCF51QE128. It's working pretty good with suan's library I've posted before, but I've notice a problem whenever file size exceeded 3.5MB (don't know why yet). This problem encourage me to test yours and maybe replace the firmware with it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I think I've found some strange things that I want to point out: (please correct me if I'm wrong, what I'm telling is based on my experience)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) First I thought that the way to handle SD cards via SPI was to initialize it at a slow speed (375kHz or 400kHz), and then must boost to a higher one, above 4MHz. But I've notice that in SD.c the call &lt;STRONG&gt;HighSpeedSPI()&lt;/STRONG&gt; was commented. Is that ok?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Assuming that we &lt;STRONG&gt;must&lt;/STRONG&gt; work at a higher speed, then the BaudRate divider inside &lt;STRONG&gt;&lt;EM&gt;SPI_High_rate&lt;/EM&gt;&lt;/STRONG&gt; is not correct, if your bus clock is 24MHz. Also, if you actually are running at 24MHz (I'm also at that speed) then the low speed is wrong, because if you want 375kHz you need to divide 24MHz by 64, wich means SCI2BR = 0x05 (0b00000101) instead of 0x06. (I need to change the value 0x06 for 0x05 otherwise SD card wouldn't be initilized at least for me)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) in the &lt;STRONG&gt;SPI_Receive_byte&lt;/STRONG&gt; shouldn't you wait for &lt;STRONG&gt;SPI2S_SPTEF&lt;/STRONG&gt; before sending a dummy byte? And shouldn't you read STATUS register instead of DATA register before sending, in order to clear flags? I mean, replace taht routine with this one:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UINT8 SPI_Receive_byte(void)&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; while(!SPI2S_SPTEF) ;&amp;nbsp; &lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;EM&gt;&lt;STRONG&gt;(void)SPI2S;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SPI2DL=0xFF;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; while(!SPI2S_SPRF) ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return(SPI2DL);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I'd like to add that I've used the original freescale subroutines for a while (before suan's library) with this same hardware but sometimes it just get stuck on a SPI loop (if I recall correctly maybe the ReadMasterBlock loop) wich makes it impossible to use. Now with your new method maybe it's solved. I&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;'ve manage to run this library with the changes above,&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;but it still hangs here:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for(u16Counter=0;u16Counter&amp;lt;BLOCK_SIZE;u16Counter++)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *pu8DataPointer++=SPI_Receive_byte();&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;inside &lt;STRONG&gt;SD_Read_Block&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm also guessing that if we combine suan's library (wich IMHO is great) with your new method we can finally get a real working FAT for ColdFire&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One last thing I just remember when writting "ColdFire".... For the original library, the struct alignment of the project &lt;STRONG&gt;MUST&lt;/STRONG&gt; be changed to &lt;STRONG&gt;byte&lt;/STRONG&gt; instead of &lt;STRONG&gt;coldfire(long)&lt;/STRONG&gt;. In your's that is also needed or not? I tried it both ways but I cannot go futher because of the problem above.&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;Saludos (I'm also from Argentina, jeje)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SebaS&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Mar 2013 20:43:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Implementing-Freescale-FAT-Lite-on-ColdFire/m-p/214869#M10790</guid>
      <dc:creator>sebasira</dc:creator>
      <dc:date>2013-03-06T20:43:26Z</dc:date>
    </item>
    <item>
      <title>Re: Implementing Freescale FAT Lite on ColdFire</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Implementing-Freescale-FAT-Lite-on-ColdFire/m-p/214870#M10791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Has anyone tried Chan's code lately? I used it several years ago and it worked well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://elm-chan.org/fsw/ff/00index_e.html" title="http://elm-chan.org/fsw/ff/00index_e.html"&gt;FatFs - Generic FAT File System Module&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Mar 2013 04:06:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Implementing-Freescale-FAT-Lite-on-ColdFire/m-p/214870#M10791</guid>
      <dc:creator>JimDon</dc:creator>
      <dc:date>2013-03-07T04:06:02Z</dc:date>
    </item>
    <item>
      <title>Re: Implementing Freescale FAT Lite on ColdFire</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Implementing-Freescale-FAT-Lite-on-ColdFire/m-p/214871#M10792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've seen both (FatFs and PetitFat) years ago but never test them. I'm guessing I should use PetitFat because I don't believe I've got enough space for the full project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it was written for 8bit MCU and I'm using a 32bit one (MCF51QE). Since the project was done 3years ago I also guess it wouldn't have "support" in case of errors/problems&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The advantage is the support of FAT32.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jim: In which MCU did you test it? Would you recomend me to try it on a 32bit MCU? I'm asking you that because the original Freescale library was also ment for 8bit MCUs and when I ported to 32btis, I couldn't make it work until someon (I believe it was Carlos Cuevas) point me that I should change struct alignment to be byte instead of long. Until that moment I didn't know about struct alignment. I don't know if a problem like this one can arise with this project too; and without support, it would be difficult to port.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT:&#xD;
&#xD;
I just re-check ELM's library... and I notice it only provides FAT routines, not low-leve disk IO. Now I remember that was the final reason why I didn't use it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Mar 2013 12:13:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Implementing-Freescale-FAT-Lite-on-ColdFire/m-p/214871#M10792</guid>
      <dc:creator>sebasira</dc:creator>
      <dc:date>2013-03-07T12:13:53Z</dc:date>
    </item>
    <item>
      <title>Re: Implementing Freescale FAT Lite on ColdFire</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Implementing-Freescale-FAT-Lite-on-ColdFire/m-p/214872#M10793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The latest version was posted January 24 2013 so I would say it is still getting great support. Combined with the fact that the first release was 2006, it's age is a huge advantage, rather than a disadvantage.&lt;/P&gt;&lt;P&gt;The bit size of the processor should not at all be an issue - endianness and structure packing (a compiler issue) are bigger deals but IIRC he had solutions for that (of course structure packing must be by compiler, but we all know about that one).&lt;/P&gt;&lt;P&gt;He says it supports FAT12/16/32 long file names.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I ported it to a Dragon12 board (HCS12 - a 16 bit processor). Once I got my issue ironed out (Proper SPI operation etc), it was fine. You probably have the device specific issues already working.&lt;/P&gt;&lt;P&gt;I don't have an SD card slot right now, so I can't try it at this time, but I think it might be worth looking at.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Mar 2013 14:39:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Implementing-Freescale-FAT-Lite-on-ColdFire/m-p/214872#M10793</guid>
      <dc:creator>JimDon</dc:creator>
      <dc:date>2013-03-07T14:39:00Z</dc:date>
    </item>
  </channel>
</rss>

