<?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: task priority problem nandflash mfs TWR-K60 in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/task-priority-problem-nandflash-mfs-TWR-K60/m-p/234772#M6499</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For the RTCS, default priority of RTCS task is 6. User tasks running RTCS applications should be made with priority less than 6. I would lower also the RS485_TASK so that it doesn't block the RTCS task in case you're using polled mode serial driver.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In general, in an preemptive RTOS environment, task switching mechanism should be understood well and priorities selected carefully for an application needs. &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>Fri, 19 Jul 2013 11:05:47 GMT</pubDate>
    <dc:creator>Martin_</dc:creator>
    <dc:date>2013-07-19T11:05:47Z</dc:date>
    <item>
      <title>task priority problem nandflash mfs TWR-K60</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/task-priority-problem-nandflash-mfs-TWR-K60/m-p/234771#M6498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I have twr-k60 and twr-ser modules. I want to use all features of MQX on this tower system then I will develop my own custom board.&lt;/P&gt;&lt;P&gt;Currently,&lt;/P&gt;&lt;P&gt;I am able to use the features listed below in one project at the same time except for nandflash.&lt;/P&gt;&lt;P&gt;- sdcard&lt;/P&gt;&lt;P&gt;- usb flash disk&lt;/P&gt;&lt;P&gt;- nandflash (I have problem with mfs)&lt;/P&gt;&lt;P&gt;- ftp server&lt;/P&gt;&lt;P&gt;- telnet server&lt;/P&gt;&lt;P&gt;- web server&lt;/P&gt;&lt;P&gt;- shell&lt;/P&gt;&lt;P&gt;- my appliccation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also want to use nandflash over mfs.&lt;/P&gt;&lt;P&gt;I have 4 tasks listed below. Main task starts ftp server, web server and telnet. Then shell runs in main task.&lt;/P&gt;&lt;P&gt;&amp;nbsp; -----------------------&lt;/P&gt;&lt;P&gt;{ USB_TASK,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; USB_task,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2000,&amp;nbsp; 8L,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "USB",&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MQX_AUTO_START_TASK, 0,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0},&lt;/P&gt;&lt;P&gt;{ RS485_TASK,&amp;nbsp;&amp;nbsp; task_ioDevicesComm,&amp;nbsp; 2000,&amp;nbsp;&amp;nbsp; 6,&amp;nbsp;&amp;nbsp;&amp;nbsp; "rs_485",&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MQX_AUTO_START_TASK, 0,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 },&lt;/P&gt;&lt;P&gt;{ SDCARD_TASK,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; task_mySDCard,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2000,&amp;nbsp;&amp;nbsp;&amp;nbsp; 11,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "SDcard",&amp;nbsp;&amp;nbsp;&amp;nbsp; MQX_AUTO_START_TASK, 0,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0},&lt;/P&gt;&lt;P&gt;{ MAIN_TASK,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Main_task,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3000,&amp;nbsp;&amp;nbsp;&amp;nbsp; 12,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "main",&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MQX_AUTO_START_TASK, 0,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0},&lt;/P&gt;&lt;P&gt;--------------------------&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TELNETSRV_init("Telnet_server", 7, 2048, (RTCS_TASK_PTR) &amp;amp;Telnetd_shell_template );&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FTPd_init("FTP_server", 7, 4096 );&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;I am able to run nandflash example without error &lt;/SPAN&gt;&lt;A href="https://community.nxp.com/docs/DOC-94186"&gt;NAND Flash File System patch for Freescale MQX™ RTOS 4.0.0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But when I call fsopen from shell, shell task(main task) hangs. But the other task are running well. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone give me advise for task priorities.&lt;/P&gt;&lt;P&gt;For example should task priorities of the tasks using mfs be same?&lt;/P&gt;&lt;P&gt;Should rtcs tasks's priorities be higher than mfs tasks(usb, sdcard, nandflash tasks)&lt;/P&gt;&lt;P&gt;Is there such constraints for task priorities?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Jun 2013 11:11:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/task-priority-problem-nandflash-mfs-TWR-K60/m-p/234771#M6498</guid>
      <dc:creator>okaner</dc:creator>
      <dc:date>2013-06-23T11:11:21Z</dc:date>
    </item>
    <item>
      <title>Re: task priority problem nandflash mfs TWR-K60</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/task-priority-problem-nandflash-mfs-TWR-K60/m-p/234772#M6499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For the RTCS, default priority of RTCS task is 6. User tasks running RTCS applications should be made with priority less than 6. I would lower also the RS485_TASK so that it doesn't block the RTCS task in case you're using polled mode serial driver.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In general, in an preemptive RTOS environment, task switching mechanism should be understood well and priorities selected carefully for an application needs. &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>Fri, 19 Jul 2013 11:05:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/task-priority-problem-nandflash-mfs-TWR-K60/m-p/234772#M6499</guid>
      <dc:creator>Martin_</dc:creator>
      <dc:date>2013-07-19T11:05:47Z</dc:date>
    </item>
  </channel>
</rss>

