<?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>ColdFire/68K Microcontrollers and Processors中的主题 JM128 and CMX FFS THIN</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/JM128-and-CMX-FFS-THIN/m-p/178013#M7083</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I finally got the USB-Mass Storage Device Demo project running on my own target hardware (rather than the demo board).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The CMX FFS THIN system (that came with the demo) seems to be working pretty good.&amp;nbsp; I can write data out to the USB drive I have attached.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I have run across a bit of a snag.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The first thing I do after everything is setup and working correctly is write out the Configuration Data (for my system) that I have stored in a I2C EEPROM on board into a CSV file out on the USB stick.&amp;nbsp; That works great.&amp;nbsp; I then close that file (with f_close(file1)) and it does not return an error code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But then I want to write some data to a second file.&amp;nbsp; If I try to do an f_open(file2) of the second file, it will not open.&amp;nbsp; EVER.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I understand that the CMX THIN that Freescale gives with this demo is limited to 1 file being open at a time, but I have closed the first file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, I have tried reversing the order (open the second file first) and whatever the FIRST file I open - that write happens succesfully.&amp;nbsp; But the second file opened returns a NULL pointer when I call f_open(file1).&lt;/P&gt;&lt;P&gt;I have stepped through the code and I can confirm that I am calling f_close(file1) and it is not returning an error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The odd thing is, if I stick the USB stick into my PC, the file2 is on the USB stick with a 0 byte size.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anybody have any thoughts?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 23 Jan 2011 11:57:30 GMT</pubDate>
    <dc:creator>ChiSoxKeith</dc:creator>
    <dc:date>2011-01-23T11:57:30Z</dc:date>
    <item>
      <title>JM128 and CMX FFS THIN</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/JM128-and-CMX-FFS-THIN/m-p/178013#M7083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I finally got the USB-Mass Storage Device Demo project running on my own target hardware (rather than the demo board).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The CMX FFS THIN system (that came with the demo) seems to be working pretty good.&amp;nbsp; I can write data out to the USB drive I have attached.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I have run across a bit of a snag.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The first thing I do after everything is setup and working correctly is write out the Configuration Data (for my system) that I have stored in a I2C EEPROM on board into a CSV file out on the USB stick.&amp;nbsp; That works great.&amp;nbsp; I then close that file (with f_close(file1)) and it does not return an error code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But then I want to write some data to a second file.&amp;nbsp; If I try to do an f_open(file2) of the second file, it will not open.&amp;nbsp; EVER.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I understand that the CMX THIN that Freescale gives with this demo is limited to 1 file being open at a time, but I have closed the first file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, I have tried reversing the order (open the second file first) and whatever the FIRST file I open - that write happens succesfully.&amp;nbsp; But the second file opened returns a NULL pointer when I call f_open(file1).&lt;/P&gt;&lt;P&gt;I have stepped through the code and I can confirm that I am calling f_close(file1) and it is not returning an error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The odd thing is, if I stick the USB stick into my PC, the file2 is on the USB stick with a 0 byte size.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anybody have any thoughts?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Jan 2011 11:57:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/JM128-and-CMX-FFS-THIN/m-p/178013#M7083</guid>
      <dc:creator>ChiSoxKeith</dc:creator>
      <dc:date>2011-01-23T11:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: JM128 and CMX FFS THIN</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/JM128-and-CMX-FFS-THIN/m-p/178014#M7084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See Post&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.freescale.com/message/78726#78726" title="https://community.freescale.com/message/78726#78726"&gt;https://community.freescale.com/message/78726#78726&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Feb 2011 09:16:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/JM128-and-CMX-FFS-THIN/m-p/178014#M7084</guid>
      <dc:creator>DMV</dc:creator>
      <dc:date>2011-02-16T09:16:41Z</dc:date>
    </item>
  </channel>
</rss>

