<?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: KW36 user task in Wireless MCU</title>
    <link>https://community.nxp.com/t5/Wireless-MCU/KW36-user-task/m-p/1204783#M10507</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I made a test. If your task priority is lower than main task and your stack for your own task is larger, your task won't work. Increasing the value of gTotalHeapSize_c in app_preinclude.h will solve this problem.&lt;/P&gt;
&lt;P&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;
&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 days after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;</description>
    <pubDate>Tue, 29 Dec 2020 07:31:39 GMT</pubDate>
    <dc:creator>nxf56274</dc:creator>
    <dc:date>2020-12-29T07:31:39Z</dc:date>
    <item>
      <title>KW36 user task</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/KW36-user-task/m-p/1203910#M10501</link>
      <description>&lt;P&gt;Hello, NXP&lt;/P&gt;&lt;P&gt;I try to creat my task on the wirelessuart example from SDK_2.2.5_FRDM-KW36. But I found there's as strange problem as below:&lt;/P&gt;&lt;P&gt;(1) If the priority of my task is higher than the startup_task, my task work but BLE broadcast don't work. I found the function OSA_TaskCreate(OSA_TASK(Host_Task) in the the startup_task will return fail, it cause BLE broadcast don't work&lt;/P&gt;&lt;P&gt;(2 If the priority of my task is lower than the startup_task, the startup_task work, and I can see BLE broadcast work use my cellphone. but my task don't work.&lt;/P&gt;&lt;P&gt;as we know, SDK used the FreeRTOS. If the priority value of the task is bigger, the priority is higher. Now I puzlled, &lt;STRONG&gt;so my question is how to define user task correctly?&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Dec 2020 03:25:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/KW36-user-task/m-p/1203910#M10501</guid>
      <dc:creator>JiCheng_ZhangXiang</dc:creator>
      <dc:date>2020-12-24T03:25:34Z</dc:date>
    </item>
    <item>
      <title>Re: KW36 user task</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/KW36-user-task/m-p/1204518#M10505</link>
      <description>&lt;P&gt;The function OSA_TaskCreate() returns either a task ID, if the task is created successfully, or returns Null if "The task cannot be created."&lt;/P&gt;
&lt;P&gt;If the task cannot be created, the first thing I'd check is whether or not you allocate enough resources for the task.&lt;/P&gt;
&lt;P&gt;Could it be possible that you create your task, but forgot to allocate resources, and then the Host_Task is failed at creation?&lt;/P&gt;
&lt;P&gt;To allocation resource there is something like:&lt;BR /&gt;OSA_TASK_DEFINE( Job1, OSA_PRIORITY_HIGH, 1, 800, 0);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below is the function header I copied:&lt;/P&gt;
&lt;P&gt;/*!&lt;BR /&gt;* @brief Creates a task.&lt;BR /&gt;*&lt;BR /&gt;* This function is used to create task based on the resources defined&lt;BR /&gt;* by the macro OSA_TASK_DEFINE.&lt;BR /&gt;*&lt;BR /&gt;* @param thread_def pointer to the osaThreadDef_t structure which defines the task.&lt;BR /&gt;* @param task_param Pointer to be passed to the task when it is created.&lt;BR /&gt;*&lt;BR /&gt;* @retval taskId The task is successfully created.&lt;BR /&gt;* @retval NULL The task can not be created..&lt;BR /&gt;*&lt;BR /&gt;* Example:&lt;BR /&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/157021"&gt;@code&lt;/a&gt;&lt;BR /&gt;osaTaskId_t taskId;&lt;BR /&gt;OSA_TASK_DEFINE( Job1, OSA_PRIORITY_HIGH, 1, 800, 0);;&lt;BR /&gt;taskId = OSA__TaskCreate(OSA__TASK(Job1), (osaTaskParam_t)NULL);&lt;BR /&gt;@endcode&lt;BR /&gt;*/&lt;/P&gt;</description>
      <pubDate>Mon, 28 Dec 2020 09:48:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/KW36-user-task/m-p/1204518#M10505</guid>
      <dc:creator>Xiang_Li</dc:creator>
      <dc:date>2020-12-28T09:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: KW36 user task</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/KW36-user-task/m-p/1204783#M10507</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I made a test. If your task priority is lower than main task and your stack for your own task is larger, your task won't work. Increasing the value of gTotalHeapSize_c in app_preinclude.h will solve this problem.&lt;/P&gt;
&lt;P&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;
&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 days after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;</description>
      <pubDate>Tue, 29 Dec 2020 07:31:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/KW36-user-task/m-p/1204783#M10507</guid>
      <dc:creator>nxf56274</dc:creator>
      <dc:date>2020-12-29T07:31:39Z</dc:date>
    </item>
    <item>
      <title>Re: KW36 user task</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/KW36-user-task/m-p/1207232#M10530</link>
      <description>&lt;P&gt;yes, before you reply, I tried change the heapsize and creat my task successfully!&lt;/P&gt;&lt;P&gt;Thank you all the same.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2021 03:59:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/KW36-user-task/m-p/1207232#M10530</guid>
      <dc:creator>JiCheng_ZhangXiang</dc:creator>
      <dc:date>2021-01-06T03:59:51Z</dc:date>
    </item>
  </channel>
</rss>

