<?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>SDK17 timestamp issue: clean time auto</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/65396/sdk17-timestamp-issue-clean-time-auto</link><description>Hi, 
 I use the timestamp log in SDK17, and I find the time will auto clean at about 1min6-7sec. 
 
 Below is the code init the log. 
 /******************************************************************/ 
 #define USE_CYCCNT_TIMESTAMP_FOR_LOG 1 // 0 </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 02 Sep 2020 07:48:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/65396/sdk17-timestamp-issue-clean-time-auto" /><item><title>RE: SDK17 timestamp issue: clean time auto</title><link>https://devzone.nordicsemi.com/thread/267546?ContentTypeID=1</link><pubDate>Wed, 02 Sep 2020 07:48:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d427e2e7-1391-4dcf-8ba8-4dfd309e0e63</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Do you have an app_timer running here or are all stopped? I guess you need an app_timer running.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK17 timestamp issue: clean time auto</title><link>https://devzone.nordicsemi.com/thread/267327?ContentTypeID=1</link><pubDate>Tue, 01 Sep 2020 01:52:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:096d529c-97a8-4c07-8c20-3090b0fd5b8e</guid><dc:creator>Jack  Wang</dc:creator><description>&lt;p&gt;Dear&amp;nbsp;&lt;span&gt;Kenneth,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; Thanks for your reply.&amp;nbsp; Yes, if set&amp;nbsp;USE_CYCCNT_TIMESTAMP_FOR_LOG = 0 ,the time is OK at the beginning.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; Then,another issue comes out.&amp;nbsp; I use my phone send &amp;#39;0&amp;#39; and &amp;#39;1&amp;#39; to nRF52 very slowly after connect, you can see them in below.But the time is stopped, no matter how many times I send.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1598923547783v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;After that, I disconnect nRF52, and re-connect it. The time runs(it runs ,but it is not right, the time runs very slowly).&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; Then, the time stopped again :&amp;nbsp; I&lt;span&gt;&amp;nbsp;use my phone send &amp;#39;0&amp;#39; and &amp;#39;1&amp;#39; to nRF52 very&amp;nbsp;slowly,&amp;nbsp; and the time is not change.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1598924162715v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;What is the reason of it? How can we fix it?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you very much!&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Jack Wang&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK17 timestamp issue: clean time auto</title><link>https://devzone.nordicsemi.com/thread/267223?ContentTypeID=1</link><pubDate>Mon, 31 Aug 2020 11:56:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eeda3685-a7f0-4c00-b47a-57ad910544e9</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The&amp;nbsp;&lt;span&gt;CYCCNT seems to overflow after 2^32 / 64MHz = 67,108seconds. You likely will need to use app_timer here by:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;USE_CYCCNT_TIMESTAMP_FOR_LOG&amp;nbsp;&amp;nbsp;0&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;br /&gt;Kenneth&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>