<?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>Avoid SDK modules who need app timers</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/8414/avoid-sdk-modules-who-need-app-timers</link><description>Hello, 
 I&amp;#39;m developing an application that will run on a board without externel oscillator for RTC1 and it means no app timers support.
I started from ANCS example and I see that it uses following modules that needs app timers : 
 
 BSP for buttons</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 13 Apr 2018 05:45:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/8414/avoid-sdk-modules-who-need-app-timers" /><item><title>RE: Avoid SDK modules who need app timers</title><link>https://devzone.nordicsemi.com/thread/128152?ContentTypeID=1</link><pubDate>Fri, 13 Apr 2018 05:45:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:291e1697-e88c-4467-85c4-ab222f9ea799</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;When softdevice is enabled using it will use the RTC0 interrupts for time keeping with highest priority. So your application timers will be affected with it since your application timers are running with lower priority than softdevice timer (RTC0)&lt;/p&gt;
&lt;p&gt;What you see is normal&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Avoid SDK modules who need app timers</title><link>https://devzone.nordicsemi.com/thread/127276?ContentTypeID=1</link><pubDate>Sat, 07 Apr 2018 04:26:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c552be3b-368d-478b-bc69-cfd7755613c0</guid><dc:creator>Sumanth Murali</dc:creator><description>&lt;p&gt;Starting LF clock using nrf_drv_lf_clk_request() instead of SOFTDEVICE_HANDLER_INIT changes the timing of the system. Interrupts come in at a different rate. Any idea why this could be happening?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Avoid SDK modules who need app timers</title><link>https://devzone.nordicsemi.com/thread/30569?ContentTypeID=1</link><pubDate>Mon, 30 Jan 2017 16:55:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:36245c60-3c98-4ae3-badd-02b3751b28de</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;if the app_timer was using the same LFCLK as softdevice will be using, then there will be no problem. But if you ask the softdevice to switch to other (for example from RC to XTAL) then the switch might cause a temporary glitch in the app_timer accuracy&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Avoid SDK modules who need app timers</title><link>https://devzone.nordicsemi.com/thread/30568?ContentTypeID=1</link><pubDate>Fri, 27 Jan 2017 08:39:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5aca1cde-0611-445e-b59a-f6755bf0ea2c</guid><dc:creator>bloobird0</dc:creator><description>&lt;p&gt;Hello,
what is the softdevice is present but not activated, LFCLK started manually like described above and later SOFTDEVICE_HANDLER_INITis called. Is there any probleme there that the SoftDevice tries to start a clock that is already in use by app_timer?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Avoid SDK modules who need app timers</title><link>https://devzone.nordicsemi.com/thread/30567?ContentTypeID=1</link><pubDate>Tue, 28 Jul 2015 13:43:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a41a9b7-1420-4da1-8e76-03cb4a3f48a5</guid><dc:creator>ppatierno</dc:creator><description>&lt;p&gt;Great to know Aryan !&lt;/p&gt;
&lt;p&gt;I&amp;#39;m using SoftDevice S130 and I was scaried that without external oscillator (on our target board for a wereable) I couldn&amp;#39;t use the great app timers feature. Now I know that I can use them for my project.&lt;/p&gt;
&lt;p&gt;Thanks,
Paolo&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Avoid SDK modules who need app timers</title><link>https://devzone.nordicsemi.com/thread/30566?ContentTypeID=1</link><pubDate>Tue, 28 Jul 2015 13:42:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2eb0fce9-85fe-4772-92c2-6805a5ec5ad2</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;copy paste from reference manual about the options you have to choose from for LFCLK&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;LFCLK clock controller
As illustrated in Figure 15 the system supports the following low frequency clock sources:
• LFCLK crystal oscillator: 32.768 kHz crystal oscillator
• LFCLK RC oscillator: 32.768 kHz RC oscillator
• LFCLK synthesizer: 32.768 kHz synthesized from HFCLK
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;If you do not have the first one on your product, you can choose the others. Read about clocks before you make major changes to your code.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Avoid SDK modules who need app timers</title><link>https://devzone.nordicsemi.com/thread/30565?ContentTypeID=1</link><pubDate>Tue, 28 Jul 2015 13:36:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:58a7be78-5058-4928-af1b-fdb1b5db6254</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Normally with softdevice, you select the LFCLK when you call SOFTDEVICE_HANDLER_INIT&lt;/p&gt;
&lt;p&gt;In your case you call for example&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;SOFTDEVICE_HANDLER_INIT(NRF_CLOCK_LFCLKSRC_RC_250_PPM_4000MS_CALIBRATION, NULL);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Then softdevice will start the LFCLK for your application. If your application does not use softdevice then you can do this in your app like below&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;NRF_CLOCK-&amp;gt;LFCLKSRC            = (CLOCK_LFCLKSRC_SRC_RC &amp;lt;&amp;lt; CLOCK_LFCLKSRC_SRC_Pos);
NRF_CLOCK-&amp;gt;EVENTS_LFCLKSTARTED = 0;
NRF_CLOCK-&amp;gt;TASKS_LFCLKSTART    = 1;

while (NRF_CLOCK-&amp;gt;EVENTS_LFCLKSTARTED == 0)
{
    // Do nothing.
}
    
APP_TIMER_INIT(APP_TIMER_PRESCALER, APP_TIMER_MAX_TIMERS, APP_TIMER_OP_QUEUE_SIZE, NULL);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;And the APP_TIMER will use internal oscillator, you just need to select and start the LFCLK once&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Avoid SDK modules who need app timers</title><link>https://devzone.nordicsemi.com/thread/30564?ContentTypeID=1</link><pubDate>Tue, 28 Jul 2015 13:25:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:25141bc6-41d8-4861-a29e-af2bf442d033</guid><dc:creator>ppatierno</dc:creator><description>&lt;p&gt;Hi Aryan,
I&amp;#39;m new to the Nordic platform so some features are new to me. Do you mean that I can use the app timers without external oscillator for RTC1 so that I can avoid to change the entire application ?
Can you give me more tips or reference about that ?&lt;/p&gt;
&lt;p&gt;Thanks,
Paolo.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Avoid SDK modules who need app timers</title><link>https://devzone.nordicsemi.com/thread/30563?ContentTypeID=1</link><pubDate>Tue, 28 Jul 2015 13:09:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fcb2592f-1121-4786-adb2-06b4b77228b2</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Why are you not using internal RC LFCLK?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>