This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

app_timer does not trigger the timer with app_timer_id zero

I am creating four timers in my application using app_timer.c. All timers work except the timer with ID zero never triggers.( means first timer created does not work all timers created after first one works perfectly)

I am using SCHEDULERfor timers and all other things (ble_stack and buttons)

APP_TIMER_INIT(APP_TIMER_PRESCALER, APP_TIMER_MAX_TIMERS, APP_TIMER_OP_QUEUE_SIZE, true);

This is how i created timer

err_code = app_timer_create(&m_timer_id, APP_TIMER_MODE_REPEATED, m_timeout_handler);

This is how i started timer

err_code = app_timer_start(m_timer_id, M_INTERVAL, NULL);

Any body have any idea what could be possibly wrong with this.

Related