Part Number: TMS320C6748
Other Parts Discussed in Thread: SYSBIOS
Hello Champs,
Customer met below error when combing LED project to Ethernet project.
xdc.runtime.Core: line 87: assertion failure: A_initializedParams: uninitialized Params struct
xdc.runtime.Error.raise: terminating execution
Both LED project and Ethernet project can run in dependently.
The LED task as follows
taskParams.priority = 7;
taskParams.stackSize = 1024;
taskLedHandle = Task_create(AppTask_LED &taskParams, &eb);
void AppTask_LED(UArg a0, UArg a1)
{
unsigned int cnt;
while(1)
{
Task_sleep(1000);
if(GPIOPinRead(SOC_GPIO_0_REGS , LED2 ) == GPIO_PIN_HIGH )
{
GPIOPinWrite(SOC_GPIO_0_REGS , LED2 , GPIO_PIN_LOW);
}
else
{
GPIOPinWrite(SOC_GPIO_0_REGS , LED2 , GPIO_PIN_HIGH);
}
}
}
If commenting out the LED task, the ethernet function can run successfully.
He wanted to dynamically create the LED task like Task_create->Task_delete->Task_create.
Task_create->Task_delete is ok, but when calling Task_create again, it prompted above error message.
The ROV shows that the heap/stack doesn't overflow.
Thanks
Rgds
Shine