<?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>nRF52 RTC Update Issue</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/63234/nrf52-rtc-update-issue</link><description>Hi, 
 I&amp;#39;m using nrf52832 to interface RTC using nrf_calendar.c file. 
 I have start the RTC at 8:59:00, it will reaches 9:00:00. After that automatically it will resets and again start from 8:59:00 upto 9:00:00. 
 It repeats same operation. 
 Intialize</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 16 Jul 2020 13:19:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/63234/nrf52-rtc-update-issue" /><item><title>RE: nRF52 RTC Update Issue</title><link>https://devzone.nordicsemi.com/thread/260381?ContentTypeID=1</link><pubDate>Thu, 16 Jul 2020 13:19:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b42faf3-469d-429e-8d10-a6ca3ad12763</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I suspect an assert is causing the fault handler to execute a system reset. That is really the only way for the chip to reset. So please enable DEBUG and check fault handler so you may find the file name, line number and error code causing the assert.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 RTC Update Issue</title><link>https://devzone.nordicsemi.com/thread/259790?ContentTypeID=1</link><pubDate>Tue, 14 Jul 2020 06:18:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08f93b2e-2251-43fb-a09d-af71903513ec</guid><dc:creator>Ask313</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have read date &amp;amp; time using nrf_calendar(RTC2)&amp;nbsp; function.&lt;/p&gt;
