Hi there.. I'm new to the ti-rtos development, so be gentle with me..
Im trying to create 2 tasks.. and on the second time I call create_task the whole program gets stuck..
It doesnt move on to the next line. Here's the code:
int main(void)
{
/* Call board init functions */
Board_initGeneral();
Task_Handle myTsk2;
Task_Params taskParams2;
Error_Block eb4;
Error_init(&eb4);
/* Create 1 task with priority 15 */
Task_Params_init(&taskParams2);
taskParams2.stackSize = 512;
taskParams2.priority = -1;
taskParams2.instance -> name = "Task2";
myTsk2 = Task_create(myTskFunc2, &taskParams2, &eb4);
if (myTsk2 == NULL) {
System_abort("Task create failed");
}
Task_Handle myTsk;
Task_Params taskParams;
Error_Block eb2;
Error_init(&eb2);
/* Create 1 task with priority 15 */
Task_Params_init(&taskParams);
taskParams.stackSize = 512;
taskParams.priority = -1;
taskParams.instance -> name = "Task1";
myTsk = Task_create(myTskFunc, &taskParams, &eb2);
if (myTsk == NULL) {
System_abort("Task create failed");
}
}
I guess that it is something silly but I cant figure out what it is.