<?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 Problems writing to two files on an SD card simultaneously in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/Problems-writing-to-two-files-on-an-SD-card-simultaneously/m-p/355217#M11576</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are testing writing to an SD card using the TWR-K60F120M board, running MQX4.1, with the HVAC demo and SD driver and MFS library included.&amp;nbsp; We can open a file and read from it, then open two more files in write mode, but it will only work with the first file that is written to.&amp;nbsp; Upon trying to write to the second file the task is blocked.&amp;nbsp; This is the same whether I use fprintf(), or write().&amp;nbsp; The file handles are not NULL, and it doesn't block when the files are open, only when written to some time later.&amp;nbsp; I doubled the stack size (to 10kB) and it didn't help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a limitation with accessing multiple files through MQX MFS, or are we doing something wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Angelo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Sep 2014 00:54:56 GMT</pubDate>
    <dc:creator>ARQuattr</dc:creator>
    <dc:date>2014-09-30T00:54:56Z</dc:date>
    <item>
      <title>Problems writing to two files on an SD card simultaneously</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Problems-writing-to-two-files-on-an-SD-card-simultaneously/m-p/355217#M11576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are testing writing to an SD card using the TWR-K60F120M board, running MQX4.1, with the HVAC demo and SD driver and MFS library included.&amp;nbsp; We can open a file and read from it, then open two more files in write mode, but it will only work with the first file that is written to.&amp;nbsp; Upon trying to write to the second file the task is blocked.&amp;nbsp; This is the same whether I use fprintf(), or write().&amp;nbsp; The file handles are not NULL, and it doesn't block when the files are open, only when written to some time later.&amp;nbsp; I doubled the stack size (to 10kB) and it didn't help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a limitation with accessing multiple files through MQX MFS, or are we doing something wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Angelo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2014 00:54:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Problems-writing-to-two-files-on-an-SD-card-simultaneously/m-p/355217#M11576</guid>
      <dc:creator>ARQuattr</dc:creator>
      <dc:date>2014-09-30T00:54:56Z</dc:date>
    </item>
    <item>
      <title>Re: Problems writing to two files on an SD card simultaneously</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Problems-writing-to-two-files-on-an-SD-card-simultaneously/m-p/355218#M11577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I added Kernel logging in the user_config to monitor the stack usage to confirm I was not running out of stack space, and after recompiling the PSP the file writing issue went away.&amp;nbsp; I'm pretty sure nothing was changed in the PSP before, but I'm not sure if perhaps the projects (i.e. MFS, PSP, BSP, etc.) were built in the wrong order.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Oct 2014 14:00:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Problems-writing-to-two-files-on-an-SD-card-simultaneously/m-p/355218#M11577</guid>
      <dc:creator>ARQuattr</dc:creator>
      <dc:date>2014-10-02T14:00:01Z</dc:date>
    </item>
  </channel>
</rss>

