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

How to implement a software watchdog on nRF51822 SoC

Hello all.

Is there a possibility to implement a "software watchdog" on the nRF51822 SoC. I would like to react with this watchdog not on external events (e.g. hardware-actions like pressing buttons etc), but on software events.

Example:
A certain function was not called in the last 3 seconds and the system should be restarted.

Many thanks for your help.

Parents
  • Hi,

     

    Is there a possibility to implement a "software watchdog" on the nRF51822 SoC

     Possible? yeah probably. We don't have any module that implements this so you would have to come up with the logic yourself.

     For example, the nRF51 has several timers that can be started, and paused in your application and will upon timeout call a callback handler. You could set a flag in the function that would indicate that it has been called, and upon Timeout of the timer checks if the flag has been set or not in the callback handler. And then clear the flag and restart the timer etc. 

    regards

    Jared 

Reply
  • Hi,

     

    Is there a possibility to implement a "software watchdog" on the nRF51822 SoC

     Possible? yeah probably. We don't have any module that implements this so you would have to come up with the logic yourself.

     For example, the nRF51 has several timers that can be started, and paused in your application and will upon timeout call a callback handler. You could set a flag in the function that would indicate that it has been called, and upon Timeout of the timer checks if the flag has been set or not in the callback handler. And then clear the flag and restart the timer etc. 

    regards

    Jared 

Children
No Data
Related