<?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>freertos with wdt reset problem, nrfjprog</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/52036/freertos-with-wdt-reset-problem-nrfjprog</link><description>Hello 
 my setup is a nrf52840, the sdk15.3, Softdevice s140. 
 I&amp;#39;m running an application with freertos and wdt and have the openbootloader and s140 also flashed. 
 - if in freertos the wdt is disabled and i set the GPREGRET register and make a reset</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 01 Oct 2019 10:23:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/52036/freertos-with-wdt-reset-problem-nrfjprog" /><item><title>RE: freertos with wdt reset problem, nrfjprog</title><link>https://devzone.nordicsemi.com/thread/212773?ContentTypeID=1</link><pubDate>Tue, 01 Oct 2019 10:23:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a93583e5-578d-4630-823d-90c33a7d8531</guid><dc:creator>twittich</dc:creator><description>&lt;p&gt;For now with some tests i can say that if i don&amp;#39;t initialize the clock before it&amp;#39;s not working. If i use it everything works fine. Maybe its because of the combination with the wdt ...&lt;/p&gt;
&lt;p&gt;Just to know where is the inactivity timer stopped when the image is send ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: freertos with wdt reset problem, nrfjprog</title><link>https://devzone.nordicsemi.com/thread/212738?ContentTypeID=1</link><pubDate>Tue, 01 Oct 2019 08:34:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e84adf8f-1c53-44fb-bb9d-fcc271422614</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;The default implementation of the inactivity timer works for me here, but yes, the RTC won&amp;#39;t run if you haven&amp;#39;t started the LF clock first. That is why nrf_bootloader_dfu_timers.c-&amp;gt;timer_init() triggers the LF clock start task. The LF clock is automatically started when the chip goes into debug interface mode so it may explain why the timer only expired when you were debugging.&lt;/p&gt;
&lt;p&gt;The only issue I see here is that we&amp;#39;re not reloading WD channel 7. I will report that as a bug internally.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: freertos with wdt reset problem, nrfjprog</title><link>https://devzone.nordicsemi.com/thread/212730?ContentTypeID=1</link><pubDate>Tue, 01 Oct 2019 08:11:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4e2bcff5-4482-4401-a8e7-b9f2ff41498e</guid><dc:creator>twittich</dc:creator><description>&lt;p&gt;I changed the order of initialisation of the timer. In the timer &lt;a href="https://devzone.nordicsemi.com/nordic/short-range-guides/b/software-development-kit/posts/application-timer-tutorial" rel="noopener noreferrer" target="_blank"&gt;tutorial &lt;/a&gt;it&amp;#39;s written that first start internal osci, then init app timer and then create and start ..Now my own inactivity timer works and the&amp;nbsp;NRF_BL_DFU_INACTIVITY_TIMEOUT_MS is set to zero. Maybe in the bootloader this order has to be fixed...&lt;/p&gt;
&lt;p&gt;But if i start an update process and the timer times out the device resets and goes to application. Where do i have to stop or/and restart the timer ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: freertos with wdt reset problem, nrfjprog</title><link>https://devzone.nordicsemi.com/thread/212707?ContentTypeID=1</link><pubDate>Tue, 01 Oct 2019 06:18:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:03bab0fc-ba42-4eef-98bf-952dcf3c0e6c</guid><dc:creator>Vidar Berg</dc:creator><description>[quote user="twittich"]If i start a timer with 30 seconds, in function &amp;quot; nrf_bootloader_init() &amp;quot; after &amp;quot;&amp;nbsp;&amp;nbsp;if (dfu_enter) &amp;quot;. And the callback includes a bool to stop feed the wdt and nvic system reset....&amp;nbsp; it works, but if run normal it stays in bootloader ?![/quote]
&lt;p&gt;Could you replace the&amp;nbsp;&lt;span&gt;nvic systemreset with a loop that reloads the WD forever, then use the --readregs command to see if the program enters this callback when you&amp;#39;re not in debug mode?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;e.g.,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;timer_callback()&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;{&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; for (;;) {//TODO:feed WD}&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;}&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: freertos with wdt reset problem, nrfjprog</title><link>https://devzone.nordicsemi.com/thread/212553?ContentTypeID=1</link><pubDate>Mon, 30 Sep 2019 11:41:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d14435cf-6608-4457-9ae1-ee2d8f68ec59</guid><dc:creator>twittich</dc:creator><description>&lt;p&gt;There has to be a difference if in debug mode. The behavior of the timers is quite different.&lt;/p&gt;
&lt;p&gt;If i start a timer with 30 seconds, in function &amp;quot; nrf_bootloader_init() &amp;quot; after &amp;quot;&amp;nbsp;&amp;nbsp;if (dfu_enter) &amp;quot;. And the callback includes a bool to stop feed the wdt and nvic system reset....&amp;nbsp; it works, but if run normal it stays in bootloader ?!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: freertos with wdt reset problem, nrfjprog</title><link>https://devzone.nordicsemi.com/thread/212306?ContentTypeID=1</link><pubDate>Fri, 27 Sep 2019 13:37:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b78bee7-2de2-4139-bce4-353bc3b753a6</guid><dc:creator>twittich</dc:creator><description>&lt;p&gt;Have seen only that it was in the loop but not that it restarted...&lt;/p&gt;
&lt;p&gt;Where could i place a reset or change to the application any idea?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: freertos with wdt reset problem, nrfjprog</title><link>https://devzone.nordicsemi.com/thread/212300?ContentTypeID=1</link><pubDate>Fri, 27 Sep 2019 13:18:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fffbab8e-c139-4af9-81c9-231e763e80ae</guid><dc:creator>Vidar Berg</dc:creator><description>[quote user="twittich"]It stays in the forever loop even after 10 minutes[/quote]
&lt;p&gt;&amp;nbsp;Are you sure it&amp;#39;s not being reset every 35 seconds, but that it for some reason re-enters DFU mode?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: freertos with wdt reset problem, nrfjprog</title><link>https://devzone.nordicsemi.com/thread/212283?ContentTypeID=1</link><pubDate>Fri, 27 Sep 2019 12:22:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6be2d49b-2893-4257-8fc1-156a95e60cbe</guid><dc:creator>twittich</dc:creator><description>&lt;p&gt;It stays in the forever loop even after 10 minutes ?&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll test a seperate timer which is started from main and reset the device and set the dfu timeout back to 0.&lt;/p&gt;
&lt;p&gt;Have no idea at the moment...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: freertos with wdt reset problem, nrfjprog</title><link>https://devzone.nordicsemi.com/thread/212253?ContentTypeID=1</link><pubDate>Fri, 27 Sep 2019 10:54:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b796d42-9c1a-40fd-9ee4-bc5ba774240f</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;That&amp;#39;s a bit strange. Suggest that you try this without debugging, then when the program gets in this state, attach a debugger and read out the registers with nrfjprog --readregs. This will return the PC register which tells you where in the code your program is stuck.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: freertos with wdt reset problem, nrfjprog</title><link>https://devzone.nordicsemi.com/thread/212230?ContentTypeID=1</link><pubDate>Fri, 27 Sep 2019 09:46:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5fc1b04e-b5ae-49f1-b44f-94647f60870e</guid><dc:creator>twittich</dc:creator><description>&lt;p&gt;While debugging it goes into the timeout callback and the application is started as usual but without debugging it times out and the device disappear, no update possible and app is not starting. ???&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: freertos with wdt reset problem, nrfjprog</title><link>https://devzone.nordicsemi.com/thread/212202?ContentTypeID=1</link><pubDate>Fri, 27 Sep 2019 07:55:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:284103ad-5c6f-4a41-aa75-9720c1b23ad0</guid><dc:creator>twittich</dc:creator><description>&lt;p&gt;Ok i&amp;#39;ll test that and look where i should clean it.&lt;/p&gt;
&lt;p&gt;But if the&amp;nbsp;GPREGRET is set and the bootloader enters the dfu mode, one of the first things which is done is &amp;quot;&amp;nbsp;dfu_enter_flags_clear(); &amp;quot; so it should be cleared. And if a reset is done after setting the GPREGRET&amp;nbsp; register and before clearing it should stay in dfu mode after the reset ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: freertos with wdt reset problem, nrfjprog</title><link>https://devzone.nordicsemi.com/thread/212200?ContentTypeID=1</link><pubDate>Fri, 27 Sep 2019 07:45:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c26827a-dbc4-45b9-9673-8d31891e59c8</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Then the program should enter nrf_bootloader.c:inactivity_timeout() after 35 seconds and reset the device. You may place a breakpoint there to confirm. Maybe the problem is that the bootloader enters DFU mode on subsequent startup rather than booting the app? GPREGRET is not cleared through a soft reset, unlike a WD reset.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: freertos with wdt reset problem, nrfjprog</title><link>https://devzone.nordicsemi.com/thread/212195?ContentTypeID=1</link><pubDate>Fri, 27 Sep 2019 07:36:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b004ae07-dde4-44f9-910d-7efb342f5e4f</guid><dc:creator>twittich</dc:creator><description>&lt;p&gt;It is now set to 35000.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: freertos with wdt reset problem, nrfjprog</title><link>https://devzone.nordicsemi.com/thread/212193?ContentTypeID=1</link><pubDate>Fri, 27 Sep 2019 07:35:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54ffe3e4-af91-4be5-be10-834491a189a1</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Ok, but what&amp;nbsp;is&amp;nbsp;&lt;span&gt;NRF_BL_DFU_INACTIVITY_TIMEOUT_MS&amp;nbsp;set to in your bootloader?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: freertos with wdt reset problem, nrfjprog</title><link>https://devzone.nordicsemi.com/thread/212191?ContentTypeID=1</link><pubDate>Fri, 27 Sep 2019 07:33:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f64c0280-617b-4837-82c0-37d4918efba5</guid><dc:creator>twittich</dc:creator><description>&lt;p&gt;Yes i know the timer and the use of it.&lt;/p&gt;
&lt;p&gt;But i want to use the timer, so that it jumps back to application if no update is started. The wd is now always fed and happy and will not reset the device.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: freertos with wdt reset problem, nrfjprog</title><link>https://devzone.nordicsemi.com/thread/212189?ContentTypeID=1</link><pubDate>Fri, 27 Sep 2019 07:27:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e901493e-b778-4cdb-ac2f-8f3652399bb4</guid><dc:creator>Vidar Berg</dc:creator><description>[quote user="twittich"]There is now one thing left which is not working, if i set the NRF_BL_DFU_INACTIVITY_TIMEOUT_MS it&amp;#39;s nothing doing, no difference if set to 0 or any value, no reset at all ?[/quote]
&lt;p&gt;&amp;nbsp;&amp;#39;0&amp;#39; disables the inactivity timer so the bootloader will not time out at all. Here&amp;#39;s the default setting from sdk_config.h:&lt;/p&gt;
&lt;p&gt;// &amp;lt;i&amp;gt; If 0, no inactivity timer will be used. Values 1-99 are invalid.&lt;/p&gt;
&lt;p&gt;#ifndef NRF_BL_DFU_INACTIVITY_TIMEOUT_MS&lt;br /&gt;#define NRF_BL_DFU_INACTIVITY_TIMEOUT_MS 120000&lt;br /&gt;#endif&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: freertos with wdt reset problem, nrfjprog</title><link>https://devzone.nordicsemi.com/thread/212102?ContentTypeID=1</link><pubDate>Thu, 26 Sep 2019 14:35:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e45c9530-60db-42de-b43b-9243c7545ed9</guid><dc:creator>twittich</dc:creator><description>[quote userid="4240" url="~/f/nordic-q-a/52036/freertos-with-wdt-reset-problem-nrfjprog/212012"]&amp;#39;NRF_BL_DFU_INACTIVITY_TIMEOUT_MS[/quote]
&lt;p&gt;This i know as i said this was set to 0 but i thought because of that &amp;quot;&amp;nbsp;The inactivity timer&amp;nbsp;expires after 2 minutes by default, &amp;quot; you meant another timer.&lt;/p&gt;
&lt;p&gt;With my fix in the loop, the wd feeding at the beginning in main of bootloader and commenting out of __wfe the wd will not timeout and this is set actually to&amp;nbsp; 1.5 sec.&lt;/p&gt;
&lt;p&gt;There is now one thing left which is not working, if i set the NRF_BL_DFU_INACTIVITY_TIMEOUT_MS it&amp;#39;s nothing doing, no difference if set to 0 or any value, no reset at all ?&lt;/p&gt;
[quote userid="4240" url="~/f/nordic-q-a/52036/freertos-with-wdt-reset-problem-nrfjprog/212012"]Good catch! Are you enabling channel 7 in your code?[/quote]
&lt;p&gt;Thank you, yes all ...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: freertos with wdt reset problem, nrfjprog</title><link>https://devzone.nordicsemi.com/thread/212012?ContentTypeID=1</link><pubDate>Thu, 26 Sep 2019 10:11:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:693f4880-5181-453c-b1da-2532df45873b</guid><dc:creator>Vidar Berg</dc:creator><description>[quote user="twittich"]What did the uncommenting exactly do that the wdt will not time out ?[/quote]
&lt;p&gt;&amp;nbsp;WFE puts the CPU to sleep as long as there are no pending interrupts. So the frequency of your interrupts will then&amp;nbsp;define the reload interval. Without WFE it will be reloaded almost continuously(is not reloaded when processing scheduler tasks). However, I don&amp;#39;t see how removing __WFE could cause the program to crash to app_start.&amp;nbsp;Can you read out the the&amp;nbsp; Program counter (PC) and xPSR registers when this happens?&lt;/p&gt;
[quote user="twittich"]in the file &amp;quot; nrf_bootloader_wdt.c &amp;quot; in function &amp;quot; static void wdt_feed(void) &amp;quot; the for loop &amp;quot;&amp;nbsp;for (nrf_wdt_rr_register_t i = NRF_WDT_RR0; i &amp;lt; NRF_WDT_RR7; i++) &amp;quot; counts up to smaller than &amp;quot; NRF_WDT_RR7 &amp;quot; , i guess it has to be &amp;quot; &amp;lt;= &amp;quot;[/quote]
&lt;p&gt;&amp;nbsp;Good catch! Are you enabling channel 7 in your code? That might explain the unexpected WD resets you saw earlier.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
[quote user="twittich"]where is this timer and where is the 2 minutes set ?[/quote]
&lt;p&gt;&amp;nbsp;If you search for &amp;#39;NRF_BL_DFU_INACTIVITY_TIMEOUT_MS&amp;#39; in your bootloader project you will see where the timeout is configured and find references to the timer instance used for the bootloader timeout. The timer is reloaded during DFU, so the DFU itself is not limited to 2 minutes.&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: freertos with wdt reset problem, nrfjprog</title><link>https://devzone.nordicsemi.com/thread/211880?ContentTypeID=1</link><pubDate>Wed, 25 Sep 2019 14:43:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:384a732f-c16f-43e0-8fbe-c1e15ef38b63</guid><dc:creator>twittich</dc:creator><description>&lt;p&gt;Yes it isn&amp;#39;t entering the application there are different alive indicators, if i remove the comments from &amp;quot; _WFE &amp;quot; it restarts the application normal.&lt;/p&gt;
&lt;p&gt;What did the uncommenting exactly do that the wdt will not time out ?&lt;/p&gt;
&lt;p&gt;Actual if the wdt is set to 40 seconds, the bootloader inactivity to 0 everything works fine if the dfu update is started immidiatly.&lt;/p&gt;
&lt;p&gt;------&lt;/p&gt;
&lt;p&gt;Now i set the wdt to 5 secs and do the following and after maximum a minute it makes a restart (maybe the inactivity timeout ?), theoretically it has to stay forever in the dfu mode until the update is started&amp;nbsp; /done.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll try to write directly in the register and guess it&amp;#39;s working. First i fill all regs with 0xffffffff and then with the magic number. thats the first i do in the main of the bootloader and then in the forever loop...&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;NRF_WDT-&amp;gt;RR[0] = 0x6E524635UL;
NRF_WDT-&amp;gt;RR[1] = 0x6E524635UL;
NRF_WDT-&amp;gt;RR[2] = 0x6E524635UL;
NRF_WDT-&amp;gt;RR[3] = 0x6E524635UL;
NRF_WDT-&amp;gt;RR[4] = 0x6E524635UL;
NRF_WDT-&amp;gt;RR[5] = 0x6E524635UL;
NRF_WDT-&amp;gt;RR[6] = 0x6E524635UL;
NRF_WDT-&amp;gt;RR[7] = 0x6E524635UL;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;And just byside is this correct ?&lt;/p&gt;
&lt;p&gt;in the file &amp;quot; nrf_bootloader_wdt.c &amp;quot; in function &amp;quot; static void wdt_feed(void) &amp;quot; the for loop &amp;quot;&amp;nbsp;for (nrf_wdt_rr_register_t i = NRF_WDT_RR0; i &amp;lt; NRF_WDT_RR7; i++) &amp;quot; counts up to smaller than &amp;quot; NRF_WDT_RR7 &amp;quot; , i guess it has to be &amp;quot; &amp;lt;= &amp;quot; .&lt;/p&gt;
[quote userid="4240" url="~/f/nordic-q-a/52036/freertos-with-wdt-reset-problem-nrfjprog/211620"]inactivity timer&amp;nbsp;expires after 2 minutes by default,[/quote]
&lt;p&gt;where is this timer and where is the 2 minutes set ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: freertos with wdt reset problem, nrfjprog</title><link>https://devzone.nordicsemi.com/thread/211620?ContentTypeID=1</link><pubDate>Tue, 24 Sep 2019 17:32:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f2086263-4ee5-4ad4-ab7a-46827755d37e</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;The inactivity timer&amp;nbsp;expires after 2 minutes by default, and it&amp;#39;s supposed to reset the device and on subsequent startup enter DFU mode&amp;nbsp;or boot the main application if one exists. So that part seems to be as expected.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
[quote user="twittich"]comes to &amp;quot;&amp;nbsp;nrf_bootloader_app_start(); &amp;quot; but don&amp;#39;t continue...?[/quote]
&lt;p&gt;&amp;nbsp;Are you sure it&amp;#39;s not entering the main application? There are no while loops,etc that should cause the program to hang in&amp;nbsp;&lt;span&gt;nrf_bootloader_app_start().&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: freertos with wdt reset problem, nrfjprog</title><link>https://devzone.nordicsemi.com/thread/211570?ContentTypeID=1</link><pubDate>Tue, 24 Sep 2019 13:52:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d7106c34-e409-4593-8e8b-c0e7a2c876f5</guid><dc:creator>twittich</dc:creator><description>&lt;p&gt;I commented out both _WFE and now it works partially.&lt;/p&gt;
&lt;p&gt;wdt interval is 20 sec and NRF_BL_WDT_MAX_SCHEDULER_LATENCY_MS&amp;nbsp; too, dfu inactivity still set to 0. It stays for 2 min in the dfu mode then it disappears and the application is not restarting, same if i debug the bootlaoder, it comes to &amp;quot;&amp;nbsp;nrf_bootloader_app_start(); &amp;quot; but don&amp;#39;t continue...?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: freertos with wdt reset problem, nrfjprog</title><link>https://devzone.nordicsemi.com/thread/211530?ContentTypeID=1</link><pubDate>Tue, 24 Sep 2019 12:02:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:156730a5-c503-418e-b258-8a8bf3076059</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;As a test, please try to comment out the __WFE instruction from the wait for event loop and see if you still&amp;nbsp;a WD timeout.&amp;nbsp;&lt;/p&gt;
[quote user="twittich"]How and where do i have to do this ?[/quote]
&lt;p&gt;&amp;nbsp;Based on the &lt;span&gt;NRF_BL_WDT_MAX_SCHEDULER_LATENCY_MS value, t&lt;/span&gt;he bootloader implementation should ensure that the CPU is woken at regular intervals. So not sure why it&amp;#39;s not working.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: freertos with wdt reset problem, nrfjprog</title><link>https://devzone.nordicsemi.com/thread/211443?ContentTypeID=1</link><pubDate>Tue, 24 Sep 2019 07:34:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:82ee03dd-f381-43e2-9ba9-2fffe1cb7645</guid><dc:creator>twittich</dc:creator><description>&lt;p&gt;Yes it should be...&lt;/p&gt;
&lt;p&gt;At the function &amp;quot; void nrf_bootloader_wdt_init(void) &amp;quot;&amp;nbsp; &amp;quot; nrf_wdt_started() &amp;quot; is true and &amp;quot; nrf_bootloader_wdt_feed_timer_start() &amp;quot; is called.&lt;/p&gt;
&lt;p&gt;I also tried it to call the function directly &amp;quot;&amp;nbsp;nrf_bootloader_wdt_feed () &amp;quot; in main and it goes also into it but the watchdog is not fed or where could it also be placed or do i have to init anything ?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="4240" url="~/f/nordic-q-a/52036/freertos-with-wdt-reset-problem-nrfjprog/210866"]wake the CPU so nrf_bootloader_wdt_feed() can be called[/quote]
&lt;p&gt;How and where do i have to do this ?&lt;/p&gt;
&lt;p&gt;Just to be clear this &amp;quot;&amp;nbsp;NRF_BL_WDT_MAX_SCHEDULER_LATENCY_MS &amp;quot; is set to the same time as the wdt interval ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: freertos with wdt reset problem, nrfjprog</title><link>https://devzone.nordicsemi.com/thread/210866?ContentTypeID=1</link><pubDate>Fri, 20 Sep 2019 08:40:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e234f03a-6541-4cd7-af59-93d823130955</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;It is reloaded in the &amp;#39;loop_forever&amp;#39; loop, but the CPU also enters sleep&amp;nbsp;there so there must be periodic interrupts to wake the CPU so nrf_bootloader_wdt_feed() can be called in time. Maybe the&amp;nbsp;nrf_bootloader_wdt_feed_timer_start() is not called for some reason?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: freertos with wdt reset problem, nrfjprog</title><link>https://devzone.nordicsemi.com/thread/210671?ContentTypeID=1</link><pubDate>Thu, 19 Sep 2019 10:07:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62e34e5a-27f6-4e2a-94a4-060807d13bd2</guid><dc:creator>twittich</dc:creator><description>&lt;p&gt;I have to find out where the bootloader is waiting for the dfu update start that i can insert there the wd reload.&lt;/p&gt;
&lt;p&gt;Maybe it will work with the &amp;quot; loop_forever &amp;quot; function in &amp;quot; nrf_bootloader.c &amp;quot; ?&lt;/p&gt;
&lt;p&gt;But there is already a function named &amp;quot;&amp;nbsp;nrf_bootloader_wdt_feed(); &amp;quot; ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>