<?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>nrf_drv_rtc_tick_enable crash app when using DFU secure bootloader (with buttonless dfu App)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/42351/nrf_drv_rtc_tick_enable-crash-app-when-using-dfu-secure-bootloader-with-buttonless-dfu-app</link><description>Hello everybody, 
 I am currently developing on NRF52DK (2018.37) waiting for my proto to be manufactured. 
 I am using SDK v15.2 with gnu/gcc toolchain under Linux Ubuntu 18.04. 
 Every project I use is from examples/paht/to/example/ pca10040e to easily</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 11 Jan 2019 08:41:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/42351/nrf_drv_rtc_tick_enable-crash-app-when-using-dfu-secure-bootloader-with-buttonless-dfu-app" /><item><title>RE: nrf_drv_rtc_tick_enable crash app when using DFU secure bootloader (with buttonless dfu App)</title><link>https://devzone.nordicsemi.com/thread/165078?ContentTypeID=1</link><pubDate>Fri, 11 Jan 2019 08:41:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:20b646aa-9062-441e-9e94-6c292336d538</guid><dc:creator>ClementGoobie</dc:creator><description>&lt;p&gt;I found the solution to my problem :&lt;/p&gt;
&lt;p&gt;My deice has 2 RTC : one for the soft device and the other for the app. So &amp;#39;ill simply use the timers inside the app_timer which use RTC1 to program my date saving and increment.&lt;/p&gt;
&lt;p&gt;Thanks for your help Hung&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf_drv_rtc_tick_enable crash app when using DFU secure bootloader (with buttonless dfu App)</title><link>https://devzone.nordicsemi.com/thread/165008?ContentTypeID=1</link><pubDate>Thu, 10 Jan 2019 16:39:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2dd950ef-bf0c-4e87-80f0-9871bf38cbd7</guid><dc:creator>ClementGoobie</dc:creator><description>&lt;p&gt;Thanks for your reply, I&amp;#39;ll give it a try and keep you updated&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf_drv_rtc_tick_enable crash app when using DFU secure bootloader (with buttonless dfu App)</title><link>https://devzone.nordicsemi.com/thread/164997?ContentTypeID=1</link><pubDate>Thu, 10 Jan 2019 16:00:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bc5178de-c51c-44fa-8686-705dc7c78c88</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;I am afraid that on the nRF52810 you can&amp;#39;t use drv_rtc at the same time with the app_timer. The chip has only 2 RTC and one is already occupied by the softdevice.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you just need to keep track of the time, you can think of using the app_timer and have a timer event occurs every 1 sec (or faster if you need)&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf_drv_rtc_tick_enable crash app when using DFU secure bootloader (with buttonless dfu App)</title><link>https://devzone.nordicsemi.com/thread/164982?ContentTypeID=1</link><pubDate>Thu, 10 Jan 2019 15:21:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:41831d69-c0bf-47f9-af1c-a9fcf9907270</guid><dc:creator>ClementGoobie</dc:creator><description>&lt;p&gt;Thanks Hung,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve already seen your method to debug. But I don&amp;#39;t know how to debug with nrfjprog with gcc. I think I should use JLinkExe with gdb ?&lt;/p&gt;
&lt;p&gt;For now I have NRF_LOG activated and it prints me on uart the Logs when everything is alright but nothing is printed when nrf_drv_rtc_tick_enable is called in the programm. Even previews prints to this function are not showing up.&lt;/p&gt;
&lt;p&gt;Concerning your timer app I didn&amp;#39;t seen it before. My final goal is to use rtc low power to keep track of time with a CTS_Client.&lt;/p&gt;
&lt;p&gt;Thanks for your help,&lt;/p&gt;
&lt;p&gt;Cl&amp;eacute;ment&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf_drv_rtc_tick_enable crash app when using DFU secure bootloader (with buttonless dfu App)</title><link>https://devzone.nordicsemi.com/thread/164961?ContentTypeID=1</link><pubDate>Thu, 10 Jan 2019 14:29:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aec1aca2-813d-4a9d-a3f4-f7d6dea27c26</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Clement,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Correct, when the softdevice is enabled the nrf_drv_clock is also initialized. You can find the code inside&amp;nbsp;sd_state_evt_handler() where the clock driver is initialized.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You don&amp;#39;t need to call&amp;nbsp;lfclk_config() after the softdevice is enabled.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you step into the&amp;nbsp;rtc_config() and check at which line it will crash and which error code ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You may want to follow&lt;a href="https://devzone.nordicsemi.com/question/60125/my-device-is-freezing-and-restarting/#60126"&gt; this debug guide.&amp;nbsp;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Note that we already have app_timer inside the example and it utilize RTC1&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>