<?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>RTC2 continues to operate in Application after Bootloader execution</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/73687/rtc2-continues-to-operate-in-application-after-bootloader-execution</link><description>Hello, Guys! 
 
 As I know, the Bootloader uses RTC2. 
 The problem is that RTC2 continues to operate after executing the bootloader, in my Application. 
 My Application not uses RTC2, and there is no any handler for RTC2_IRQn. When RTC2_IRQn happens</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 08 Apr 2021 09:07:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/73687/rtc2-continues-to-operate-in-application-after-bootloader-execution" /><item><title>RE: RTC2 continues to operate in Application after Bootloader execution</title><link>https://devzone.nordicsemi.com/thread/303687?ContentTypeID=1</link><pubDate>Thu, 08 Apr 2021 09:07:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7bb9f4b8-1445-4980-a7f3-b67b551afe2b</guid><dc:creator>Denis Shreiber</dc:creator><description>&lt;p&gt;Thank you, Hung! &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f44d.svg" title="Thumbsup"&gt;&amp;#x1f44d;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I understood&amp;nbsp;the root of the problem.&lt;/p&gt;
&lt;p&gt;It would be nice if stop RTC2 was implemented in Bootloader in future releases of SDK&amp;nbsp;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTC2 continues to operate in Application after Bootloader execution</title><link>https://devzone.nordicsemi.com/thread/303680?ContentTypeID=1</link><pubDate>Thu, 08 Apr 2021 08:45:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cfc5213f-ee2d-4b89-bb10-f27704a49198</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Denis,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Calling&amp;nbsp;&lt;span&gt;nrf_bootloader_wdt_init() will trigger the&amp;nbsp;nrf_bootloader_wdt_feed_timer_start()&amp;nbsp;which starts the RTC2 to feed the watch dog. This explain why you see the RTC active in many cases.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;What you can do is before&amp;nbsp;nrf_bootloader_app_start() called in the bootloader, you can stop RTC2. This way you don&amp;#39;t need to implement the code to stop RTC2 in your application.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTC2 continues to operate in Application after Bootloader execution</title><link>https://devzone.nordicsemi.com/thread/303620?ContentTypeID=1</link><pubDate>Thu, 08 Apr 2021 03:29:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fb916404-4ab3-4dbd-a967-88e64e57e77e</guid><dc:creator>Denis Shreiber</dc:creator><description>&lt;p&gt;The RTC2 keep running:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;After OTA DFU&lt;/li&gt;
&lt;li&gt;After downloading and running firmware via j-link&lt;/li&gt;
&lt;li&gt;After click Restart in debugger in SES&lt;/li&gt;
&lt;li&gt;After selfreset by &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;NVIC_SystemReset()&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The RTC2 is in reset state:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;After reset by PINRESET&lt;/li&gt;
&lt;li&gt;After reset by Watchdog&lt;/li&gt;
&lt;li&gt;If there are no Bootloader in internal flash&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I did make some changes in Bootlodaer. May be this is a reason:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;I enabled WDT by adding &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;nrf_bootloader_wdt_init()&lt;/span&gt; to the first line in main&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;I attached &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;sdk_config.h&lt;/span&gt; file of Bootloader&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/3583.sdk_5F00_config.h"&gt;devzone.nordicsemi.com/.../3583.sdk_5F00_config.h&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTC2 continues to operate in Application after Bootloader execution</title><link>https://devzone.nordicsemi.com/thread/303558?ContentTypeID=1</link><pubDate>Wed, 07 Apr 2021 14:26:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae96ee00-24a0-45be-ad7d-5a6d8190973d</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Denis,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;When do you see that RTC kept running after the bootloader ? Was it on a normal booting or it&amp;#39;s right after a DFU update ?&amp;nbsp;&lt;br /&gt;As far as I know in SDK v16 (and newer) the bootloader will trigger a reboot after it receives the image. This reboot will reset all the peripherals that the bootloader uses including the RTC2.&amp;nbsp;&lt;br /&gt;On a normal booting RTC2 shouldn&amp;#39;t be running as the bootloader would go straight to the application.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>