<?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>nrf52840: Software reset, doesn&amp;#39;t disable the watchdog</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/107442/nrf52840-software-reset-doesn-t-disable-the-watchdog</link><description>We try to test our bootloader (using nRF52840 DK for this). The firmware that we use to test the bootloader includes an implementation of Watchdog, it works, based on the example: &amp;quot;\v2.5.0\zephyr\samples\drivers\watchdog&amp;quot;. 
 On the bootloader side, we</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 17 Jan 2024 13:00:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/107442/nrf52840-software-reset-doesn-t-disable-the-watchdog" /><item><title>RE: nrf52840: Software reset, doesn't disable the watchdog</title><link>https://devzone.nordicsemi.com/thread/464595?ContentTypeID=1</link><pubDate>Wed, 17 Jan 2024 13:00:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e357c538-cb02-47f1-95f2-8cc62f739b9b</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]2) If we use Software reset (for example, using the function: &amp;quot;sys_reboot(SYS_REBOOT_COLD)&amp;quot;), then the bootloader is rebooted twice:&lt;br /&gt;- first time due to Software reset;&lt;br /&gt;- second time reason Watchdog.&lt;br /&gt;[/quote]
&lt;p&gt;A software reset (NVIC_SystemReset or sys_reboot()) will not reset the watchdog. Only a power on reset or letting the watchdog time out will reset it.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What you can do is to make mcuboot &amp;quot;watchdog aware&amp;quot; by setting this in the child_image/mcuboot.conf (or your equivilant mcuboot configuration):&lt;/p&gt;
&lt;p&gt;CONFIG_BOOT_WATCHDOG_FEED=y&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you try this and see if this helps?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>