<?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: Ready Task is not Entered in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/Ready-Task-is-not-Entered/m-p/180965#M2734</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;1. I'm searching that also.&lt;/P&gt;&lt;P&gt;2. The UART&amp;nbsp;is not in blocking mode. Other task can transmit from same channel.&lt;/P&gt;&lt;P&gt;3. Each task has it's own commBuf (20 byte size) local array.&lt;/P&gt;&lt;P&gt;4. The system is not halted, I can see in the scope that the cyclic task is not transmitting and then I stop the program to see the Tasks state.&amp;nbsp;&lt;/P&gt;&lt;P&gt;4b. We have done this kind of testing, and the result was that the task was blocked before an open semaphore.&lt;/P&gt;&lt;P&gt;5. We also saw a more rare situation where the system is going wild ,&amp;nbsp;as I noted before, in this case the task is passing&lt;/P&gt;&lt;P&gt;even if the wait for semaphore should be blocked.&amp;nbsp;&lt;/P&gt;&lt;P&gt;6. I&amp;nbsp;have seen that a bug was found in the MQX scheduler may it be connected to my issue?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;~Michael David.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 13 Nov 2011 21:49:13 GMT</pubDate>
    <dc:creator>MichaelDavid</dc:creator>
    <dc:date>2011-11-13T21:49:13Z</dc:date>
    <item>
      <title>Ready Task is not Entered</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Ready-Task-is-not-Entered/m-p/180955#M2724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I use few tasks with the same priority. I have 2 almost identical tasks that transmits to the UART1 and UART3 ( Task per UART channel) the 2 tasks starts together and after a while one of the tasks stops transmiting. when stoping the run (in debug mode) the task state is Ready (in the MQX Task Summary) . while other tasks with the same priority work fine.&lt;/P&gt;&lt;P&gt;here is the task list:&lt;/P&gt;&lt;PRE&gt;TASK_TEMPLATE_STRUCT MQX_template_list[] = { /*  Task number, Entry point, Stack, Pri, String, Auto? */ {MAIN_TASK,       Main_task,                2000, 12,   "Main", MQX_AUTO_START_TASK }, {MANAGER_TASK, Mngr_ManagerTask,  2000, 11,  "Manager", 0 }, {AGENT_TASK,  Agnt_Task,    2000, 11, "Agent",  0 }, {SEND1_TASK,  Mngr_Send1Task,  2000, 10,  "Send1",  0 }, {SEND3_TASK,  Mngr_Send3Task,  2000, 10,  "Send3",  0 }, {CYCLIC_TASK1, Mngr_CyclicTask1,  2000, 11,  "Cyclic1",  0      }, {CYCLIC_TASK3, Mngr_CyclicTask3,  2000, 11,  "Cyclic3",  0 }, {NULL_TASK,         0,             0,      0,    0,      0,   }};&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here is problematic task:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;void Mngr_CyclicTask3(uint_32 initial_data){ uint_8 m_commBuf[UART_HANDLE],m_length,index; _time_delay(500); // send message to UART3 index = params.Uart3Handle; GET_HANDLE_PARAMS; while(1) {                //wait for the writing procedure   _lwsem_wait(&amp;amp;uart.Write3_SEM);                //send buffer  Mngr_Write3(m_commBuf,m_length);                // signal writing procedure  if (!_lwsem_poll(&amp;amp;uart.TX3_SEM))       _lwsem_post(&amp;amp;uart.TX3_SEM);                // wait for answer  _lwsem_wait_ticks(&amp;amp;uart.Read3_SEM,50);                // free resource  _lwsem_post(&amp;amp;uart.Write3_SEM);    _time_delay(100); }}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please Advise,&lt;/P&gt;&lt;P&gt;Michael David.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2020 09:30:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Ready-Task-is-not-Entered/m-p/180955#M2724</guid>
      <dc:creator>MichaelDavid</dc:creator>
      <dc:date>2020-10-29T09:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: Ready Task is not Entered</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Ready-Task-is-not-Entered/m-p/180956#M2725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems that the task stops working when it try's to work with another task in the same time. I'm working on K60 Kinetis with MQX 3.7 CW 10.1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Nov 2011 16:29:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Ready-Task-is-not-Entered/m-p/180956#M2725</guid>
      <dc:creator>MichaelDavid</dc:creator>
      <dc:date>2011-11-09T16:29:24Z</dc:date>
    </item>
    <item>
      <title>Re: Ready Task is not Entered</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Ready-Task-is-not-Entered/m-p/180957#M2726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;Does the stop problem still occur if you change all tasks to different/unique priorities?&lt;/P&gt;&lt;P&gt;I always use different priorities, because time slicing may generate problems with variable task execution.&lt;/P&gt;&lt;P&gt;~Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Nov 2011 20:01:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Ready-Task-is-not-Entered/m-p/180957#M2726</guid>
      <dc:creator>MarkP_</dc:creator>
      <dc:date>2011-11-09T20:01:22Z</dc:date>
    </item>
    <item>
      <title>Re: Ready Task is not Entered</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Ready-Task-is-not-Entered/m-p/180958#M2727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark, I've tried to change the priorities but the problem stays.&lt;/P&gt;&lt;P&gt;Michael David.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Nov 2011 22:18:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Ready-Task-is-not-Entered/m-p/180958#M2727</guid>
      <dc:creator>MichaelDavid</dc:creator>
      <dc:date>2011-11-09T22:18:13Z</dc:date>
    </item>
    <item>
      <title>Re: Ready Task is not Entered</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Ready-Task-is-not-Entered/m-p/180959#M2728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to other task handles the TX3_SEM?&lt;/P&gt;&lt;P&gt;There is possible double post below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;// signal writing procedure&lt;BR /&gt;if (!_lwsem_poll(&amp;amp;uart.TX3_SEM))&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;&amp;lt; Sema not available now. If context switch occurs at this point and &amp;gt;&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;&amp;lt; other task posts a sema. The post below is doing the 2nd post, shouldn't &amp;gt;&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; _lwsem_post(&amp;amp;uart.TX3_SEM);&lt;BR /&gt;}&lt;BR /&gt;~Mark&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Nov 2011 01:42:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Ready-Task-is-not-Entered/m-p/180959#M2728</guid>
      <dc:creator>MarkP_</dc:creator>
      <dc:date>2011-11-10T01:42:17Z</dc:date>
    </item>
    <item>
      <title>Re: Ready Task is not Entered</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Ready-Task-is-not-Entered/m-p/180960#M2729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mike&lt;/P&gt;&lt;P&gt;You are right. I've changed it in my code after sending the case to these lines:&lt;/P&gt;&lt;PRE&gt;if (!uart.TX3_SEM.VALUE)  _lwsem_post(&amp;amp;uart.TX3_SEM);&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;but still It doesn't work ...&lt;/P&gt;&lt;P&gt;~Michael David.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2020 09:30:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Ready-Task-is-not-Entered/m-p/180960#M2729</guid>
      <dc:creator>MichaelDavid</dc:creator>
      <dc:date>2020-10-29T09:30:56Z</dc:date>
    </item>
    <item>
      <title>Re: Ready Task is not Entered</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Ready-Task-is-not-Entered/m-p/180961#M2730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another strange phenomena is that sometimes a Task is blocked by a semaphore. But it doesn't appear as waiting in the list of Light Weight semaphores:&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you can see in the attachments; there are only 4 semaphores that tasks are waiting for (taskerr2.jpg), but in the task list 5 tasks are blocked by semaphores. (taskerr1.jpg)&lt;/P&gt;&lt;P&gt;In this case the task Send1 doesn't appear in the semaphores list as a waiting task, thus, it is stucked and does not recover...&lt;/P&gt;&lt;P&gt;﻿﻿&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Nov 2011 02:33:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Ready-Task-is-not-Entered/m-p/180961#M2730</guid>
      <dc:creator>MichaelDavid</dc:creator>
      <dc:date>2011-11-10T02:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: Ready Task is not Entered</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Ready-Task-is-not-Entered/m-p/180962#M2731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;the same problem exist also in this:&lt;/P&gt;&lt;P&gt;if (!uart.TX3_SEM.VALUE)&lt;BR /&gt;&amp;nbsp; _lwsem_post(&amp;amp;uart.TX3_SEM);&lt;/P&gt;&lt;P&gt;The semaphore is posted or not , depends on timing of the other task, i.e. has it posted or not.&lt;/P&gt;&lt;P&gt;Note that the other task may run and change sema state after sema test and before sema post.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could the problem be a pure deadlock?&lt;/P&gt;&lt;P&gt;E.g. two tasks reserves two semaphores in reverse order:&lt;/P&gt;&lt;P&gt;Task1: reserve(1)&lt;/P&gt;&lt;P&gt;Task2: reserve(2)&lt;/P&gt;&lt;P&gt;Task1: trying to reserve(2), blocked&lt;/P&gt;&lt;P&gt;Task2: trying to reserve(1), blocked and deadlock.&lt;/P&gt;&lt;P&gt;Could you post the code of SendTask and others if they handles the same semaphores.&lt;/P&gt;&lt;P&gt;~Mark&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Nov 2011 00:38:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Ready-Task-is-not-Entered/m-p/180962#M2731</guid>
      <dc:creator>MarkP_</dc:creator>
      <dc:date>2011-11-11T00:38:12Z</dc:date>
    </item>
    <item>
      <title>Re: Ready Task is not Entered</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Ready-Task-is-not-Entered/m-p/180963#M2732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark ,&lt;/P&gt;&lt;P&gt;1. About the if before posting, the situation you describe shouldn't occur because all tasks have same priority.&lt;/P&gt;&lt;P&gt;2. If the problem is deadlock , I should see it in the MQX LightWeight sem Tab,/MQX Task Summery Tab, and not that the stuck Task is in ready state!&lt;/P&gt;&lt;P&gt;3. Another phenomena is that blocked task are blocked although the blocking semaphore is set.( so I can't find what's blocking the task). The opposite phenomena also happens (more rarely)&amp;nbsp;, that&amp;nbsp;Task&amp;nbsp;waiting for semaphore is passing wait&amp;nbsp;&amp;nbsp;also the semaphore is cleared (then the system go wild) &amp;nbsp;&lt;/P&gt;&lt;P&gt;here is send3 Task:&lt;/P&gt;&lt;PRE&gt;void Mngr_Send3Task(uint_32 initial_data){  _mqx_uint result;   for(;;)  {    result = _lwsem_wait(&amp;amp;uart.TX3_SEM);    _task_stop_preemption();    Uart_Write(UART3_BASE_PTR, m_send3.buf, m_send3.length);    _task_start_preemption();      // wait for answer    result = _lwsem_wait_ticks(&amp;amp;uart.RX3_SEM, 50);    if (result != MQX_OK)    {      // timeout error      params.HandleErrors[params.Uart3Handle] |= HandleComError;      m_msg3.busy = 0;      //enable next write      if (!uart.Read3_SEM.VALUE)       _lwsem_post(&amp;amp;uart.Read3_SEM);      continue;    }    // parse message    if(!Mngr_Parser3(m_msg3.buf,m_msg3.length,params.Uart3Handle))                  {      params.HandleErrors[params.Uart3Handle] |= HandleComError;    }    else      params.HandleErrors[params.Uart3Handle] &amp;amp;= ~HandleComError;    m_msg3.busy = 0;    //enable next write    if (!uart.Read3_SEM.VALUE)    {       _lwsem_post(&amp;amp;uart.Read3_SEM);    }  } }&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Thanks for the Help,&lt;/P&gt;&lt;P&gt;`Michael David.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2020 09:30:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Ready-Task-is-not-Entered/m-p/180963#M2732</guid>
      <dc:creator>MichaelDavid</dc:creator>
      <dc:date>2020-10-29T09:30:58Z</dc:date>
    </item>
    <item>
      <title>Re: Ready Task is not Entered</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Ready-Task-is-not-Entered/m-p/180964#M2733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;BR /&gt;Couldn't follow easily all semaphore actions, probably they are OK.&lt;BR /&gt;Few hints:&lt;BR /&gt;1)If the system goes wild, there might be a bug.&lt;BR /&gt;&amp;nbsp;Some indexing problem or concurrent buffer usage?&lt;BR /&gt;&lt;BR /&gt;2)Is the uart in blocking mode?&lt;BR /&gt;How this _task_stop_preemption() affects if the task is suspended?&lt;BR /&gt;Suspends task when output queue is full:&lt;BR /&gt;serl_int.c:&lt;BR /&gt;=&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(flags &amp;amp; IO_SERIAL_NON_BLOCKING) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (_CHARQ_SIZE(in_queue) == 0) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; num -= i;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _int_enable();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } /* Endif */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } else {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; while (_CHARQ_SIZE(in_queue) == 0) {&lt;BR /&gt;=&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _taskq_suspend(int_io_dev_ptr-&amp;gt;IN_WAITING_TASKS);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } /* Endwhile */ &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } /* Endif */&lt;BR /&gt;&lt;BR /&gt;Have you increased the output buffer size, e.g.:&lt;BR /&gt;#define BSPCFG_SCI3_QUEUE_SIZE 256 /* sci3=ittyd */&lt;BR /&gt;&lt;BR /&gt;3)What is the size of commBuf?&lt;BR /&gt;&amp;nbsp;uint_8 m_commBuf[UART_HANDLE],m_length,index;&lt;BR /&gt;It is allocated in Mngr_CyclicTask3 stack.&lt;BR /&gt;&lt;BR /&gt;4)Can you see the task stacks (where the task execution is) when the halt has occurred?&lt;BR /&gt;At my project I only see the active task, others lies delay:&lt;BR /&gt;Thread [ID: 0x10003] (Suspended: Signal 'Process Suspended' received. Description: Process Suspended.)&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;3 DummyFn1() C:..\Freescale MQX 3.7\mqx\source\psp\cortex\dispatch.s:100 0x00000450&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;2 _time_delay_internal() C:..\Freescale MQX 3.7\mqx\source\kernel\ti_deli.c:103 0x0000dcd0&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;1 _bsp_exit_handler() C:..\Freescale MQX 3.7\mqx\source\bsp\twrk60n512\init_bsp.c:251 0x00000000&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;One way to debug task states is to add global variables into tasks&lt;BR /&gt;and inspect those values.&lt;BR /&gt;Example:&lt;BR /&gt;task_1_state=1;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; result = _lwsem_wait(&amp;amp;uart.TX3_SEM);&lt;BR /&gt;task_1_state=2;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; _task_stop_preemption();&lt;BR /&gt;task_1_state=3;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Uart_Write(UART3_BASE_PTR, m_send3.buf, m_send3.length);&lt;BR /&gt;task_1_state=4;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; _task_start_preemption();&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // wait for answer&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; result = _lwsem_wait_ticks(&amp;amp;uart.RX3_SEM, 50);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (result != MQX_OK)&lt;BR /&gt;&lt;BR /&gt;~Mark&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Nov 2011 14:49:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Ready-Task-is-not-Entered/m-p/180964#M2733</guid>
      <dc:creator>MarkP_</dc:creator>
      <dc:date>2011-11-11T14:49:20Z</dc:date>
    </item>
    <item>
      <title>Re: Ready Task is not Entered</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Ready-Task-is-not-Entered/m-p/180965#M2734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;1. I'm searching that also.&lt;/P&gt;&lt;P&gt;2. The UART&amp;nbsp;is not in blocking mode. Other task can transmit from same channel.&lt;/P&gt;&lt;P&gt;3. Each task has it's own commBuf (20 byte size) local array.&lt;/P&gt;&lt;P&gt;4. The system is not halted, I can see in the scope that the cyclic task is not transmitting and then I stop the program to see the Tasks state.&amp;nbsp;&lt;/P&gt;&lt;P&gt;4b. We have done this kind of testing, and the result was that the task was blocked before an open semaphore.&lt;/P&gt;&lt;P&gt;5. We also saw a more rare situation where the system is going wild ,&amp;nbsp;as I noted before, in this case the task is passing&lt;/P&gt;&lt;P&gt;even if the wait for semaphore should be blocked.&amp;nbsp;&lt;/P&gt;&lt;P&gt;6. I&amp;nbsp;have seen that a bug was found in the MQX scheduler may it be connected to my issue?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;~Michael David.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Nov 2011 21:49:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Ready-Task-is-not-Entered/m-p/180965#M2734</guid>
      <dc:creator>MichaelDavid</dc:creator>
      <dc:date>2011-11-13T21:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: Ready Task is not Entered</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Ready-Task-is-not-Entered/m-p/180966#M2735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;BR /&gt;Your problem: "task is passing even if the wait for semaphore should be blocked."&lt;BR /&gt;This might be a result that sema has been posted twice, as I mentioned.&lt;BR /&gt;&lt;BR /&gt;This should be made somehow in a different way:&lt;BR /&gt;&amp;nbsp; if (!uart.Read3_SEM.VALUE)&lt;BR /&gt;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;&amp;lt; If other task posts a sema at this time instant,&amp;nbsp; &amp;gt;&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;&amp;lt; the sema counter is two instead of one&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;gt;&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; _lwsem_post(&amp;amp;uart.Read3_SEM);&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;&lt;BR /&gt;How have you declared schemas in uart-structure?&lt;BR /&gt;&amp;nbsp; With LWSEM_STRUCT, not LWSEM_STRUCT_PTR&lt;BR /&gt;&lt;BR /&gt;You could try to test the MQX schedule fix by replacing the content of&lt;BR /&gt;_set_pend_sv in PSP_cortex:dispatch.s&lt;BR /&gt;&lt;A __default_attr="96384" class="jive_macro jive_macro_thread default_title" href="https://community.freescale.com/thread/96384" jivemacro="thread" title="https://community.freescale.com/thread/96384"&gt;https://community.freescale.com/thread/96384&lt;/A&gt;&lt;BR /&gt;(and compiling psp)&lt;BR /&gt;&lt;BR /&gt;Have you made changes to bsp or psp? Clean and (re)build them.&lt;BR /&gt;(Noticed that clean helps sometimes to mysteries)&lt;BR /&gt;~Mark&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Nov 2011 13:54:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Ready-Task-is-not-Entered/m-p/180966#M2735</guid>
      <dc:creator>MarkP_</dc:creator>
      <dc:date>2011-11-15T13:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: Ready Task is not Entered</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Ready-Task-is-not-Entered/m-p/180967#M2736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem was when I defined my interrupt priorities to be 3 than might have interfered the MQX kernal. changing it to 10 solved the problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Nov 2011 05:21:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Ready-Task-is-not-Entered/m-p/180967#M2736</guid>
      <dc:creator>MichaelDavid</dc:creator>
      <dc:date>2011-11-25T05:21:09Z</dc:date>
    </item>
  </channel>
</rss>

