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.

Setting task affinity on c6657

Hi everyone,

  I want to create 2 tasks on C6657, one on each core, by setting its affinity. I tried to set it bydefinning a task handler for each, initialising their parameters and checling them with the get() methods for tasks, like this (for tsk1 should be the same, but setting another affinity, dstProc):

Task_Handle tsk0;
Task_Params task0Params;
Error_Block eb0;
Task_Mode tsk0md;
UInt affinity0;

Task_Params_init(&task0Params);
Error_init(&eb0);
task0Params.stackSize = 512;
task0Params.priority = 1;
task0Params.affinity = srcProc;
tsk0 = Task_create((Task_FuncPtr)tsk0_func, &task0Params, &eb0);

tsk0md = Task_getMode(tsk0);
affinity0 = Task_getAffinity(tsk0);

After building the project I found out that it does not recognise the method getAffinity(), but there is no problem with getMode().

Why this does not work? Why I am missing from the configuration of the task?

Thanks in advance

JaviEr