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.

TMS320F280049C: CPU timer configuration for use with TI RTOS

Part Number: TMS320F280049C

Hi

I wonder if someone could help with configuring CPU timer 2 for use with TI ROTS I have used the following code to initialize the timer.

CPUTimer_stopTimer(CPUTIMER2_BASE);
CPUTimer_reloadTimerCounter(CPUTIMER2_BASE);
CPUTimer_enableInterrupt(CPUTIMER2_BASE);
temp = (uint32_t)(100000000 / 1000000 * 20000);
CPUTimer_setPeriod(CPUTIMER2_BASE, temp);
CPUTimer_setEmulationMode(CPUTIMER2_BASE,
CPUTIMER_EMULATIONMODE_STOPAFTERNEXTDECREMENT);
CPUTimer_enableInterrupt(CPUTIMER2_BASE);
Interrupt_enable(INT_TIMER2);
CPUTimer_startTimer(CPUTIMER2_BASE);

I have set the timer mask to 0x3 for available timers in the RTOS cfg and statically created a hwi that points to my interrupt handler using interrupt 14. When the code is run, I can see the TIF flag set in the timer but the my interrupt routine is not called.

Thanks,

Richard.