<?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>nrf5-calendar example questions</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/57827/nrf5-calendar-example-questions</link><description>https://github.com/NordicPlayground/nrf5-calendar-example 
 What is lowest power mode where real time clock could run? 
 How could retain RTC value during reset? 
 Thanks</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 27 Feb 2020 14:17:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/57827/nrf5-calendar-example-questions" /><item><title>RE: nrf5-calendar example questions</title><link>https://devzone.nordicsemi.com/thread/236905?ContentTypeID=1</link><pubDate>Thu, 27 Feb 2020 14:17:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:df76e81d-34c3-4bd6-97d0-08c210d2643c</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;In System OFF, everything is turned off, including clocks. You can read about the power modes &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/power.html?cp=4_2_0_17#concept"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;There is no function to stop the callback, but one can easily be implemented. All you have to do is set the callback pointer to 0:&lt;/p&gt;
&lt;p&gt;void nrf_cal_clear_callback(void)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp; &amp;nbsp; cal_event_callback = 0;&lt;br /&gt;}&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5-calendar example questions</title><link>https://devzone.nordicsemi.com/thread/236121?ContentTypeID=1</link><pubDate>Tue, 25 Feb 2020 06:05:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:21b3fa9e-4ecb-4df4-936e-f7a1e7146534</guid><dc:creator>samsam</dc:creator><description>&lt;p&gt;Hi Sigurd,&lt;/p&gt;
&lt;p&gt;The RTC in System ON mode, with LFCLK and RTC running &amp;ndash; how can check inside the callback event handler that I&amp;rsquo;m in such mode in order to skip/bypass the other stuff that normally is done there in regular mode like showing a clock etc. that cant run in low power mode? &amp;nbsp;Or to block interrupts from the RTC other way?&lt;/p&gt;
&lt;p&gt;The &amp;#39;sanity check&amp;#39; is a good point, still didn&amp;rsquo;t find though reliable enough logic as the value in question is a timestamp, so far have idea how to check for out of range only the bottom limit (i.e.the compile or download timestamp), but with the upper limit is a tricky &amp;hellip; so will leave if for a while in the TODO list until fix more important problems&lt;/p&gt;
&lt;p&gt;Thank you and best regards! &amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5-calendar example questions</title><link>https://devzone.nordicsemi.com/thread/235939?ContentTypeID=1</link><pubDate>Mon, 24 Feb 2020 12:08:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:55d5f2ee-2c62-4480-9a55-6d19a0db27cf</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;&lt;span&gt;After a reset has occurred, register&amp;nbsp;&lt;/span&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/power.html?cp=4_0_0_4_2_5#register.RESETREAS"&gt;RESETREAS&lt;/a&gt;&lt;span&gt;&amp;nbsp;can be read to determine which source has triggered the reset.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I also recommend doing some sanity check on the retained data when you wake-up.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5-calendar example questions</title><link>https://devzone.nordicsemi.com/thread/235839?ContentTypeID=1</link><pubDate>Sun, 23 Feb 2020 16:09:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ed345559-b24e-4356-8e73-2668e6d35363</guid><dc:creator>samsam</dc:creator><description>&lt;p&gt;So with&amp;nbsp;&lt;span&gt;((section(&amp;quot;.non_init&amp;quot;))) tested and work Ok so far with soft resets from code or faults, and give random numbers at power up or reset with the &amp;#39;Reset&amp;#39; button. Didnt find any implications or side effects so far.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Is there a way to find with code how was the nRF booted (power on, reset button, soft reset, ..), so to be able to distinguish is it a random number or&amp;nbsp; number I set before soft reset?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5-calendar example questions</title><link>https://devzone.nordicsemi.com/thread/235740?ContentTypeID=1</link><pubDate>Fri, 21 Feb 2020 14:11:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce3381ef-d326-40ae-8a7b-e8d314240a79</guid><dc:creator>samsam</dc:creator><description>&lt;p&gt;Hi Sigurd,&lt;/p&gt;
&lt;p&gt;yes, I have such line (only attributes order differ):&amp;nbsp;&amp;lt;ProgramSection name=&amp;quot;.non_init&amp;quot; load=&amp;quot;No&amp;quot; alignment=&amp;quot;4&amp;quot;/&amp;gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Does it mean I have to use&amp;nbsp;&lt;span&gt;((section(&amp;quot;.non_init&amp;quot;))) ?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;About &amp;#39;Reset&amp;#39; - best if I could handle all types of resets, but for now will be Ok and only for resets which happen when nRF is &lt;span style="font-size:12px;"&gt;awakes&lt;/span&gt;&amp;nbsp;from seep mode (after button press) and restart which happen when system&amp;nbsp; when some faults happen without user interference?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5-calendar example questions</title><link>https://devzone.nordicsemi.com/thread/235719?ContentTypeID=1</link><pubDate>Fri, 21 Feb 2020 13:02:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:906783c3-0777-493c-8bf9-9b32f3cb2d14</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;How does your SES project flash_placement.xml file look like ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Do you have&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;lt;ProgramSection alignment=&amp;quot;4&amp;quot; load=&amp;quot;No&amp;quot; name=&amp;quot;.non_init&amp;quot; /&amp;gt;&lt;/pre&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;in the file ?&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]during reset?[/quote]
&lt;p&gt;&amp;nbsp;What type of reset are you expecting ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5-calendar example questions</title><link>https://devzone.nordicsemi.com/thread/235271?ContentTypeID=1</link><pubDate>Wed, 19 Feb 2020 17:07:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9e5aa4e7-f4b2-4d68-a5c3-ff9e68e3b828</guid><dc:creator>samsam</dc:creator><description>&lt;p&gt;Hi Sigurd,&lt;/p&gt;
&lt;p&gt;Do you have some example or tutorial about what need to be set for a .noinit variable as I&amp;#39;m receiving&amp;nbsp; linker errors when try&lt;/p&gt;
&lt;p&gt;uint32_t test_noinit __attribute__ ((section(&amp;quot;.noinit&amp;quot;)));&lt;/p&gt;
&lt;p&gt;Output/Debug/Exe/ble_app_ss_hid_rtos_pca10040_s112_19.elf section `.noinit&amp;#39; will not fit in region `UNPLACED_SECTIONS&amp;#39;&lt;/p&gt;
&lt;p&gt;region `UNPLACED_SECTIONS&amp;#39; overflowed by 4 bytes&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Also I&amp;#39;m using FreeRTOS in the app that I&amp;#39;m trying to implement RTC at lowest power mode. Does this affect&amp;nbsp; somehow your previous answer?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5-calendar example questions</title><link>https://devzone.nordicsemi.com/thread/235207?ContentTypeID=1</link><pubDate>Wed, 19 Feb 2020 13:48:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:704ffae2-b647-4761-ac57-ffe390bef814</guid><dc:creator>Sigurd</dc:creator><description>[quote user=""]What is lowest power mode where real time clock could run?[/quote]
&lt;p&gt;&amp;nbsp;System ON mode, with LFCLK and RTC running. ~ 2-3 µA.&amp;nbsp;&lt;/p&gt;
[quote user=""]How could retain RTC value during reset?[/quote]
&lt;p&gt;It will depend on the type of reset. You could try to save the RTC value to a&amp;nbsp;.noinit variable (will not be initialized to zero during startup) that you read at startup,&amp;nbsp;alternatively save the RTC value to flash before the reset, and read it again startup.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>