This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

IWR6843ISK: Can't create new tasks in Long Range Detection Lab

Part Number: IWR6843ISK

Hi,

I added a new task in long range detection lab as below. (Toolbox version 4.7.0)

#define MMWDEMO_NEW_TASK_PRIORITY                 2 //new task priority
#define MMWDEMO_CLI_TASK_PRIORITY                 3
#define MMWDEMO_DPC_OBJDET_DPM_TASK_PRIORITY      4
#define MMWDEMO_MMWAVE_CTRL_TASK_PRIORITY         5

void mmwDemo_newTask(UArg arg0, UArg arg1)
{
    //local variables

    while(1)
    {
        //things to do
    }
}

    //launch task in MmwDemo_initTask
    Task_Params_init(&taskParams);
    taskParams.priority  = MMWDEMO_NEW_TASK_PRIORITY;
    taskParams.stackSize = 4*1024;
    Task_create(mmwDemo_newTask, &taskParams, NULL);

It can be built successfully but stuck after flashing.

And if I delete the while loop, it won't get stuck.

Thanks for any advice.

  • Hello,

    If you launch this in CCS debug mode, where does it get stuck? I think that since you have defined the new task as having a higher priority, the new task will stay in the while(1) loop and never allow the other tasks to complete. I don't know what the new task is doing, but you may need to reduce the priority or add semaphores to make sure you are passing back to the main application.

    Regards,

    Jackson