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.

6678 TIMER 问题

Other Parts Discussed in Thread: SYSBIOS

各位专家,我在使用timer时程序老是会abort,程序如下:

int main()
{
Timer_Params timerParams;
Error_Block eb;

Error_init(&eb);
Timer_Params_init(&timerParams);
timerParams.arg = 2;
timerParams.period = 13100; /* 13.1 ms */
timerParams.startMode = Timer_StartMode_AUTO;
timerHandle = Timer_create(Timer_ANY, data_transfer, &timerParams, &eb);
if (Error_check(&eb)) {
System_abort("Timer reconfigure failed");
}

Ipc_start();
//printf("ipc start\n");

/* Start the BIOS 6 Scheduler */
BIOS_start ();
return 1;

}

报错:

ti.sysbios.gates.GateMutex: line 97: assertion failure: A_badContext: bad calling context. See GateMutex API doc for details.
[C66xx_0] xdc.runtime.Error.raise: terminating execution

请问该如何解决?谢谢!