AnsweredAssumed Answered

KW36  multitask

Question asked by mo xinyu on Jan 16, 2020
Latest reply on Feb 7, 2020 by Sebastián Del Río

I try to add those sample code in frdmkw36_wireless_examples_bluetooth_w_uart_freertos wireless_uart.c:

void test_task(void* argument)

   while(1) {

      Serial_Print(gAppSerMgrIf, "\n\rtest_task \n\r", gAllowToBlock_d);



OSA_TASK_DEFINE(test_task, 1, 1, 50, 0)  ;


static void BleApp_Config()



   mBatteryMeasurementTimerId = TMR_AllocateTimer();

    OSA_TaskCreate(OSA_TASK(test_task), NULL);



At the begining, it could print "test_task". Then I press sw3 and sw2 to start 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?