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.

problem with changing task priority

After I created the task, I am trying to change the task priority. But the priority doesn`t change, and I don`t get any error either. 

Please see the code below.

Error_init(&eb);
/* Create 1 task with priority 15 */
Task_Params_init(&taskParams);
taskParams.stackSize = 512;
taskParams.priority = 15;
task0 = Task_create((Task_FuncPtr)hiPriTask, &taskParams, &eb);

.................................

Task_setPri(task0, 3);

I am using msp-EXP430f5438a,   SYS/BIOS  6.35,   Code Composer Studio  5.4