I am having a issue where adding simple task and crashing on bootup as a result.
The entire output of the console: " located entirely below 0x10000) xdc.runtime.Error.raise: terminating execution"
The ROV Statup State shows:
And looking at the task status under ROV view:
So all tasks are overunning theirs stacks supposedly.
Since there is not stack trace for the system once abort() occurs I put a break point in xdc_runtime_System_abort_F (found looking at the RPC regsiter) I get the following stack trace:
The error occurs in
Ptr TaskSupport_start(Ptr currTsk, ITaskSupport_FuncPtr enter, ITaskSupport_FuncPtr exit, Error_Block *eb)
/*
* The SP register is only 16 bits on 28x. Ensure that the last address
* in the new stack is less than 0xffff
*/
if (((ULong)tsk->stack) + (tsk->stackSize) >= MAX_SP_ADDR) {
Error_raise(eb, TaskSupport_E_invalidStack, tsk->stack, 0);
return (NULL);
}
with tsk->stack = 0x006F0072 and task->stackSize = 0x00720045.
Looking inside Int Task_Module_startup (Int phase) i see that the task being initialized is the Zero'th statically created task that has an handle 0x0000C042 which Is not any of my tasks per ROV above.
What could be causing this? I only have 5 tasks with a total of 5k worth of stack and all evidence points to it being the first system task that is run.
Please advise.