<?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>nRF52840 how do I get RTC ticks in multi-link central example</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/39850/nrf52840-how-do-i-get-rtc-ticks-in-multi-link-central-example</link><description>Hi all. I would like to get the current RTC tick when there is an advertisement RX event on multi-link central. I am going to store the advertisements along with a time i.e. how recent the data is. 
 I have added; 
 uint32_t ticks = app_timer_cnt_get</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 29 Oct 2018 10:41:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/39850/nrf52840-how-do-i-get-rtc-ticks-in-multi-link-central-example" /><item><title>RE: nRF52840 how do I get RTC ticks in multi-link central example</title><link>https://devzone.nordicsemi.com/thread/154836?ContentTypeID=1</link><pubDate>Mon, 29 Oct 2018 10:41:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:460de5db-b0bb-4c4e-9416-a3bcef532d0b</guid><dc:creator>Philip</dc:creator><description>&lt;p&gt;Hi Simon.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;No more help needed thanks. I copied the code from the RTC example, and set it to use RTC2 and that worked ok in the end thanks.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Phil&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 how do I get RTC ticks in multi-link central example</title><link>https://devzone.nordicsemi.com/thread/154828?ContentTypeID=1</link><pubDate>Mon, 29 Oct 2018 10:16:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:005c38b6-4efe-4e5a-b7e9-9103cd02829e</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Did you find a sufficient solution, or do you need any more help?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 how do I get RTC ticks in multi-link central example</title><link>https://devzone.nordicsemi.com/thread/154670?ContentTypeID=1</link><pubDate>Fri, 26 Oct 2018 11:51:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d1630354-5807-4537-8048-be2a9d8f9d4a</guid><dc:creator>Philip</dc:creator><description>&lt;p&gt;YES I KNOW obviously, or I wouldn&amp;#39;t be asking a question. I tried to read the error code in the first place, and the system crashes for some reason at APP_ERROR_CHECK(err_code).&lt;/p&gt;
&lt;p&gt;I have setup a new RTC timer now which works fine and ditched the app_timer.&lt;/p&gt;
&lt;p&gt;Thanks HAVE A NICE DAY&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 how do I get RTC ticks in multi-link central example</title><link>https://devzone.nordicsemi.com/thread/154586?ContentTypeID=1</link><pubDate>Fri, 26 Oct 2018 00:10:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e6f85d5-3d27-4074-92e4-2fe25140f1e2</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;That&amp;nbsp;APP_TIMER_DEF() only defines a few variables. You are still missing the calls to app_timer_create().&lt;/p&gt;
&lt;p&gt;Those error codes are supposed to tell you that something is WRONG WITH YOUR CODE.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 how do I get RTC ticks in multi-link central example</title><link>https://devzone.nordicsemi.com/thread/154573?ContentTypeID=1</link><pubDate>Thu, 25 Oct 2018 19:08:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:826441cf-804f-4eb4-b22b-084c4e940012</guid><dc:creator>Philip</dc:creator><description>&lt;p&gt;Thanks. I have registered the timer if this is what you mean;&lt;/p&gt;
&lt;p&gt;APP_TIMER_DEF(adv_timer);&lt;/p&gt;
&lt;p&gt;If I do an APP_ERROR_CHECK on the app_timer_start there is a Fatal system error for some reason, so had to delete that error check. Not sure why since it should return a&amp;nbsp;ret_code_t type&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 how do I get RTC ticks in multi-link central example</title><link>https://devzone.nordicsemi.com/thread/154569?ContentTypeID=1</link><pubDate>Thu, 25 Oct 2018 17:45:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b170cb8-5c3c-4cf5-b2a4-9353de3424c8</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;Check the return value on your app_timer_start() call, you forgot to register your timer.&lt;/p&gt;
&lt;p&gt;APP_TIMER will stop the RTC when there are no timers running, unless APP_TIMER_KEEPS_RTC_ACTIVE is set to nonzero.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>