Hi ,
I want to use TIMER1 in mesh SDK , is it possible to use TIMER1 in mesh SDK ? And how can i set it up and run it ?
Thank you for your help
Hi ,
I want to use TIMER1 in mesh SDK , is it possible to use TIMER1 in mesh SDK ? And how can i set it up and run it ?
Thank you for your help
Hi MMG. What are you planning to do with the Timer1 Interrupt?
Got some tips from a mesh expert at Nordic: Make sure to give Timer0 interrupt higher priority. You should not block the mesh interrupt (especially the timeslot interrupt). If the radio interrupt is missed, this will result in a bit more latency (which should be ok). Also, try to do a time consuming task in the main loop to test whether your solution works correctly with mesh.
Hi Bjorn. i wnat to send a packet periodically thats why i want to use TIMER1 interupts to be able to send my packet in the TIMER1_IRQHandler()
. but it seems does not work . i do enable the TIMER1 intrups in the timer.c
file: in the void timer_on_ts_begin(timestamp_t timeslot_start_time)
function as bellow::
void timer_on_ts_begin(timestamp_t timeslot_start_time)
if (!m_timer_mut)
{
#if !defined(HOST)
(void) NVIC_EnableIRQ(TIMER0_IRQn);
(void) NVIC_EnableIRQ(TIMER1_IRQn);
#endif
}
is it a proper way or not? and which priority value should i assign to TIMER1 ?
Have you taken a look at this case yet? Try using the sd_nvic_SetPriority(...)
first like explained and then use the sd_NVID_EnableIRQ(...)
function afterwards.