<?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 Why I can't write data to SD card using MFS in different task? in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/Why-I-can-t-write-data-to-SD-card-using-MFS-in-different-task/m-p/444166#M14843</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to use MFS to write data to SD&amp;nbsp; card. now I have three task(main_task, init_task, temp_task), the main task is a auto_start task, the init task and temp task are created by the main task. the sd and mfs is inited in init_task, I can create and write data in main_task using mfs, but I can't do this in temp_task. Is there any method to make the mfs work in any task?&lt;/P&gt;&lt;P&gt;I am using MQX 4.1, and the board is my own demo board which is tested to be ok.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2015 14:10:00 GMT</pubDate>
    <dc:creator>botaoyang</dc:creator>
    <dc:date>2015-11-25T14:10:00Z</dc:date>
    <item>
      <title>Why I can't write data to SD card using MFS in different task?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Why-I-can-t-write-data-to-SD-card-using-MFS-in-different-task/m-p/444166#M14843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to use MFS to write data to SD&amp;nbsp; card. now I have three task(main_task, init_task, temp_task), the main task is a auto_start task, the init task and temp task are created by the main task. the sd and mfs is inited in init_task, I can create and write data in main_task using mfs, but I can't do this in temp_task. Is there any method to make the mfs work in any task?&lt;/P&gt;&lt;P&gt;I am using MQX 4.1, and the board is my own demo board which is tested to be ok.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2015 14:10:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Why-I-can-t-write-data-to-SD-card-using-MFS-in-different-task/m-p/444166#M14843</guid>
      <dc:creator>botaoyang</dc:creator>
      <dc:date>2015-11-25T14:10:00Z</dc:date>
    </item>
    <item>
      <title>Re: Why I can't write data to SD card using MFS in different task?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Why-I-can-t-write-data-to-SD-card-using-MFS-in-different-task/m-p/444167#M14844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Botao:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your case, init_task and temp_task are not in the same context.&amp;nbsp; If you need several tasks to write&amp;nbsp; data to the same SD card, you need to pay attention to the&amp;nbsp; communication and&amp;nbsp; synchronization between tasks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can refer to the web_hvac example,&lt;/P&gt;&lt;P&gt;C:\Freescale\Freescale_MQX_4_2\demo\web_hvac\logging_task.c&lt;/P&gt;&lt;P&gt;In this example, several tasks need to write data to USB. There is a light weight semaphore and a message queue to achieve this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Dec 2015 05:13:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Why-I-can-t-write-data-to-SD-card-using-MFS-in-different-task/m-p/444167#M14844</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2015-12-17T05:13:36Z</dc:date>
    </item>
  </channel>
</rss>

