<?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>Retained value despite of chip reset</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/35517/retained-value-despite-of-chip-reset</link><description>Hi! 
 I am using SDK15 and I try to implement a clock feature. I have found some information about nRF52832, that RTC isn&amp;#39;t a real time clock but a counter instead and it does not preserve its value through resets. 
 My application uses many alarms that</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 18 Jun 2018 14:23:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/35517/retained-value-despite-of-chip-reset" /><item><title>RE: Retained value despite of chip reset</title><link>https://devzone.nordicsemi.com/thread/136592?ContentTypeID=1</link><pubDate>Mon, 18 Jun 2018 14:23:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:85f5e4b7-3804-4666-b6bf-943f67c272af</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am afraid that there is no silver bullet for what you are trying to achieve.&lt;/p&gt;
&lt;p&gt;As you write, the RTC is a counter, not a clock (although the abbreviation might at first suggest that.) You are correct that keeping the time should be no problem as long as the SoC is not reset. (For instance by counting seconds, or minutes, and keeping the time in RAM.)&lt;/p&gt;
&lt;p&gt;The RTC gets reset on all resets, so in any case you will lose precision on reset. Whether or not RAM is retained depends on reset source. See &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.nrf52832.ps.v1.1%2Fpower.html&amp;amp;anchor=unique_832471788"&gt;Reset behavior&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;What it means in practice is that, in order to keep track of time past a reset, you need to do one of the things that you write that you cannot do: Either use an external clock module, or set the time from an external device after the reset.&lt;/p&gt;
&lt;p&gt;The only way to store values through a reset is either by flash, or, if the reset source allows for it, to use RAM, possibly with RAM retention.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>