<?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>Unable to change WDT reload value in FreeRTOS example.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/106089/unable-to-change-wdt-reload-value-in-freertos-example</link><description>Hi, 
 
 We had WDT added to FreeRTOS application with 24 hours timeout. This was working fine. But we tried to change it to 2 hours timeout and it is not working. It is still taking a 24 hours to reset the system with WDT. What could be the issue? I can</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 05 Dec 2023 13:04:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/106089/unable-to-change-wdt-reload-value-in-freertos-example" /><item><title>RE: Unable to change WDT reload value in FreeRTOS example.</title><link>https://devzone.nordicsemi.com/thread/458969?ContentTypeID=1</link><pubDate>Tue, 05 Dec 2023 13:04:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:02e5861b-1895-4878-9df5-4a7ee5ea2df9</guid><dc:creator>Vishnu Pradeep</dc:creator><description>&lt;p&gt;Yes.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to change WDT reload value in FreeRTOS example.</title><link>https://devzone.nordicsemi.com/thread/458961?ContentTypeID=1</link><pubDate>Tue, 05 Dec 2023 12:51:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:11387632-db00-4bc0-80bc-f04af82fdfa5</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;That makes sense Vishnu. Thanks for updating this thread with the full info. Can we now close this thread?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to change WDT reload value in FreeRTOS example.</title><link>https://devzone.nordicsemi.com/thread/458935?ContentTypeID=1</link><pubDate>Tue, 05 Dec 2023 11:33:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4bb92df3-6978-4158-9d96-76363046df51</guid><dc:creator>Vishnu Pradeep</dc:creator><description>&lt;p&gt;Figured out this. There is a GPIO interrupt which is actually waking the system up in second case(sending a command) and is initialized a little late in code. That&amp;#39;s the reason it was not working in first case. .&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to change WDT reload value in FreeRTOS example.</title><link>https://devzone.nordicsemi.com/thread/458866?ContentTypeID=1</link><pubDate>Tue, 05 Dec 2023 07:17:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b58aecdc-bdc1-44e3-ad17-ea9c3882d79d</guid><dc:creator>Vishnu Pradeep</dc:creator><description>&lt;p&gt;It is going to system off mode but the&amp;nbsp;&lt;span&gt;sd_nvic_systemreset is not restarting the application. This is working if I send a command. I tried to do immediately after BLE initialisation.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to change WDT reload value in FreeRTOS example.</title><link>https://devzone.nordicsemi.com/thread/458720?ContentTypeID=1</link><pubDate>Mon, 04 Dec 2023 11:56:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62c422d5-7fa3-4937-9982-b9ba6580ebc9</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;It should make the chip go to systemoff at any stage. Not sure why it is working only when you send a command.&lt;/p&gt;
