<?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 Timer does not reset the device</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/110602/watchdog-timer-does-not-reset-the-device</link><description>Dear Support team, 
 
 Project information : 
 Hardware : nRF5340 Custom Board 
 SDK : nRF Connect SDK v2.2.0 
 
 I have integrated watchdog timer to my project. I&amp;#39;ve used these functions to initialize and setup the watchdog timer : 
 
 
 
 
 
 
 
 
</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 29 Apr 2024 06:51:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/110602/watchdog-timer-does-not-reset-the-device" /><item><title>RE: Watchdog Timer does not reset the device</title><link>https://devzone.nordicsemi.com/thread/480988?ContentTypeID=1</link><pubDate>Mon, 29 Apr 2024 06:51:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4e18a508-b15c-4ae7-a260-09d629836826</guid><dc:creator>roshangeoroy</dc:creator><description>&lt;p&gt;Dear Einar,&lt;/p&gt;
&lt;p&gt;You were right. Enabling power management in MCUBoot fixed the issue! I&amp;#39;ve added these configurations to mcuboot.conf.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#Power management
CONFIG_PM=y
CONFIG_MULTITHREADING=y

CONFIG_PM_DEVICE=y
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve observed that enabling only CONFIG_PM_DEVICE&amp;nbsp;does the trick as well. Do you know the reason behind this?&lt;/p&gt;
&lt;p&gt;Anyways, thanks for the fix!&lt;/p&gt;
&lt;p&gt;Rosh&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Watchdog Timer does not reset the device</title><link>https://devzone.nordicsemi.com/thread/480814?ContentTypeID=1</link><pubDate>Fri, 26 Apr 2024 07:30:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e572dd69-20fe-41b8-a980-002524a55bcb</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi Rosh,&lt;/p&gt;
&lt;p&gt;What you describe seems likely. Have you attempted to enable power management in MCUboot to wake the QSPI flash if it happens to be in deep powr down mode after reset? In principle it should be similar to &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.6.0/nrf/test_and_optimize/optimizing/power_general.html#put-the-external-flash-into-sleep-mode-in-inactivity-periods"&gt;how you can handle it in your application&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Watchdog Timer does not reset the device</title><link>https://devzone.nordicsemi.com/thread/480586?ContentTypeID=1</link><pubDate>Thu, 25 Apr 2024 07:17:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce7e08b7-30e2-4fa1-81ba-80c3872d66ee</guid><dc:creator>roshangeoroy</dc:creator><description>&lt;p&gt;Dear team,&lt;br /&gt;&lt;br /&gt;I just found out the issue behind the system hang during reset. For reducing power consumption we use &lt;span&gt;RAM&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;power down library to power down unused&amp;nbsp;RAM and also we power down our external flash - it has an ultra deep power down mode. During reset if these are&amp;nbsp; in the powered down state the device won&amp;#39;t boot up. This issue occurs only during software reset and not hardware reset.&lt;/p&gt;
&lt;p&gt;The external flash being powered down affects the bootloader since bootloader(MCUBoot)&amp;nbsp;checks for images in the external flash. I discovered this when I tried to disable the RAM power down and observed these logs :&amp;nbsp;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;00&amp;gt; *** Booting Zephyr OS build v3.2.99-ncs1 ***
00&amp;gt; I: Starting bootloader
00&amp;gt; W: Failed reading sectors; BOOT_MAX_IMG_SECTORS=256 - too small?
00&amp;gt; W: Cannot upgrade: slots are not compatible
00&amp;gt; W: Failed reading sectors; BOOT_MAX_IMG_SECTORS=256 - too small?
00&amp;gt; W: Cannot upgrade: slots are not compatible
00&amp;gt; I: Bootloader chainload address offset: 0xc000
00&amp;gt; I: Jumping to the first image slot&lt;/pre&gt;&lt;br /&gt;This causes a boot-loop.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not sure why the RAM has to be powered up before reset.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I tried to include the respective power up functions for both of these in the Watchdog Callback but it does not solve the issue.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please suggest a workaround for this issue. Since our project is battery operated, power consumption is of top priority.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Rosh&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>