Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Call to nrf_atfifo_item_alloc fail

Hi

I got NRF_ERROR_NO_MEM, when calling to "nrf_atfifo_item_alloc()" from "timer_req_schedule()" routine.

Is the allocation is done from the task heap or stack?

Thanks

Arik

Parents
  • Hi Arik,

    I had a similar problem and my experience is that I was trying to start an application timer (with app_timer_start()) before actually the "application timer" system was initialized and started with a call to app_timer_init().
    Make sure to place the app_timer_start() instruction only after that.

    In some Nordic examples, app_timer_init() is already called somewhere in the Nordic code. You cannot call the same function twice (it would produce an error). That leaves you the only option to place your app_timer_start()call after that.

    This solved the problem with the NRF_ERROR_NO_MEM error for me.

Reply
  • Hi Arik,

    I had a similar problem and my experience is that I was trying to start an application timer (with app_timer_start()) before actually the "application timer" system was initialized and started with a call to app_timer_init().
    Make sure to place the app_timer_start() instruction only after that.

    In some Nordic examples, app_timer_init() is already called somewhere in the Nordic code. You cannot call the same function twice (it would produce an error). That leaves you the only option to place your app_timer_start()call after that.

    This solved the problem with the NRF_ERROR_NO_MEM error for me.

Children
No Data
Related