<?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>Wireless MCU中的主题 Re: KW36  multitask</title>
    <link>https://community.nxp.com/t5/Wireless-MCU/KW36-multitask/m-p/1023525#M8760</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mo Xinyu,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please take a look at this document &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-345523"&gt;here&lt;/A&gt;?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It shows the process for setting up an additional task and queue in the OS Abstraction layer for the NXP Connectivity Stack.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Sebastian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Feb 2020 17:06:33 GMT</pubDate>
    <dc:creator>Sebastian_Del_Rio</dc:creator>
    <dc:date>2020-02-07T17:06:33Z</dc:date>
    <item>
      <title>KW36  multitask</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/KW36-multitask/m-p/1023522#M8757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I try to add those sample code in&amp;nbsp;frdmkw36_wireless_examples_bluetooth_w_uart_freertos wireless_uart.c：&lt;/P&gt;&lt;P&gt;void &lt;SPAN&gt;test_task&lt;/SPAN&gt;(void* argument)&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;while(1) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Serial_Print(gAppSerMgrIf, "\n\r&lt;SPAN&gt;test_task&lt;/SPAN&gt;&amp;nbsp;\n\r", gAllowToBlock_d);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;OSA_TimeDelay(500);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;OSA_TASK_DEFINE(test_task, 1, 1, 50, 0)&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;static void BleApp_Config()&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;mBatteryMeasurementTimerId = TMR_AllocateTimer();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; OSA_TaskCreate(OSA_TASK(&lt;SPAN&gt;test_task&lt;/SPAN&gt;), NULL);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the begining, it could print "&lt;SPAN&gt;test_task&lt;/SPAN&gt;". Then I press sw3 and sw2 to start&amp;nbsp;advertising, it stop printing, I could not scan it. It looks like blocked. If I do not create this task, it could advertise. Did I do anything wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2020 17:29:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/KW36-multitask/m-p/1023522#M8757</guid>
      <dc:creator>jictannu</dc:creator>
      <dc:date>2020-01-16T17:29:09Z</dc:date>
    </item>
    <item>
      <title>Re: KW36  multitask</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/KW36-multitask/m-p/1023523#M8758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mo Xinyu, I hope you're doing well!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The OS Abstraction component of the connectivity framework works as a way to manage tasks without directly using the FreeRTOS APIS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To set up a new task, first it has to be defined with the OSA_TASK_DEFINE macro. As an example, you can see how the host task is defined in ble_host_tasks.c. The same source file also shows an example on initializing the task along with the creation of an event related to it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, task priority should be taken into account when creating a new task, as the tasks used by the BLE framework need the highest priority for BLE stack timing and connection.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For more information about the OS Abstraction framework layer, could you please take a look at chapter 3.1 of the Connectivity Framework Reference Manual document included with the SDK? It can be found in the following path:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;…\SDK_2.2.2_FRDM-KW36\docs\wireless\Common\Connectivity Framework Reference Manual.pdf&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know if you need more information.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Sebastian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jan 2020 17:42:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/KW36-multitask/m-p/1023523#M8758</guid>
      <dc:creator>Sebastian_Del_Rio</dc:creator>
      <dc:date>2020-01-17T17:42:34Z</dc:date>
    </item>
    <item>
      <title>Re: KW36  multitask</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/KW36-multitask/m-p/1023524#M8759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Sebastian, have you read my code above? It seems like that&amp;nbsp;&lt;SPAN&gt;test_task and ble task are&amp;nbsp;&lt;STRONG style="color: #cc0000; background-color: #ffffff; font-weight: normal; font-size: 13px;"&gt;conflicting&lt;/STRONG&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp;. Did I do something wrong?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2020 12:26:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/KW36-multitask/m-p/1023524#M8759</guid>
      <dc:creator>jictannu</dc:creator>
      <dc:date>2020-01-28T12:26:03Z</dc:date>
    </item>
    <item>
      <title>Re: KW36  multitask</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/KW36-multitask/m-p/1023525#M8760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mo Xinyu,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please take a look at this document &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-345523"&gt;here&lt;/A&gt;?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It shows the process for setting up an additional task and queue in the OS Abstraction layer for the NXP Connectivity Stack.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Sebastian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Feb 2020 17:06:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/KW36-multitask/m-p/1023525#M8760</guid>
      <dc:creator>Sebastian_Del_Rio</dc:creator>
      <dc:date>2020-02-07T17:06:33Z</dc:date>
    </item>
  </channel>
</rss>

