<?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>WatchDog feeding from bootloader to application and softdevice</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/38154/watchdog-feeding-from-bootloader-to-application-and-softdevice</link><description>Hi, 
 We have the following problem when start the watchdog from bootloader: the application is started successfully by the bootloader but when enable the softdevice the application gets stuck. The last call we can track (where the application is blocked</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 04 Sep 2018 12:52:06 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/38154/watchdog-feeding-from-bootloader-to-application-and-softdevice" /><item><title>RE: WatchDog feeding from bootloader to application and softdevice</title><link>https://devzone.nordicsemi.com/thread/147182?ContentTypeID=1</link><pubDate>Tue, 04 Sep 2018 12:52:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:741731dc-9cbc-468c-8c2c-2b13047f9b61</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;I see. Thank you for letting us know how you solved it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: WatchDog feeding from bootloader to application and softdevice</title><link>https://devzone.nordicsemi.com/thread/147177?ContentTypeID=1</link><pubDate>Tue, 04 Sep 2018 12:35:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:837beb4b-a8f6-4ab8-880c-55027f0af129</guid><dc:creator>Catalin</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; The problem was by calling the&amp;nbsp;&lt;span style="background-color:transparent;color:#11171a;float:none;font-family:&amp;#39;GT Eesti&amp;#39;,&amp;#39;Helvetica&amp;#39;,Arial,sans-serif;font-size:14px;font-style:normal;font-weight:400;letter-spacing:normal;line-height:21px;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt;nrf_sdh_enable_request()&lt;/span&gt; from the init_hook function from FreeRTOS. Calling this function before starting the FreeRTOS the issue was resolved.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thanks for suggestions.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: WatchDog feeding from bootloader to application and softdevice</title><link>https://devzone.nordicsemi.com/thread/147167?ContentTypeID=1</link><pubDate>Tue, 04 Sep 2018 12:09:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2aace567-e149-41a9-beeb-7ac77c41a82b</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Ah yes, I did not spot that in your code snippet. It seems strange to me, then. I have not been successful in reproducing this issue on my side.&lt;/p&gt;
&lt;p&gt;I simply copied in your init_watchdog() function and called it in the beginning of main() in the debug bootloader for SDK 15 (\examples\dfu\secure_bootloader\pca10040_ble_debug). Then I used the pre-compiled application&amp;nbsp; ble_app_buttonless_dfu_without_bonds_s132_with_setting_page.hex from the SDK distribution. I can see from the RTT log and LED&amp;#39;s that the application starts as expected and starts advertising before it is reset every 30 seconds (due to not feeding the watchdog). So everything seems OK in this test.&lt;/p&gt;
&lt;p&gt;Can you tell me more about what you are doing, or (even better) upload a bootloader and application that demonstrate this issue? Also, do you have a 32 kHz xtal on your board (not that I think it should mater)?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: WatchDog feeding from bootloader to application and softdevice</title><link>https://devzone.nordicsemi.com/thread/147162?ContentTypeID=1</link><pubDate>Tue, 04 Sep 2018 11:33:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bc38a5f2-1d16-48fd-9cba-c42eda6a750f</guid><dc:creator>Catalin</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;As you can see in the code, the timeout is set to 30 seconds. We measured that after this timeout the board is rebooted.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: WatchDog feeding from bootloader to application and softdevice</title><link>https://devzone.nordicsemi.com/thread/147138?ContentTypeID=1</link><pubDate>Tue, 04 Sep 2018 09:37:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a11b5a45-3a89-492d-abe8-55757cb72b91</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The problem here is most likely that you have a too short WDT timeout.&amp;nbsp;nrf_sdh_enable_request() calls &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s140.api.v6.1.0/group___n_r_f___s_d_m___f_u_n_c_t_i_o_n_s.html?cp=2_3_2_1_0_2_8_2_1#ga420235cbdf6b0746ce86af3cfd0ec055"&gt;sd_softdevice_enable()&lt;/a&gt;&amp;nbsp;internally, which can take quite some time as it will block until the 32 kHz clock is started, so you need to account for that if you start the watchdog before the call to&amp;nbsp;&lt;span&gt;nrf_sdh_enable_request(). As you can see from the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52840.ps/clock.html?cp=2_0_0_4_3_3_2#unique_1015965653"&gt;nRF52840 CLOCK electrical&amp;nbsp;specification&lt;/a&gt;, the (optional) 32 kHz xtal oscillator startup time alone is typically 0.25 s (tSTART_LFXO).&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>