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