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

app_timer on app_evt_wait - fails / failing / bugging out / cancelling

In moving to the "rev-2 51422 silicon, we find that the app_timer inevitably fails after minutes to several hours. Power requirement moves from about .002ma to 4.5ma then stays there. Prior silicon did not have this problem.

The same routine is called via the handler on every interval. As discovered, we removed ALL instructions in the handler routine - the event timer still fails.

No other instructions are contained in the main where the app_timer is called.

while (forever) app_evt_wait();

a. Is this a known problem? b. why is it not noted in the PAN c. is there a solid fix that will keep it from failing?

tks!

Parents
  • Hi,

    We've had some corner-case issues with the app_timer library lately, which we are fixing in the next release of the SDK. These issues are related to when stopping/starting the timer, or having a timeout handler which is greater than MAX_RTC_COUNTER_VAL/2 (see this thread for detailed info) Since this is a firmware issue, there is no PAN on this entry.

    In order to find out if your issue is related to the known issues, I need some more information about your application

    1. Do you see any asserts when the device fails? Asserts can be enabled by commenting in call to "ble_debug_assert_handler" in function "app_error_handler()".

    2. How long is your timeout routines and what prescaler setting are you using?

    3. Are you stopping and starting the app_timer in your application?

    4. Which SDK version are you basing your application upon?

    Best regards Håkon

Reply
  • Hi,

    We've had some corner-case issues with the app_timer library lately, which we are fixing in the next release of the SDK. These issues are related to when stopping/starting the timer, or having a timeout handler which is greater than MAX_RTC_COUNTER_VAL/2 (see this thread for detailed info) Since this is a firmware issue, there is no PAN on this entry.

    In order to find out if your issue is related to the known issues, I need some more information about your application

    1. Do you see any asserts when the device fails? Asserts can be enabled by commenting in call to "ble_debug_assert_handler" in function "app_error_handler()".

    2. How long is your timeout routines and what prescaler setting are you using?

    3. Are you stopping and starting the app_timer in your application?

    4. Which SDK version are you basing your application upon?

    Best regards Håkon

Children
No Data
Related