Hi
I am executing the code below and get a NULL returned for the pointer handle.
I've checked the ROV ti.sysbios.timers.timer64.timer and it says "nulLocalTimers" = 6 and "numTimerDevices" = 24.
The ROV "Basic" tab shows only one timer instance with id 0 and intNum 14
The error block msg says "0x0081683A "E_alreadyD"" which when I look at the memory at 0x0081683A it has "E_alreadyDefined: Hwi already defined: intr# %d....."
Is there a way to pass the message in eb to some error handler for printing? I'd like to find out when intr %d is.
How can I change what HWI the timer module wants to use?
And one more question: Where do I find the enums for timers other than Timer_ANY?
The code below only runs on CORE 0.
Error_Block eb;
Timer_Params timerParams;
//Task_Handle taskHandle;
Log_print1(Diags_USER1, "Creating timer with period = %d", periodInUsec);
Log_print1(Diags_USER1, "The number of timers before create = %d", Timer_getNumTimers());
Error_init(&eb);
Timer_Params_init(&timerParams);
timerParams.period = periodInUsec; /* 2 ms */
timerParams.periodType = Timer_PeriodType_MICROSECS;
timerParams.startMode = Timer_StartMode_AUTO; // will start timer automatically
//timerParams.startMode = Timer_StartMode_USER; // needs Timer_start()
gapFillTimerHandle = Timer_create(Timer_ANY, gapFillTimerIsr, &timerParams, &eb);
//gapFillTimerHandle = Timer_create(1, gapFillTimerIsr, &timerParams, &eb);
//Timer_start(gapFillTimerHandle);
Log_print1(Diags_USER1, "The number of timers after create = %d", Timer_getNumTimers());
if (gapFillTimerHandle == NULL)
{
System_abort("Doppler timer create failed");
}