<?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>Setting up the app_timer with Keil and NRF52810</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/53635/setting-up-the-app_timer-with-keil-and-nrf52810</link><description>Hello, 
 My goals is to start two functions every second. So I made a function that starts those two functions and am now trying to use the app_timer library to let this happen. Thus far I&amp;#39;ve set it up like this: 
 
 Where POLLING_RATE = 1000 
 After</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 28 Oct 2019 09:51:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/53635/setting-up-the-app_timer-with-keil-and-nrf52810" /><item><title>RE: Setting up the app_timer with Keil and NRF52810</title><link>https://devzone.nordicsemi.com/thread/217028?ContentTypeID=1</link><pubDate>Mon, 28 Oct 2019 09:51:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd3db8ec-df7a-45ab-887f-0cd174f48f51</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;You don&amp;#39;t need to access the driver RTC APIs, the app timer library does that. Try to remove the RTC driver initialization and manually start the 32K clock at the beginning of main()&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;int main()
{
    NRF_CLOCK-&amp;gt;TASKS_LFCLKSTART = 1;
    while (NRF_CLOCK-&amp;gt;EVENTS_LFCLKSTARTED == 0);
    
    ...
    &lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting up the app_timer with Keil and NRF52810</title><link>https://devzone.nordicsemi.com/thread/217024?ContentTypeID=1</link><pubDate>Mon, 28 Oct 2019 09:39:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ac30e46a-f63b-4930-864e-0b0778ceeeca</guid><dc:creator>trevortjes</dc:creator><description>&lt;p&gt;Also I added the checks and both app_timer_create and app_timer_start return NRF_SUCCESS&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting up the app_timer with Keil and NRF52810</title><link>https://devzone.nordicsemi.com/thread/217023?ContentTypeID=1</link><pubDate>Mon, 28 Oct 2019 09:35:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d164b355-cccb-4e9b-a7da-9eb2ca859469</guid><dc:creator>trevortjes</dc:creator><description>&lt;p&gt;I have turned on &amp;quot;nrfx_rtc&amp;quot; and &amp;quot;nrf_drv_rtc&amp;quot; and the &amp;quot;RTC1&amp;quot; instance for both and set the frequency to &amp;quot;32768&amp;quot; because I have no proper clue which one to use. I have also set the &amp;quot;nrfx_timer&amp;quot;, &amp;quot;nrf_drv_timer&amp;quot; and &amp;quot;app_timer&amp;quot; running at the same frequency because still I don&amp;#39;t know which one I really have to use. But still no succes.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting up the app_timer with Keil and NRF52810</title><link>https://devzone.nordicsemi.com/thread/217015?ContentTypeID=1</link><pubDate>Mon, 28 Oct 2019 09:14:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d2ce4b9-751d-4ae2-a89f-8a8ce890e09b</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The RTC used by app timer will not run unless the 32KHz clock source has been started beforehand. Do you know if you if that clock source it&amp;#39;s running in your app? The Softdevice will start the clock during initialization if you are working on a BLE example.&lt;/p&gt;
&lt;p&gt;Also, you should&amp;nbsp;check the return value from&amp;nbsp;&amp;nbsp;app_timer_create() and&amp;nbsp;app_timer_start() as we do in our examples to make sure they return NRF_SUCCESS.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>