&lt;p&gt;i have enable the app_timer interrupt functions below mentioned,&lt;/p&gt;
&lt;p&gt;app_timer_create(&amp;amp;awesome_timer, APP_TIMER_MODE_REPEATED, awesome_timeout_handler);&lt;br /&gt;app_timer_start(awesome_timer,APP_TIMER_TICKS(10000),NULL);&lt;/p&gt;
&lt;p&gt;after initialize, it will enter to&amp;nbsp;idle_state_handle();&lt;/p&gt;
&lt;p&gt;Based on this timer, Every 10 sec once it will generate interrupt then i will start advertising after 10 sec stops the advertising.&lt;/p&gt;
&lt;p&gt;So, the Calendar functions also going well.&lt;/p&gt;
&lt;p&gt;After 1 hour this function will automatically reset and start from beginning.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Here, i need date &amp;amp;&amp;nbsp;Time&amp;nbsp;continuously also need low power concept.&lt;/p&gt;
&lt;p&gt;give any other solutions.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Senthilkumar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 RTC Update Issue</title><link>https://devzone.nordicsemi.com/thread/259490?ContentTypeID=1</link><pubDate>Fri, 10 Jul 2020 14:55:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9cb50eac-d78c-45d1-9c9f-3584d368358b</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;Senthilkumar&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The RTC timers will run fine in the standard system on idle sleep mode, triggered by calling sd_app_event_wait().&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Essentially any RTC interrupt will then wake you up from sleep.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This works the same for app_timers, so if you schedule an app_timer callback you can go to sleep, and the MCU will be woken up to run the app_timer callback.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You should be able to modify the calendar example to go to sleep in between events, you just have to add code to enter sleep in the for loop in main,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;When not using the SoftDevice you can use the following code to enter system on idle sleep:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;__WFE();
__SEV();
__WFE();&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 RTC Update Issue</title><link>https://devzone.nordicsemi.com/thread/259314?ContentTypeID=1</link><pubDate>Fri, 10 Jul 2020 04:25:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f11278e-fc54-42cd-9dbd-e04e7050dbb1</guid><dc:creator>Ask313</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks for your reply.&lt;/p&gt;
&lt;p&gt;i&amp;#39;m using E73-2G4M04S1B module .&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/img_5F00_1.JPG" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;it&amp;#39;s have built-in 32.768 Khz clock crystal oscillator.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;in my project initially, i have advertise then to communicate with android. After that enter into sleep.&lt;/p&gt;
&lt;p&gt;i want to keep RTC in sleep mode. particular time period based on RTC device need to wakeup.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Here, app_timer is used for advertising sequence. RTC2 used for date &amp;amp; time function.&lt;/p&gt;
&lt;p&gt;RTC2 will operate in sleep mode ? how to wake up from sleep&amp;nbsp; using RTC?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;By default,RTC 0 is used for softdevice.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Give better solution. If you have RTC with wakeup related examplemeans kindly share with us.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Senthilkumar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 RTC Update Issue</title><link>https://devzone.nordicsemi.com/thread/259207?ContentTypeID=1</link><pubDate>Thu, 09 Jul 2020 13:19:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4427e481-49dc-499a-93ff-cb3a69ab85e5</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Good to hear you figured out the reset issue &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;p&gt;By internal RTC I assume you mean internal LF clock?&lt;/p&gt;
&lt;p&gt;Whether you are using app_timer, RTC0, RTC1 or RTC2 you have the choice of using the internal 32kHz RC oscillator, or using the external 32kHz crystal.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The external crystal will usually have an accuracy of 20ppm or better, which means you are looking at a worst case clock drift of 1.7 seconds pr day.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The internal LF oscillator is way less accurate, and can cause minutes or hours of drift every day, so I would not recommend using this if you need to keep track of time.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It is important to know that the external LF crystal is optional on nRF52 based designs. The development kits have a crystal included, but if you make your own PCB, or buy some third party module, the crystal might not be included.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 RTC Update Issue</title><link>https://devzone.nordicsemi.com/thread/258900?ContentTypeID=1</link><pubDate>Wed, 08 Jul 2020 05:36:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0b236290-e120-4dda-bfad-07e05de4ead3</guid><dc:creator>Ask313</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;reset problem is solved.&lt;/p&gt;
&lt;p&gt;my project is based on date &amp;amp; time. So,need&amp;nbsp;to check date &amp;amp; time, do some functions then device enter into sleep mode.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Note&lt;/strong&gt;: date and time update till the battery power down (or) Change by coding&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;which type of RTC is suitable for my project?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;internal RTC means (App_timer based RTC or RTC1 or RTC2)?&lt;/p&gt;
&lt;p&gt;external&amp;nbsp;RTC?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;kindly give the solution.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Senthilkumar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 RTC Update Issue</title><link>https://devzone.nordicsemi.com/thread/258122?ContentTypeID=1</link><pubDate>Thu, 02 Jul 2020 13:31:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b16816c7-2dc1-47fd-8acb-b41914dbbdf7</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Are you able to run the debugger and see what happens?&lt;/p&gt;
&lt;p&gt;If you put a breakpoint at the start of main you should be able to detect if the code resets during execution.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Also, if you have any error handlers in the application, see if they are called when the application is running.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 RTC Update Issue</title><link>https://devzone.nordicsemi.com/thread/257960?ContentTypeID=1</link><pubDate>Thu, 02 Jul 2020 04:06:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ead261f-7110-422f-b82b-9e926b4ba90b</guid><dc:creator>Ask313</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks for your reply.&lt;/p&gt;
&lt;p&gt;RTC configuration.&lt;/p&gt;
&lt;p&gt;#define CAL_RTC NRF_RTC2&lt;br /&gt;#define CAL_RTC_IRQn RTC2_IRQn&lt;br /&gt;#define CAL_RTC_IRQHandler RTC2_IRQHandler&lt;br /&gt;#define CAL_RTC_IRQ_Priority 3&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;To Configure RTC time using nrf_cal_set_time(19, 10, 16, 8, 59, 00);&lt;/p&gt;
&lt;p&gt;Read RTC data in while loop using strftime(date_time, 9, &amp;quot;%X&amp;quot;, nrf_cal_get_time());&lt;/p&gt;
&lt;p&gt;WDT is not used.&lt;/p&gt;
&lt;p&gt;But, i have two I2C devices.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks &amp;amp; Regards&lt;/p&gt;
&lt;p&gt;Senthilkumar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 RTC Update Issue</title><link>https://devzone.nordicsemi.com/thread/257859?ContentTypeID=1</link><pubDate>Wed, 01 Jul 2020 13:26:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d5a2b65a-a319-4f0a-8bb9-5766164c61d1</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If I understand you correctly you have integrated the nrf_calendar.c file in a larger project?&lt;/p&gt;
&lt;p&gt;Could there be some other issue with the application that leads to a system assert and a reset?&lt;/p&gt;
&lt;p&gt;What about the watchdog, is it enabled?&lt;/p&gt;
&lt;p&gt;When you say that you&amp;nbsp;&amp;quot;&lt;span&gt;start the RTC at 8:59:00&amp;quot;, how do you configure this?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards&lt;br /&gt;Torbjørn&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>