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.

Compiler/CC2652RB: [TI15.4]how to create new task.

Expert 1145 points
Part Number: CC2652RB


Tool/software: TI C/C++ Compiler

HI TI,

I'm using TI15.4 collector sample code,

i want add new task.

so i write some code as below

/* Configure task. */
    Task_Params_init(&taskParams);
    taskParams.stack = appTaskStack;
    taskParams.stackSize = APP_TASK_STACK_SIZE;
    taskParams.priority = APP_TASK_PRIORITY;
    Task_construct(&appTask, appTaskFxn, &taskParams, NULL);

//weli add below begin
Task_Params I2C_taskParams;
    Task_Params_init(&I2C_taskParams);
    I2C_taskParams.stack = I2C_appTaskStack;
    I2C_taskParams.stackSize = APP_I2C_TASK_STACK_SIZE;
    I2C_taskParams.priority = APP_I2C_TASK_PRIORITY;
    Task_construct(&I2C_appTask, i2c_taskFxn, &I2C_taskParams, NULL);
//weli add below end

.....
.....
.....
Void i2c_taskFxn(UArg a0, UArg a1)
{
    while(1)
    {
        ;
        ;  
        ;
    }
}

but  i2c_taskFxn never entry.

could you give some hint?

thx.