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

  • Hi John,

    This unfortunately did not help, I pushed the queue size even up to 30 and it did not change anything. I also tried increasing the max amount of timers too without any result, but this should not help in any way since it is the amount of simultaneous timers you are setting up , or am I misunderstanding something? Well I am still getting the same error. I suppose I will have to start my 10 msec app timer after this delay.

    Phil

Reply
  • Hi John,

    This unfortunately did not help, I pushed the queue size even up to 30 and it did not change anything. I also tried increasing the max amount of timers too without any result, but this should not help in any way since it is the amount of simultaneous timers you are setting up , or am I misunderstanding something? Well I am still getting the same error. I suppose I will have to start my 10 msec app timer after this delay.

    Phil

Children
No Data
Related