<?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 in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/MFS/m-p/260865#M7752</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi netra,&lt;/P&gt;&lt;P&gt;Why are you closing "s:"?&lt;/P&gt;&lt;P&gt;Have you reviewed and run the following example?&lt;/P&gt;&lt;P&gt;C:\Freescale\Freescale_MQX_4_0\mfs\examples\ramdisk\cw10&lt;/P&gt;&lt;P&gt;From the shell prompt, after you have formatted the drive, you can create a test file and the issue a "dir" shell command that will issue the IOCTL command to find the first file in current directory.&lt;/P&gt;&lt;P&gt;Here is my terminal output (note I used TWR-MEM card with MRAM):&lt;/P&gt;&lt;P&gt;shell&amp;gt; Demo start&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Initialized Ram Disk to a:\&lt;/P&gt;&lt;P&gt;NOT A DOS DISK! You must format to continue.&lt;/P&gt;&lt;P&gt;Shell (build: Feb 15 2013)&lt;/P&gt;&lt;P&gt;Copyright (c) 2008 Freescale Semiconductor;&lt;/P&gt;&lt;P&gt;shell&amp;gt;&lt;/P&gt;&lt;P&gt;shell&amp;gt; format a:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Formating...&lt;/P&gt;&lt;P&gt;Done. Volume name is&lt;/P&gt;&lt;P&gt;Free disk space: 518144 bytes&lt;/P&gt;&lt;P&gt;shell&amp;gt;&lt;/P&gt;&lt;P&gt;shell&amp;gt; dir&lt;/P&gt;&lt;P&gt;shell&amp;gt;&lt;/P&gt;&lt;P&gt;shell&amp;gt; write test.txt 123&lt;/P&gt;&lt;P&gt;shell&amp;gt;&lt;/P&gt;&lt;P&gt;shell&amp;gt; dir&lt;/P&gt;&lt;P&gt;TEST.TXT&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 123 01-01-1980 00:04:26&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A TEST.TXT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;shell&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Similar topic that might also be of value:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/message/317033"&gt;Re: USB device with MFS ramdisk&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&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>Thu, 21 Feb 2013 16:50:49 GMT</pubDate>
    <dc:creator>DavidS</dc:creator>
    <dc:date>2013-02-21T16:50:49Z</dc:date>
    <item>
      <title>MFS</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MFS/m-p/260864#M7751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have Installed a device ram , under which I have installed a MFS named "s:"&lt;/P&gt;&lt;P&gt;Then I am uninstalling "s:".&lt;/P&gt;&lt;P&gt;I want to search all the files present in he device . so, I am opening ram using fopen &amp;amp; searching first file using ioctl , which is throwing error .&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;I am writing&amp;nbsp; a code to search a file from root directory.&lt;/P&gt;&lt;P&gt;mfs_ramdisk: is device driver , the directory is a:(only root directory is present no other directory is present)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff6600;"&gt; error_code = ioctl(mfs_fd_ptr, IO_IOCTL_FIND_FIRST_FILE,(uint_32_ptr) &amp;amp;search);// I am getting error in this statement , it is failing and not displying any files searched&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff6600;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff6600;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff6600;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff6600;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;mfs_fd_ptr = fopen("ramdisk:", NULL);&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (mfs_fd_ptr == NULL)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;printf("Error opening the MFS device driver!");&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;return;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #ff0000;"&gt; error_code = ioctl(mfs_fd_ptr, IO_IOCTL_FIND_FIRST_FILE,(uint_32_ptr) &amp;amp;search);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; while (error_code == MFS_NO_ERROR)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;error_code = ioctl(mfs_fd_ptr, IO_IOCTL_FIND_NEXT_FILE,(uint_32_ptr) &amp;amp;search_data);&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; fclose(mfs_fd_ptr);&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;Thanks in advance &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Feb 2013 09:38:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MFS/m-p/260864#M7751</guid>
      <dc:creator>netra</dc:creator>
      <dc:date>2013-02-16T09:38:34Z</dc:date>
    </item>
    <item>
      <title>Re: MFS</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MFS/m-p/260865#M7752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi netra,&lt;/P&gt;&lt;P&gt;Why are you closing "s:"?&lt;/P&gt;&lt;P&gt;Have you reviewed and run the following example?&lt;/P&gt;&lt;P&gt;C:\Freescale\Freescale_MQX_4_0\mfs\examples\ramdisk\cw10&lt;/P&gt;&lt;P&gt;From the shell prompt, after you have formatted the drive, you can create a test file and the issue a "dir" shell command that will issue the IOCTL command to find the first file in current directory.&lt;/P&gt;&lt;P&gt;Here is my terminal output (note I used TWR-MEM card with MRAM):&lt;/P&gt;&lt;P&gt;shell&amp;gt; Demo start&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Initialized Ram Disk to a:\&lt;/P&gt;&lt;P&gt;NOT A DOS DISK! You must format to continue.&lt;/P&gt;&lt;P&gt;Shell (build: Feb 15 2013)&lt;/P&gt;&lt;P&gt;Copyright (c) 2008 Freescale Semiconductor;&lt;/P&gt;&lt;P&gt;shell&amp;gt;&lt;/P&gt;&lt;P&gt;shell&amp;gt; format a:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Formating...&lt;/P&gt;&lt;P&gt;Done. Volume name is&lt;/P&gt;&lt;P&gt;Free disk space: 518144 bytes&lt;/P&gt;&lt;P&gt;shell&amp;gt;&lt;/P&gt;&lt;P&gt;shell&amp;gt; dir&lt;/P&gt;&lt;P&gt;shell&amp;gt;&lt;/P&gt;&lt;P&gt;shell&amp;gt; write test.txt 123&lt;/P&gt;&lt;P&gt;shell&amp;gt;&lt;/P&gt;&lt;P&gt;shell&amp;gt; dir&lt;/P&gt;&lt;P&gt;TEST.TXT&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 123 01-01-1980 00:04:26&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A TEST.TXT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;shell&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Similar topic that might also be of value:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/message/317033"&gt;Re: USB device with MFS ramdisk&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&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>Thu, 21 Feb 2013 16:50:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MFS/m-p/260865#M7752</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2013-02-21T16:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: MFS</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MFS/m-p/260866#M7753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Netra, is this helpful?&lt;/P&gt;&lt;P&gt;How is the project going?&lt;/P&gt;&lt;P&gt;Keep us posted please! :smileywink:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2013 23:58:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MFS/m-p/260866#M7753</guid>
      <dc:creator>Monica</dc:creator>
      <dc:date>2013-02-26T23:58:54Z</dc:date>
    </item>
  </channel>
</rss>

