<?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>Runtime test of the SoftDevice</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/30558/runtime-test-of-the-softdevice</link><description>Hi, 
 As part of my watchdog flow, I&amp;#39;d like to test the liveness of the softdevice and the SDH during operation. 
 Is there a built in way to trigger the softdevice to post some internal event through the SDH and then capture it somehow? I couldn&amp;#39;t find</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 05 Mar 2018 12:37:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/30558/runtime-test-of-the-softdevice" /><item><title>RE: Runtime test of the SoftDevice</title><link>https://devzone.nordicsemi.com/thread/122817?ContentTypeID=1</link><pubDate>Mon, 05 Mar 2018 12:37:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:55e2a675-762b-4747-9b81-88ec92a9a107</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Yes, the SoftDevice will detect itself if it hangs, and assert if it does, so that you can handle that in the&amp;nbsp;&lt;em&gt;fault_handler.&lt;/em&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Runtime test of the SoftDevice</title><link>https://devzone.nordicsemi.com/thread/121172?ContentTypeID=1</link><pubDate>Sun, 18 Feb 2018 09:45:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b7a38980-0fb1-430b-a9c2-d20e77f607b1</guid><dc:creator>gkovelman_tap</dc:creator><description>&lt;p&gt;Is what you&amp;#39;re saying enough to understand whether the SDH is in a safe state and that it&amp;#39;s not hanging? That&amp;#39;s what I want to check&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Runtime test of the SoftDevice</title><link>https://devzone.nordicsemi.com/thread/121077?ContentTypeID=1</link><pubDate>Fri, 16 Feb 2018 13:18:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:505b84a8-6e4b-462e-bd14-dbf017ec338c</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;If something happens to the SoftDevice, so that it&amp;rsquo;s unable to continue to operate it will assert, and you will get notified about this in the fault handler you used when you enabled the SoftDevice with the function &lt;em&gt;sd_softdevice_enable(p_clock_lf_cfg, fault_handler)&lt;/em&gt;. The default behavior, if the preprocessor define &lt;strong&gt;DEBUG&lt;/strong&gt; is not defined, is to do a reset. Take a look at the function &lt;em&gt;app_error_fault_handler()&lt;/em&gt; in the file &lt;em&gt;app_error_weak.c&lt;/em&gt;. See &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/29788/soft-device-assert/"&gt;this post&lt;/a&gt; for more information. I also recommend taking a look at &lt;a href="https://devzone.nordicsemi.com/b/blog/posts/an-introduction-to-error-handling-in-nrf5-projects"&gt;this blog post&lt;/a&gt; about error handling. If you want to test if the SoftDevice is enabled, you can use the sd_softdevice_is_enabled() function. I recommend putting the watchdog in main loop (that will be returned everytime an event wakes the CPU up) and put the WDT to sleep when the CPU is sleeping is a good choice.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>