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

Running out of scheduler's queue size with app_timer

I've been experiencing this bug for a while now. What happens is that a app_timer's overflow handler can't put any more messages into the queue because the queue is full, which is surprising considering my queue size is 15.

I run two userspace timers using the app_timer module.

This is the function call order:

timeout_handler_exec() -> app_timer_evt_schedule() -> app_sched_event_put() -> app_sched_queue_full() == true -> next_index(index) == m_queue_size == 15

My APP_TIMER_OP_QUEUE_SIZE is 5 (not sure if this one matters), SCHED_QUEUE_SIZE is 15.

Now I'm just hoping that someone has run into this issue and solved it because I know that my explanation is lacking.

Related