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.

Timer initialization in CC2650 fails



Hi,
I want to store temparature value in SNV periodically. for that i am using timer in controller(since osal function not works with SWI , i cant use events and Util_clock fucntion i think).

my idea is to configure a timer for 5 ms and add osal_write and osal_read functions in its isr.  but when i try to initialize the timer program not running. given below is my initialization code


 void timerInitialize() {


  TimerConfigure(GPT0_BASE, TIMER_CFG_PERIODIC);
 TimerLoadSet(GPT0_BASE, TIMER_A, 20);

  TimerIntRegister(GPT0_BASE, TIMER_A, Timer0AIntHandler );
  TimerIntEnable(GPT0_BASE, TIMER_TIMA_TIMEOUT);

}

Please help me