<?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: freertos task switching in i.MX RT Crossover MCUs</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/freertos-task-switching/m-p/926376#M3728</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Xingsheng:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer to below link for task switching issues.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.freertos.org/FreeRTOS_Support_Forum_Archive/March_2016/freertos_task_not_switching_11912274j.html" title="https://www.freertos.org/FreeRTOS_Support_Forum_Archive/March_2016/freertos_task_not_switching_11912274j.html"&gt;task not switching - FreeRTOS&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://stackoverflow.com/questions/5142917/freertos-tasks-are-not-context-switching" title="https://stackoverflow.com/questions/5142917/freertos-tasks-are-not-context-switching"&gt;c - FreeRTOS tasks are not context switching - Stack Overflow&lt;/A&gt;&amp;nbsp;&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>Mon, 12 Aug 2019 05:25:47 GMT</pubDate>
    <dc:creator>danielchen</dc:creator>
    <dc:date>2019-08-12T05:25:47Z</dc:date>
    <item>
      <title>freertos task switching</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/freertos-task-switching/m-p/926373#M3725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using the csi_rgb565 example and I am trying to use rtos to run two tasks. The first task is the camera task, which captures images and displays it on the LCD, and the second task is an image processing task, which processes images slowly and runs less frequently than the camera task. I have set two tasks with the same priority but when I started the scheduler, only the camera task is running. The image processing task never runs. I have set USE_PREEEMPTION and USE_TIME_SLICING to 1 but the problem persists. Can anyone help? Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jul 2019 17:37:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/freertos-task-switching/m-p/926373#M3725</guid>
      <dc:creator>wxingsheng</dc:creator>
      <dc:date>2019-07-16T17:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: freertos task switching</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/freertos-task-switching/m-p/926374#M3726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Xingsheng:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FreeRTOS uses priority based scheduler. If a higher priority task never blocks on something,&amp;nbsp; lower priority tasks will not get any time to execute.&amp;nbsp;&amp;nbsp; I would suggest you check your higher priority task. for example,&amp;nbsp; vTaskDelay can release CPU, then lower priority task can have an opportunity to run.&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>Wed, 17 Jul 2019 09:53:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/freertos-task-switching/m-p/926374#M3726</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2019-07-17T09:53:26Z</dc:date>
    </item>
    <item>
      <title>Re: freertos task switching</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/freertos-task-switching/m-p/926375#M3727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both my tasks have the same priority so I don't think priority is the problem here. Also, I have added vTaskDelay to one of the tasks but the tasks still didn't switch.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jul 2019 15:47:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/freertos-task-switching/m-p/926375#M3727</guid>
      <dc:creator>wxingsheng</dc:creator>
      <dc:date>2019-07-17T15:47:06Z</dc:date>
    </item>
    <item>
      <title>Re: freertos task switching</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/freertos-task-switching/m-p/926376#M3728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Xingsheng:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer to below link for task switching issues.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.freertos.org/FreeRTOS_Support_Forum_Archive/March_2016/freertos_task_not_switching_11912274j.html" title="https://www.freertos.org/FreeRTOS_Support_Forum_Archive/March_2016/freertos_task_not_switching_11912274j.html"&gt;task not switching - FreeRTOS&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://stackoverflow.com/questions/5142917/freertos-tasks-are-not-context-switching" title="https://stackoverflow.com/questions/5142917/freertos-tasks-are-not-context-switching"&gt;c - FreeRTOS tasks are not context switching - Stack Overflow&lt;/A&gt;&amp;nbsp;&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>Mon, 12 Aug 2019 05:25:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/freertos-task-switching/m-p/926376#M3728</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2019-08-12T05:25:47Z</dc:date>
    </item>
  </channel>
</rss>

