<?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>WDT initialization after FW activation</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/71463/wdt-initialization-after-fw-activation</link><description>Hello 
 
 It seems that we had a crash during execution of nrf_bootloader_fw_activate() in an added sub function where we program an externally connected MCU and the bootloader was not able to recover. 
 Now, I see that the init function &amp;quot;nrf_bootloader_init</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 09 Feb 2021 14:31:06 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/71463/wdt-initialization-after-fw-activation" /><item><title>RE: WDT initialization after FW activation</title><link>https://devzone.nordicsemi.com/thread/293587?ContentTypeID=1</link><pubDate>Tue, 09 Feb 2021 14:31:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:57c0328a-ff26-4fc5-a33a-486e2a2c6b62</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi Timon,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;When entering the bootloader from the application&amp;nbsp;&lt;/span&gt;&lt;span&gt;nrf_bootloader_wdt_init() will be called in&amp;nbsp;nrf_bootloader_init() and the WDT feed timer will be started if the WDT was active in the application. Then the DFU transfer will be performed and a&lt;/span&gt;&lt;span&gt;fter the firmware image has been transferred to the nRF52 device, the device will reset before activating the new firmware image.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The WDT will not be reset during this Soft reset( NVIC_SystemReset())&lt;/p&gt;
&lt;p&gt;Upon entering main() after this reset,&amp;nbsp;nrf_bootloader_init() will be called and&amp;nbsp;nrf_bootloader_fw_activate() will be called, which in turn calls&amp;nbsp;app_activate(), which calls&amp;nbsp;image_copy(). So after the Soft reset you should only see that&amp;nbsp;nrf_bootloader_wdt_init() is called once, i.e. in&amp;nbsp;&lt;span&gt;image_copy().&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Amanda H.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>