<?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>timestamping w/o active timer (APP_TIMER_KEEPS_RTC_ACTIVE = 1)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/23764/timestamping-w-o-active-timer-app_timer_keeps_rtc_active-1</link><description>hello, 
 i am using the nrf52840 preview devkit and am currently trying to find a solution for timestamping / for a time-base. the idea was to use the RTC for that since it provides a pretty accurate time reference and i really don&amp;#39;t want to create ISRs</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 18 Aug 2017 15:04:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/23764/timestamping-w-o-active-timer-app_timer_keeps_rtc_active-1" /><item><title>RE: timestamping w/o active timer (APP_TIMER_KEEPS_RTC_ACTIVE = 1)</title><link>https://devzone.nordicsemi.com/thread/93476?ContentTypeID=1</link><pubDate>Fri, 18 Aug 2017 15:04:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e614ef59-0dfd-441a-9285-7c2ee7307b5c</guid><dc:creator>martin</dc:creator><description>&lt;p&gt;APP_TIMER_KEEPS_RTC_ACTIVE won&amp;#39;t work but this fixed it for me.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: timestamping w/o active timer (APP_TIMER_KEEPS_RTC_ACTIVE = 1)</title><link>https://devzone.nordicsemi.com/thread/93474?ContentTypeID=1</link><pubDate>Fri, 18 Aug 2017 15:03:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab5a2264-8c2a-4ab6-8dca-fb0c862a75d9</guid><dc:creator>martin</dc:creator><description>&lt;p&gt;i guess i could - for now i switched to the soft-device, the app_timer is working nicely and provides some &amp;quot;comfort functions&amp;quot;i&amp;#39;d have to implement on top. i also created a new project and adding the call to rtc1_start () worked there - so i guess i made a mess somewhere.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: timestamping w/o active timer (APP_TIMER_KEEPS_RTC_ACTIVE = 1)</title><link>https://devzone.nordicsemi.com/thread/93473?ContentTypeID=1</link><pubDate>Thu, 03 Aug 2017 10:21:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:66a75e9c-4331-48da-8f54-f7ac1fada406</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi martin,&lt;/p&gt;
&lt;p&gt;What about using the RTC directly and skip the apptimer ?&lt;/p&gt;
&lt;p&gt;Hung&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: timestamping w/o active timer (APP_TIMER_KEEPS_RTC_ACTIVE = 1)</title><link>https://devzone.nordicsemi.com/thread/93471?ContentTypeID=1</link><pubDate>Tue, 01 Aug 2017 06:51:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2a536122-9d2d-4564-a1e8-ff84749c37fc</guid><dc:creator>martin</dc:creator><description>&lt;p&gt;hello - i tried the attached project. you still have the start_app_timer () in there - thus a dummy-timer will be initialized and everything works. once you remove this line your output should also stall. tried it with UART as well as J-Link (using ozone).&lt;/p&gt;
&lt;p&gt;to summarize: when i remove the start_app_timer() line plus add the rtc1_start() in app_timer_init i get ~2 prints of the RTC, then everything stops working. only if i break and resume the rtc_t0 gets updated.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: timestamping w/o active timer (APP_TIMER_KEEPS_RTC_ACTIVE = 1)</title><link>https://devzone.nordicsemi.com/thread/93472?ContentTypeID=1</link><pubDate>Fri, 28 Jul 2017 09:12:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6d8e02b4-ffb3-42ad-8a19-95110db736db</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;How do you check the variable? I tested your code and it seems to work fine. Attachecd project for SDK 13.1.0 (only Keil project and hex-files updated): &lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/app_5F00_timer.zip"&gt;app_timer.zip&lt;/a&gt;. Can you test this on your board? It will output value to UART.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: timestamping w/o active timer (APP_TIMER_KEEPS_RTC_ACTIVE = 1)</title><link>https://devzone.nordicsemi.com/thread/93470?ContentTypeID=1</link><pubDate>Wed, 26 Jul 2017 16:42:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ad73dc39-a4da-4b61-9f80-77e664819a75</guid><dc:creator>martin</dc:creator><description>&lt;p&gt;thanks for the quick reply! that seems to do something but does not produce the expected outcome. somehow i can only see that a new value (e.g., rtc_t0) is only generated once i break ... so it behaves quite differently. or is there something else i&amp;#39;m missing?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: timestamping w/o active timer (APP_TIMER_KEEPS_RTC_ACTIVE = 1)</title><link>https://devzone.nordicsemi.com/thread/93475?ContentTypeID=1</link><pubDate>Wed, 26 Jul 2017 09:22:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a4dfe594-3de5-49c6-a7af-c371d38f680c</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;&lt;code&gt;rtc1_start()&lt;/code&gt; will not be called in app_timer before a timer is created. You can bypass this by adding a call to &lt;code&gt;rtc1_start()&lt;/code&gt; at the end of &lt;code&gt;app_timer_init()&lt;/code&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>