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.

TMS320C6748: DEBUG模式下,在网络连接成功后,动态生成一个LED闪烁的任务,报错

Part Number: TMS320C6748
Other Parts Discussed in Thread: SYSBIOS

DEBUG模式下,在网络连接成功后,动态生成一个LED闪烁的任务,报错提示如下:

xdc.runtime.Core: line 87: assertion failure: A_initializedParams: uninitialized Params struct
xdc.runtime.Error.raise: terminating execution

LED任务如下:

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);
}

}
}

关闭LED任务后,重新编译可以成功运行。

请问下,大概什么原因导致的,谢谢。