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

Watchdog + RTX

I am currently using the watchdog in conjunction with RTX and a softdevice on the nrf51. I am wondering if the default priority for the watchdog's interrupt works well in this case? Or if RTX/the softdevice is executing an SVC is there a risk of missing the watchdog's interrupt before reset?

Thanks for your pointers!

  • You can configure all interrupts in the application to run at APP_PRIORITY_LOW and watchdog interrupt at APP_PRIORITY_HIGH, so with the RTX it will be no problem. SVC calls are done at UpperStack which is between APP_PRIORITY_LOW and APP_PRIORITY_HIGH, so that is also not a problem.

    The problem is with SoftDevice code running at LowerStack which is the highest interrupt priority. This may delay the interrupt such that it never fires (before the chip is reset by the watchdog). We are very sorry for this inconvenience.

Related