<?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>How to use WDT with System ON sleep</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/116290/how-to-use-wdt-with-system-on-sleep</link><description>I&amp;#39;m using the nrf52840, and I&amp;#39;m doing a project where the system needs to sleep for a long time, maybe more than 24 hours. Following this ticket, to go to sleep I just do this: 
 And everything was working correctly until I programmed the WDT into the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 20 Nov 2024 08:35:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/116290/how-to-use-wdt-with-system-on-sleep" /><item><title>RE: How to use WDT with System ON sleep</title><link>https://devzone.nordicsemi.com/thread/511234?ContentTypeID=1</link><pubDate>Wed, 20 Nov 2024 08:35:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62a0b20b-416d-4bd7-ad22-3b55370f3e7e</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;It&amp;#39;s really great that you found the root cause. I was thinking to tell you&amp;nbsp;&lt;span&gt;to set a very long WDT timeout and wake up often enough to handle it.&lt;/span&gt;&amp;nbsp;Whatever you solved the issue and shared with the community. Thank you once again.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use WDT with System ON sleep</title><link>https://devzone.nordicsemi.com/thread/511177?ContentTypeID=1</link><pubDate>Tue, 19 Nov 2024 19:24:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9e1cec14-e665-4cf5-b949-1f99e296a0da</guid><dc:creator>Arthur J Sary</dc:creator><description>&lt;p&gt;Thanks for your help, the error was caused by a timer that generates an interrupt that remained enabled during sleep. Every time the interrupt was triggered, the WDT was enabled again until reset.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use WDT with System ON sleep</title><link>https://devzone.nordicsemi.com/thread/511176?ContentTypeID=1</link><pubDate>Tue, 19 Nov 2024 19:23:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a8a1d137-7fd6-474e-8dca-f8e5759471ab</guid><dc:creator>Arthur J Sary</dc:creator><description>&lt;p&gt;Thank you to everyone who helped! I discovered that the issue was actually caused by an interrupt from a timer that was enabled during the sleep state. When the timer interrupt triggered, it caused the WDT to resume its operation, and over time, this led to the WDT eventually timing out and resetting the system.&lt;/p&gt;
&lt;p&gt;For anyone experiencing a similar problem with the WDT resetting during sleep, I recommend checking if all interrupts are properly disabled during the sleep state (at least those that are not meant to remain active). This can help prevent unexpected behavior.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use WDT with System ON sleep</title><link>https://devzone.nordicsemi.com/thread/511167?ContentTypeID=1</link><pubDate>Tue, 19 Nov 2024 18:38:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1529de99-7039-4450-b1ce-2d5ddb38fad0</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The WDT_OPT_PAUSE_IN_SLEEP should WDT paused in sleep.&amp;nbsp;&lt;/span&gt;It should propagate to the SLEEP field in the CONFIG of the WDT&amp;nbsp;&lt;a title="https://docs.nordicsemi.com/bundle/ps_nrf52840/page/wdt.html#ariaid-title14" href="https://docs.nordicsemi.com/bundle/ps_nrf52840/page/wdt.html#ariaid-title14" rel="noopener noreferrer" target="_blank"&gt;https://docs.nordicsemi.com/bundle/ps_nrf52840/page/wdt.html#ariaid-title14&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You may try to verify with a debugger that this field is actually set correctly?&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use WDT with System ON sleep</title><link>https://devzone.nordicsemi.com/thread/510769?ContentTypeID=1</link><pubDate>Fri, 15 Nov 2024 18:45:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:494c2dd5-7564-4968-bd20-9511ec6d4f47</guid><dc:creator>Arthur J Sary</dc:creator><description>&lt;p&gt;I am start WDT with the WDT_OPT_PAUSE_IN_SLEEP option, where it should stop working during sleep. I can&amp;#39;t show the output, as I was testing on a custom board that the RTT LOG does not appear after the reset. &lt;br /&gt;On nRF52840 it is not possible to disable WDT after it has been initialized. I tested the system without starting WDT and everything worked as expected.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use WDT with System ON sleep</title><link>https://devzone.nordicsemi.com/thread/510594?ContentTypeID=1</link><pubDate>Fri, 15 Nov 2024 05:55:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0204016b-fc9a-4f48-83b6-94960105db56</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I think it is still working on system on sleep. Maybe you are thinking of system off? Can you show the output log? Or You can try to disable the watch dog timer and see if you can see any difference?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use WDT with System ON sleep</title><link>https://devzone.nordicsemi.com/thread/510296?ContentTypeID=1</link><pubDate>Wed, 13 Nov 2024 13:11:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cf3afe86-f785-461e-bd2d-14ab98a7b1b1</guid><dc:creator>Arthur J Sary</dc:creator><description>&lt;p&gt;I&amp;#39;m working with toolchain v2.7.0 and SDK v2.5.2, in these versions there is no such config.&amp;nbsp;The configurations that exist on WDT are&amp;nbsp;CONFIG_WDT_DISABLE_AT_BOOT,&amp;nbsp;CONFIG_WDT_LOG_LEVEL_DBG and&amp;nbsp;CONFIG_WATCHDOG.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use WDT with System ON sleep</title><link>https://devzone.nordicsemi.com/thread/510232?ContentTypeID=1</link><pubDate>Wed, 13 Nov 2024 08:20:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:80166d31-dddd-4bc0-b462-149e46094d10</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Is this config set in your config file CONFIG_WDT_NRFX_RUN_DURING_SLEEP=y?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>