<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>How to implement a software watchdog on nRF51822 SoC</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/78814/how-to-implement-a-software-watchdog-on-nrf51822-soc</link><description>Hello all. Is there a possibility to implement a &amp;quot;software watchdog&amp;quot; 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</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 23 Aug 2021 11:56:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/78814/how-to-implement-a-software-watchdog-on-nrf51822-soc" /><item><title>RE: How to implement a software watchdog on nRF51822 SoC</title><link>https://devzone.nordicsemi.com/thread/326175?ContentTypeID=1</link><pubDate>Mon, 23 Aug 2021 11:56:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b1c21729-1178-4479-9a63-542bef17a982</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]Is there a possibility to implement a &amp;quot;software watchdog&amp;quot; on the nRF51822 SoC[/quote]
&lt;p&gt;&amp;nbsp;Possible? yeah probably.&amp;nbsp;We don&amp;#39;t have any module that implements this so you would have to come up with the logic yourself.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;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.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>