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.

debug error while using dynamic task

Hi All,

I am trying to create a dynamic task for stellaris launchpad. Code for creating task shown below. During compilation it is not showing any error. After debug when execution reaches the task0 = Task_create((Task_FuncPtr)hiPriTask, &taskParams, &eb); execution stops  i attached image of a Disassembly where it  stops  my execution But if I am creating statically using GUI it works properly

//----------------------------------------------------
// [START] - DYNAMIC CREATION OF TASK 
//----------------------------------------------------
Task_Params taskParams;
Task_Handle task0;
Error_Block eb;
Error_init(&eb);
/* Create 1 task with priority 15 */
Task_Params_init(&taskParams);
taskParams.stackSize = 100;
taskParams.priority = 15;
task0 = Task_create((Task_FuncPtr)hiPriTask, &taskParams, &eb);
if (task0 == NULL) {
System_abort("Task create failed");
}
//----------------------------------------------------
// [END] - DYNAMIC CREATION OF TASK AND SEMAPHORE
//----------------------------------------------------

Thanks in Advance

Thanks & Regards,

Umesh T