<?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>working with s132 and app_timer but timing is not always good</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/65492/working-with-s132-and-app_timer-but-timing-is-not-always-good</link><description>hello Nordic 
 
 i am working with nrf52832, sdk 16.0 s132 
 
 1. i see when i use the app_time i have to initialize it using this line of code : 
 
 though i thought and read that the softdevice activates the LFCLK 
 so why do i need to use this lines</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 03 Sep 2020 05:50:06 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/65492/working-with-s132-and-app_timer-but-timing-is-not-always-good" /><item><title>RE: working with s132 and app_timer but timing is not always good</title><link>https://devzone.nordicsemi.com/thread/267729?ContentTypeID=1</link><pubDate>Thu, 03 Sep 2020 05:50:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f8f09b3-6c1e-4b76-a4df-13391b0d9ea1</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Ziv,&lt;/p&gt;
&lt;p&gt;Yes, &lt;span&gt;NRF_SDH_CLOCK_LF_SRC=0 selects the internal RC oscillator. With this clock source you also need use the following settings:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;- NRF_SDH_CLOCK_LF_RC_CTIV=16&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;- NRF_SDH_CLOCK_LF_RC_TEMP_CTIV=2 &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;- NRF_SDH_CLOCK_LF_ACCURACY=1&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: working with s132 and app_timer but timing is not always good</title><link>https://devzone.nordicsemi.com/thread/267625?ContentTypeID=1</link><pubDate>Wed, 02 Sep 2020 12:34:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5282a9b5-775d-44c6-9e6c-0dba75f7d82c</guid><dc:creator>ziv123</dc:creator><description>&lt;p&gt;hi Vidar&lt;/p&gt;
&lt;p&gt;1. the&amp;nbsp;&lt;span&gt;NRF_SDH_CLOCK_LF_SRC is set to -&amp;gt; 0 (if i understand correct it means i am using the nrf52832&amp;#39;s LFCLK)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;and also on the same board i run another app that also had s132 and app_timer and i did not need to add this lines of code (maybe it is done by some other module )&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;2. no there is no other change for the ble pin in the code&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;best regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Ziv&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: working with s132 and app_timer but timing is not always good</title><link>https://devzone.nordicsemi.com/thread/267623?ContentTypeID=1</link><pubDate>Wed, 02 Sep 2020 12:16:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8cbeeac7-9e2b-4ffd-a81f-786920c13416</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;1. As you say, it shouldn&amp;#39;t be necessary to activate the LFCLK as the Softdevice should do that already. Are you testing this on a custom or third-party board? In that case, make sure you have selected an appropriate clock source in sdk_config.h (see&amp;nbsp;NRF_SDH_CLOCK_LF_SRC). Not all boards have the optional 32 KHz crystal mounted.&lt;/p&gt;
&lt;p&gt;2. Is there anything else in your application that might try to control the same LED? The BSP maybe (&lt;span&gt;&lt;a title="BSP indication states" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.0/examples_bsp.html?cp=7_1_3_6_0_0#examples_bsp_states"&gt;BSP indication states&lt;/a&gt;&lt;/span&gt;)?&lt;/p&gt;
&lt;p&gt;3. Scanning will be active 100% of the time if you set SCAN_WINDOW=SCAN_INTERVAL&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>