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.

Problem with timers in Sys/Bios - only timer 2 works

Other Parts Discussed in Thread: SYSBIOS

Hi,

I wanted to set dynamicallly a basic configuration of timer4 on IDK AM437X with sysbios 6.42.3.35. After starting BIOS, in one of the tasks, I put the following code:

Error_init(&eb);
Timer_Params_init(&timerParams);
timerParams.period = 1000000; /*1s*/
timerParams.periodType = Timer_PeriodType_MICROSECS;
timerParams.arg = 1;
timerHandle = Timer_create(4, tickFxn, &timerParams, &eb);
Timer_start(timerHandle);

 Function tickFxn was responsible for toggling LEDs. The thing is that the code above doesn't work but it works fine when the first of the timer_create parameters is Timer_ANY. I've tried all the available timers and I figured out that only TimerId=2 works.  All the examples in handbooks or E2E show the configuration for Timer_ANY parameter - so is there any additional setting/register I should configure when specyfing the timer?

Regards,

Jacek