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

Device restarting for no obvious reason

Hi, 

When I connect my device to an external power supply, it restarts randomly. It sometimes happens once every minute, sometimes once every 10 minutes. I couldn't find a pattern. 

Is there a way to figure out the reason somewhere in the software? I'm almost sure this is not a 100% HW issue, I changed a lot of things today in the SW only, and yesterday the device was not restarting :( However, when I just power it from the USB it does not restart.

Please, give me some advice. I will try to change the power supply but for now I only have one.

Thanks

  • You need to increase the SWI interrupt priority, as this is the one handling the operation queue:

    #define SWI_IRQ_PRI             APP_IRQ_PRIORITY_LOWEST                        /**< Priority of the SWI  interrupt (used for updating the timer list). */

    RTC1 should probably run at the same priority as SWI if you change this.

    Note that app_timer uses its own internal driver for RTC1, it does not use the RTC driver in the SDK, which is enabled by RTC1_ENABLED.

Related