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

nrf_delay_ms with a delay above 100msec causes reset with app timers running!

Hi,

I have a reset issue when trying to set a delay greater or equal to 100 milliseconds using nrf_delay_ms(...). This only happens if I start my app timers (app_timer_start(...)) before calling the delay function. If the app timers are not running, the delay executes without any problem even up to 5 seconds!

Is there a watchdog initialised hidden somewhere in these app timer functions that I am missing and that is resetting my MCU above 100 msecs?

Thanks for the help.

Phil

Parents
  • Hi John,

    Thanks, that seem's to be the problem, timeout_handler_exec(..) in app_timer.c is sending me back a (timeout?) error N° 4 on a 10msec application callback timer created and started before my delay function. I suppose the callback function is not being processed (and setting a breakpoint there confirms this).

    The problem now is why am I getting this error? Is my delay function non interruptible? I seriously doubt this is the case... and if it is how can I get around this issue?

    Phil

Reply
  • Hi John,

    Thanks, that seem's to be the problem, timeout_handler_exec(..) in app_timer.c is sending me back a (timeout?) error N° 4 on a 10msec application callback timer created and started before my delay function. I suppose the callback function is not being processed (and setting a breakpoint there confirms this).

    The problem now is why am I getting this error? Is my delay function non interruptible? I seriously doubt this is the case... and if it is how can I get around this issue?

    Phil

Children
Related