<?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>Configuring WDT causes reboot during FOTA</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/90655/configuring-wdt-causes-reboot-during-fota</link><description>Hello, 
 I am writing an application based in nrf1.9.1 in a nrf9160 based board. 
 AWS FOTA is working fine. 
 I recently added a watchdog for the application, following this steps: 
 - Initialize the watchdog 
 - Configure a channel with a generous timeout</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 16 Feb 2023 00:41:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/90655/configuring-wdt-causes-reboot-during-fota" /><item><title>RE: Configuring WDT causes reboot during FOTA</title><link>https://devzone.nordicsemi.com/thread/410202?ContentTypeID=1</link><pubDate>Thu, 16 Feb 2023 00:41:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:64b2cac3-0ccb-4376-9b27-d1ad62a95a7c</guid><dc:creator>David</dc:creator><description>&lt;p&gt;I am using the latest SDK2.2.0 now and still experiencing this same issue where if i use the Hardware WDT and try and perform a FOTA&lt;br /&gt;&lt;br /&gt;if i initialize the wdt with no hardware backup&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;task_wdt_init&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;NULL&lt;/span&gt;&lt;span&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;it works fine but if i add the hardware wdt then as soon as i perform FOTA it crashes as XavierN says.. this quite a big issue, as i have noticed there are certain scenarios where the device can lockup and the task WDTs do not help.. so kind of need to use the hardware WDT and i also need the ability to perform FOTA.. is this in the timeline to get fixed anytime soon?&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuring WDT causes reboot during FOTA</title><link>https://devzone.nordicsemi.com/thread/380026?ContentTypeID=1</link><pubDate>Thu, 04 Aug 2022 05:55:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4ad1ceaf-548a-489b-9120-e4bf0b10e248</guid><dc:creator>Susheel Nuguru</dc:creator><description>[quote user="XavierN"]When you say &amp;quot;toggle a gpio in the watchdog feed function&amp;quot; you mean to modify the &amp;quot;task_wdt_feed&amp;quot; function in task_wdt.c?[/quote]
&lt;p&gt;or pull high a gpio before and low after your application calls&amp;nbsp;&lt;span&gt;task_wdt_feed. Just want to know the timings of this being called before the reset happens.&lt;/span&gt;&lt;/p&gt;
[quote user="XavierN"]I also observed that the watchdog callback function (which right now it&amp;#39;s just a printk) is not bing called while if i just configure the timeout in the wdt short enough for it to trigger it does get called.[/quote]
&lt;p&gt;Dealing with printks on a serial output might be a tricky thing when you are dealing with logs before system would reset. I recommend you to use RTT logging just for testing.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuring WDT causes reboot during FOTA</title><link>https://devzone.nordicsemi.com/thread/379964?ContentTypeID=1</link><pubDate>Wed, 03 Aug 2022 14:37:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eed25151-a0a8-4d30-9d18-856dfbea8a73</guid><dc:creator>XavierN</dc:creator><description>&lt;p&gt;When you say &amp;quot;toggle a gpio in the watchdog feed function&amp;quot; you mean to modify the &amp;quot;task_wdt_feed&amp;quot; function in task_wdt.c?&lt;/p&gt;
&lt;p&gt;I also observed that the watchdog callback function (which right now it&amp;#39;s just a printk) is not bing called while if i just configure the timeout in the wdt short enough for it to trigger it does get called.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Xavier&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuring WDT causes reboot during FOTA</title><link>https://devzone.nordicsemi.com/thread/379927?ContentTypeID=1</link><pubDate>Wed, 03 Aug 2022 13:04:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:830d7bd6-4da3-400e-bcd4-78782b45d8a7</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;I would suggest you to toggle a gpio in the watchdog feed function to see if the feed is happening correctly or if there is a race condition in context switching. Otherwise I do not see why a watchdog that is fed in time should restart.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuring WDT causes reboot during FOTA</title><link>https://devzone.nordicsemi.com/thread/379911?ContentTypeID=1</link><pubDate>Wed, 03 Aug 2022 12:21:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7731c3b1-f51b-4b4d-bca1-b9253cb4a400</guid><dc:creator>XavierN</dc:creator><description>&lt;p&gt;No, it happens always at about 5 seconds regardless of what i set in the watchdog (i have tried from 100ms to 1000000ms)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuring WDT causes reboot during FOTA</title><link>https://devzone.nordicsemi.com/thread/379908?ContentTypeID=1</link><pubDate>Wed, 03 Aug 2022 12:16:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:15f503a2-27cb-4f50-9356-2dbe3a529981</guid><dc:creator>Susheel Nuguru</dc:creator><description>[quote user=""]The application works fine but as soon as I try a FOTA update the application reboots after a few seconds, [/quote]
&lt;p&gt;After how many seconds of starting FOTA process is the application rebooting? Is it 100 seconds?&lt;/p&gt;
&lt;p&gt;Is it possible that the watchdog feeding thread is starving once the FOTA update process has started?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuring WDT causes reboot during FOTA</title><link>https://devzone.nordicsemi.com/thread/379857?ContentTypeID=1</link><pubDate>Wed, 03 Aug 2022 10:31:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:210b3ab0-5aef-4021-88cb-47ad95507d35</guid><dc:creator>XavierN</dc:creator><description>&lt;p&gt;Adding link to this relevant thread: &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/88576/nrf9160-reboot-during-fota-image-download-without-any-crash-information"&gt;devzone.nordicsemi.com/.../nrf9160-reboot-during-fota-image-download-without-any-crash-information&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>