<?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>If I enable watchdog in main applicatio it cause bootloader to reboot</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/63992/if-i-enable-watchdog-in-main-applicatio-it-cause-bootloader-to-reboot</link><description>When I enable watchdog in main application by: 
 nrf_drv_wdt_config_t config = NRF_DRV_WDT_DEAFULT_CONFIG; err_code = nrf_drv_wdt_init(&amp;amp;config, wdt_event_handler); APP_ERROR_CHECK(err_code); err_code = nrf_drv_wdt_channel_alloc(&amp;amp;m_channel_id); APP_ERROR_CHECK</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 23 Jul 2020 07:13:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/63992/if-i-enable-watchdog-in-main-applicatio-it-cause-bootloader-to-reboot" /><item><title>RE: If I enable watchdog in main applicatio it cause bootloader to reboot</title><link>https://devzone.nordicsemi.com/thread/261303?ContentTypeID=1</link><pubDate>Thu, 23 Jul 2020 07:13:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2caa297a-a318-40ba-808b-8c794b5d1fd6</guid><dc:creator>Spartak</dc:creator><description>&lt;p&gt;Yes. Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: If I enable watchdog in main applicatio it cause bootloader to reboot</title><link>https://devzone.nordicsemi.com/thread/261302?ContentTypeID=1</link><pubDate>Thu, 23 Jul 2020 07:13:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c115ab05-b1ce-43d4-9227-e78224e6b17e</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Sorry for the late response. The technical support team at Nordic is currently out in summer vacation and we are somewhat low on resources. Is it working now?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: If I enable watchdog in main applicatio it cause bootloader to reboot</title><link>https://devzone.nordicsemi.com/thread/261009?ContentTypeID=1</link><pubDate>Tue, 21 Jul 2020 13:44:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f64f4373-35bf-4a6f-a3bf-3bf19ddd3c09</guid><dc:creator>Spartak</dc:creator><description>&lt;p&gt;I found a solution:&lt;/p&gt;
&lt;p&gt;static void timer_init(void)&lt;br /&gt;{&lt;br /&gt; static bool m_timer_initialized;&lt;br /&gt; &lt;br /&gt; if (!m_timer_initialized)&lt;br /&gt; {&lt;br /&gt; /*if (!nrf_clock_lf_is_running())&lt;br /&gt; { &lt;br /&gt; lfclk_config(); //VG 20200211 for init of LFCLK with external Oscillator&lt;br /&gt; }*/&lt;/p&gt;
&lt;p&gt;NRF_CLOCK-&amp;gt;EVENTS_LFCLKSTARTED = 0; //20200511 Modified as per Nordic&amp;#39;s suggestions. Solves the RTC2 Starting issue&lt;br /&gt; NRF_CLOCK-&amp;gt;TASKS_LFCLKSTART = 1;&lt;br /&gt; while (NRF_CLOCK-&amp;gt;EVENTS_LFCLKSTARTED == 0) {}&lt;br /&gt; NRF_RTC0-&amp;gt;TASKS_STOP = 0;&lt;br /&gt; &lt;br /&gt; nrf_rtc_event_clear(RTC_STRUCT, NRF_RTC_EVENT_TICK);&lt;br /&gt; nrf_rtc_event_clear(RTC_STRUCT, NRF_RTC_EVENT_COMPARE_0);&lt;br /&gt; nrf_rtc_event_clear(RTC_STRUCT, NRF_RTC_EVENT_COMPARE_1);&lt;br /&gt; NRFX_IRQ_PRIORITY_SET(RTC_IRQn, 5);&lt;br /&gt; NRFX_IRQ_ENABLE(RTC_IRQn);&lt;br /&gt; nrf_rtc_prescaler_set(RTC_STRUCT, RTC_PRESCALER);&lt;br /&gt; nrf_rtc_task_trigger(RTC_STRUCT, NRF_RTC_TASK_CLEAR);&lt;br /&gt; nrf_rtc_task_trigger(RTC_STRUCT, NRF_RTC_TASK_START);&lt;br /&gt; nrf_rtc_int_enable(RTC_STRUCT, RTC_INTENSET_OVRFLW_Msk);&lt;br /&gt; &lt;br /&gt; m_timer_initialized = true;&lt;br /&gt; }&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;The problem is in timer that is working from RTC2.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: If I enable watchdog in main applicatio it cause bootloader to reboot</title><link>https://devzone.nordicsemi.com/thread/261002?ContentTypeID=1</link><pubDate>Tue, 21 Jul 2020 13:04:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6468b86d-6505-4c86-b3ec-8f3c4199c826</guid><dc:creator>Spartak</dc:creator><description>&lt;p&gt;Who can help with these issue. It is not only me who found it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: If I enable watchdog in main applicatio it cause bootloader to reboot</title><link>https://devzone.nordicsemi.com/thread/260999?ContentTypeID=1</link><pubDate>Tue, 21 Jul 2020 13:00:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bde1a3ee-7153-4a30-92b1-197c74bc4424</guid><dc:creator>Spartak</dc:creator><description>&lt;p&gt;I don&amp;#39;t found a solution&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: If I enable watchdog in main applicatio it cause bootloader to reboot</title><link>https://devzone.nordicsemi.com/thread/260998?ContentTypeID=1</link><pubDate>Tue, 21 Jul 2020 12:59:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a2b1aaee-a58c-4040-824e-0d9eee0f878c</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Yes, I was going to ask you about that. Glad you found the solution.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: If I enable watchdog in main applicatio it cause bootloader to reboot</title><link>https://devzone.nordicsemi.com/thread/260980?ContentTypeID=1</link><pubDate>Tue, 21 Jul 2020 11:48:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b42424d4-3e76-4a07-bbde-f25be29a5ea6</guid><dc:creator>Spartak</dc:creator><description>&lt;p&gt;The problem is that bootloader not feed watchdog. If I put breakpoint after checking dfu_enter then it goes to dfu mode&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>