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

NRF_ERROR_NO_MEM error with enough APP_TIMER_MAX_TIMERS

Hi,

I have 2 timers and APP_TIMER_MAX_TIMERS = 3. I am getting NRF_ERROR_NO_MEM error.

If I increase to 6 it works. Is it 3 APP_TIMER_MAX_TIMERS per timer?

Thanks,

Parents
  • My experience suggests it really is a 1:1 mapping.

    ble_conn_params.c creates one if you are including that module. Have you searched all of our source files for calls to app_timer_create()? The Heart Rate Sensor example app that everyone uses creates two, one for the hear rate sensor and one for the battery voltage. If you leveraged off that source perhaps that is where the extra timers have gone?

    Dan

Reply
  • My experience suggests it really is a 1:1 mapping.

    ble_conn_params.c creates one if you are including that module. Have you searched all of our source files for calls to app_timer_create()? The Heart Rate Sensor example app that everyone uses creates two, one for the hear rate sensor and one for the battery voltage. If you leveraged off that source perhaps that is where the extra timers have gone?

    Dan

Children
Related