&lt;p&gt;How early are you calling system off in the application? Are you doing this after you setup the wakeup source and make sure that the wakeup source is not active?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to change WDT reload value in FreeRTOS example.</title><link>https://devzone.nordicsemi.com/thread/458445?ContentTypeID=1</link><pubDate>Fri, 01 Dec 2023 07:39:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:21f24aa9-fff3-4d67-b20f-f539c9e88a20</guid><dc:creator>Vishnu Pradeep</dc:creator><description>&lt;p&gt;Ok. But any idea why it is not resetting to the application and going to system off mode if I do in the beginning of code and working if I send a command to do systemoff.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to change WDT reload value in FreeRTOS example.</title><link>https://devzone.nordicsemi.com/thread/458436?ContentTypeID=1</link><pubDate>Fri, 01 Dec 2023 06:36:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:46afb070-a109-4367-96b4-a7187d02bc40</guid><dc:creator>Susheel Nuguru</dc:creator><description>[quote user="viznu3391"]So the problem is WDT is not getting disabled with&amp;nbsp;&lt;span&gt;sd_nvic_systemreset. That is why I tried with&amp;nbsp;sd_power_system_off&amp;nbsp;and then reset. This time it was able to change the preload value. Only a WDT reset or a POR can only disable the WDT and thereby reconfigure the WDT, if my understanding and experimentation is correct.&lt;/span&gt;[/quote]
&lt;p&gt;Your observation and understanding is correct. If you can look into the &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fps_nrf52840%2Fpower.html&amp;amp;cp=5_0_0_4_2_5_6&amp;amp;anchor=unique_1827996870"&gt;POWER-Reset-Retained Registers&lt;/a&gt;&amp;nbsp;section. You can see in the table that for Soft-Reset (nvic_systemReset) the watchdog is not reset and will retain its registers and hence its old configuration. And you can also see that with System OFF mode reset, the WDT registers are reset. So it is best to use systemoff&amp;nbsp;if you want to automate this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to change WDT reload value in FreeRTOS example.</title><link>https://devzone.nordicsemi.com/thread/458382?ContentTypeID=1</link><pubDate>Thu, 30 Nov 2023 16:54:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d96a5827-a8b3-4a45-955e-d43125e664e5</guid><dc:creator>Vishnu Pradeep</dc:creator><description>&lt;p&gt;Yes correct. We added WDT as a fail safe mechanism to restart the system if there is no BLE events for 24 hours. Later we tried to reduce the preload value to 2 hours and tried OTA and realised WDT is not resetting system after 2 hours, but only after 24 hours. Then started digging.&lt;br /&gt;&lt;br /&gt;So the problem is WDT is not getting disabled with&amp;nbsp;&lt;span&gt;sd_nvic_systemreset. That is why I tried with&amp;nbsp;sd_power_system_off&amp;nbsp;and then reset. This time it was able to change the preload value. Only a WDT reset or a POR can only disable the WDT and thereby reconfigure the WDT, if my understanding and experimentation is correct. &lt;br /&gt;&lt;br /&gt;Even we didn&amp;#39;t like the workaround as we don&amp;#39;t know what other things can break because of this. Can you try it on your side and check if it is working without this workaround.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to change WDT reload value in FreeRTOS example.</title><link>https://devzone.nordicsemi.com/thread/458324?ContentTypeID=1</link><pubDate>Thu, 30 Nov 2023 13:59:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:133f30cc-fd31-4757-a775-a2178bce91ca</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Hmm, let me see if I understand this correctly.&lt;/p&gt;
&lt;p&gt;You have an advertising issue which was the main reason to look into reset. And you looked in WDT as a workaround to reset the chip for that. And you see issues with the WDT with time and then you are using soft reset as a workaround to the issue to the WDT.&lt;/p&gt;
&lt;p&gt;I do not understand why your WDT issue is not working correctly.&amp;nbsp;You need to debug that first by disabling everything else apart from the WDT feature. I have not seen WDT not functioning this way before.&lt;/p&gt;
[quote user="viznu3391"]But for some reason this is not resetting the system. But if I explicitly do&amp;nbsp;&lt;span&gt;sd_power_system_off and&amp;nbsp;sd_nvic_SystemReset by sending a command it is working as expeced. &lt;/span&gt;[/quote]
&lt;p&gt;This is again workaround to a workaround and I do not know the context in which you are calling this. Why would you do system_off and system_reset at the same time? These two are different things. If you just want a reset, you should just call a sd_nvic_systemreset. And that should work.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to change WDT reload value in FreeRTOS example.</title><link>https://devzone.nordicsemi.com/thread/458292?ContentTypeID=1</link><pubDate>Thu, 30 Nov 2023 12:43:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:09a5aeef-b8ce-4fab-af98-be410d45a60d</guid><dc:creator>Vishnu Pradeep</dc:creator><description>&lt;p&gt;I tried the following flow. Basically after wdt enable.&amp;nbsp; just read the reload value using nrf_wdt_reload_value_get and then compare with&amp;nbsp;WDT_CONFIG_RELOAD_VALUE. If not matching then restart the system using&amp;nbsp;sd_power_system_off(); &amp;amp;&amp;nbsp;sd_nvic_SystemReset(); . But for some reason this is not resetting the system. But if I explicitly do&amp;nbsp;&lt;span&gt;sd_power_system_off and&amp;nbsp;sd_nvic_SystemReset by sending a command it is working as expeced. Any idea why the first method is not working?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Or can you give a better solution.?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Vishnu&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to change WDT reload value in FreeRTOS example.</title><link>https://devzone.nordicsemi.com/thread/458288?ContentTypeID=1</link><pubDate>Thu, 30 Nov 2023 12:36:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:23c0f17d-4489-481a-bdc2-a6d8309cce62</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;thanks for letting us know the fix Vishnu. Maybe we can close this thread now?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to change WDT reload value in FreeRTOS example.</title><link>https://devzone.nordicsemi.com/thread/458070?ContentTypeID=1</link><pubDate>Wed, 29 Nov 2023 11:52:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e83dbf2-32d4-4431-9060-dd253699aba3</guid><dc:creator>Vishnu Pradeep</dc:creator><description>&lt;p&gt;Got the issue. Only a&amp;nbsp;sd_power_system_off or WDT reset can be able to change the settings again. Added&amp;nbsp;sd_power_system_off and system reset in application flow to achieve this.&lt;br /&gt;&lt;br /&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to change WDT reload value in FreeRTOS example.</title><link>https://devzone.nordicsemi.com/thread/458025?ContentTypeID=1</link><pubDate>Wed, 29 Nov 2023 09:36:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:73884903-8360-4c57-9e8f-bf24fd78d1e2</guid><dc:creator>Vishnu Pradeep</dc:creator><description>&lt;p&gt;Tried in debugging and changed the reload value from 24 hours to 2 seconds also. Played with different values. But the value comes out to be&amp;nbsp;0x0e100000 everytime.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to change WDT reload value in FreeRTOS example.</title><link>https://devzone.nordicsemi.com/thread/458010?ContentTypeID=1</link><pubDate>Wed, 29 Nov 2023 08:57:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7d1fa03d-b8d3-4f9f-ab00-73e9d515dfa9</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Hi Vishnu,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have not seen any issue with the WDT code in yours but just to be sure, can you start your application in debugger mode and after you set the WDT reload value, can you try to read those registers in the NRF_WDT and see if the set value is changed from 24 hour to 2 hour ticks?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to change WDT reload value in FreeRTOS example.</title><link>https://devzone.nordicsemi.com/thread/457988?ContentTypeID=1</link><pubDate>Wed, 29 Nov 2023 05:49:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:22f77967-be18-4b9e-b57e-9ba3e13e8f46</guid><dc:creator>Vishnu Pradeep</dc:creator><description>&lt;p&gt;HI &lt;a href="https://devzone.nordicsemi.com/members/aryan"&gt;Susheel Nuguru&lt;/a&gt;&amp;nbsp;,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;We&amp;#39;ve set initially enabled the WDT to 24 hours and then tried to change to 2 hours. Now we see that device is not resetting after 2 hours of inactivity. It still takes 24 hours. We want to reduce the WDT to 15 minutes or less. But unable to set the reload value as in startup it shows&amp;nbsp;wdt is running with&amp;nbsp;nrf_wdt_started() call. What is the way to reset and change the reload value? Tried with wdt example and behavior is same.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Vishnu&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to change WDT reload value in FreeRTOS example.</title><link>https://devzone.nordicsemi.com/thread/457730?ContentTypeID=1</link><pubDate>Tue, 28 Nov 2023 05:09:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:90525fac-c072-4079-816a-dfd0a04adbeb</guid><dc:creator>Vishnu Pradeep</dc:creator><description>&lt;p&gt;Sorry. That is being discussed in a private thread. &lt;a href="https://devzone.nordicsemi.com/support/313673"&gt;here&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Can you check the SDK config and watchdog_enable and wdt_feed functions in main.c&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to change WDT reload value in FreeRTOS example.</title><link>https://devzone.nordicsemi.com/thread/457682?ContentTypeID=1</link><pubDate>Mon, 27 Nov 2023 18:45:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5f1f2170-a233-4264-8289-a2e921a906d2</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Hi Vishnu,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am sorry but I cannot find the project that you shared with me. Can you please share the project or the link again? WDT is very mature solution on nRF52840 and has been tested with many FreeRTOS projects. So it has to be some configuration issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to change WDT reload value in FreeRTOS example.</title><link>https://devzone.nordicsemi.com/thread/457531?ContentTypeID=1</link><pubDate>Mon, 27 Nov 2023 11:26:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:24272201-c800-442a-99e5-8de776cb0cbc</guid><dc:creator>Vishnu Pradeep</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/aryan"&gt;Susheel Nuguru&lt;/a&gt;&amp;nbsp; Can you go through the WDT settings in the project we&amp;#39;ve shared earlier?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>