<?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>How can we enable app_timer2 with sdk 17.1.0?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/100798/how-can-we-enable-app_timer2-with-sdk-17-1-0</link><description>Hi, 
 We are using the custome board based on nrf52832 with sdk 17.1.0. 
 We faced with a problem which is not working app_timer. 
 Our custom board is not use external xtal(32.768khz). For your refernece, we attached a part of schematic as the following</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 19 Jun 2023 07:33:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/100798/how-can-we-enable-app_timer2-with-sdk-17-1-0" /><item><title>RE: How can we enable app_timer2 with sdk 17.1.0?</title><link>https://devzone.nordicsemi.com/thread/431676?ContentTypeID=1</link><pubDate>Mon, 19 Jun 2023 07:33:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d76d55e-9051-4082-8c27-ecb913497085</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi Inchul,&lt;/p&gt;
&lt;p&gt;Thank you for catching that I didn&amp;#39;t update the CTIV and TEMP_CTIV options. To provide a reference for future readers of this post, those configs are discussed here:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/86078/case-about-parameter-nrf_sdh_clock_lf_rc_ctiv-and-nrf_sdh_clock_lf_rc_temp_ctiv"&gt;case about parameter NRF_SDH_CLOCK_LF_RC_CTIV and NRF_SDH_CLOCK_LF_RC_TEMP_CTIV&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/77569/nrf_sdh_clock_lf_rc_ctiv-and-nrf_sdh_clock_lf_rc_temp_ctiv-value-deep-understanding"&gt;NRF_SDH_CLOCK_LF_RC_CTIV and NRF_SDH_CLOCK_LF_RC_TEMP_CTIV Value deep understanding&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can we enable app_timer2 with sdk 17.1.0?</title><link>https://devzone.nordicsemi.com/thread/431637?ContentTypeID=1</link><pubDate>Mon, 19 Jun 2023 03:56:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe2e054f-b524-4ba4-b483-91c00d7f096e</guid><dc:creator>Inchul Lee</dc:creator><description>&lt;p&gt;Hi Hieu,&lt;/p&gt;
&lt;p&gt;First of all, we&amp;nbsp; ommited that have to initialize SoftDevice. So we had initialized it.&lt;/p&gt;
&lt;p&gt;We comfirmed to work app_timer with yuour example but modified sdk_config.h as the following.&lt;/p&gt;
&lt;p&gt;------------------------------------------------------------------------------------------------------------------------------&lt;/p&gt;
&lt;p&gt;//==========================================================&lt;/p&gt;
&lt;p&gt;// &amp;lt;h&amp;gt; Clock - SoftDevice clock configuration&lt;/p&gt;
&lt;p&gt;//==========================================================&lt;br /&gt;// &amp;lt;o&amp;gt; NRF_SDH_CLOCK_LF_SRC - SoftDevice clock source.&lt;br /&gt; &lt;br /&gt;// &amp;lt;0=&amp;gt; NRF_CLOCK_LF_SRC_RC &lt;br /&gt;// &amp;lt;1=&amp;gt; NRF_CLOCK_LF_SRC_XTAL &lt;br /&gt;// &amp;lt;2=&amp;gt; NRF_CLOCK_LF_SRC_SYNTH&lt;/p&gt;
&lt;p&gt;#ifndef NRF_SDH_CLOCK_LF_SRC&lt;br /&gt;#define NRF_SDH_CLOCK_LF_SRC 0 //_LIC : 1 -&amp;gt; 0&lt;br /&gt;#endif&lt;/p&gt;
&lt;p&gt;// &amp;lt;o&amp;gt; NRF_SDH_CLOCK_LF_RC_CTIV - SoftDevice calibration timer interval. &lt;br /&gt;#ifndef NRF_SDH_CLOCK_LF_RC_CTIV&lt;br /&gt;#define NRF_SDH_CLOCK_LF_RC_CTIV 16 //_LIC : 0 -&amp;gt; 16&lt;br /&gt;#endif&lt;/p&gt;
&lt;p&gt;// &amp;lt;o&amp;gt; NRF_SDH_CLOCK_LF_RC_TEMP_CTIV - SoftDevice calibration timer interval under constant temperature. &lt;br /&gt;// &amp;lt;i&amp;gt; How often (in number of calibration intervals) the RC oscillator shall be calibrated&lt;br /&gt;// &amp;lt;i&amp;gt; if the temperature has not changed.&lt;/p&gt;
&lt;p&gt;#ifndef NRF_SDH_CLOCK_LF_RC_TEMP_CTIV&lt;br /&gt;#define NRF_SDH_CLOCK_LF_RC_TEMP_CTIV 2 //_LIC : 0 -&amp;gt; 2&lt;br /&gt;#endif&lt;/p&gt;
&lt;p&gt;&lt;span&gt;------------------------------------------------------------------------------------------------------------------------------&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;We apply parameters which were in sdk 15.2. We think that XTAL on custom board is not working incorrect.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;Inchul Lee&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can we enable app_timer2 with sdk 17.1.0?</title><link>https://devzone.nordicsemi.com/thread/431233?ContentTypeID=1</link><pubDate>Thu, 15 Jun 2023 11:44:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b1b5978-918b-4940-96e6-66ba92393ac6</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi Inchul,&lt;/p&gt;
&lt;p&gt;I had &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/97302/app_timer2-library-new-bug"&gt;a case where a move to app_timer2 caused issue&lt;/a&gt; before. However,&amp;nbsp;in that one, the issue only happened when the timer is&amp;nbsp;used in a very particular way; and the issue was that the timer worked incorrectly, rather than not worked at all.&lt;/p&gt;
&lt;p&gt;Here is my quick attempt at getting app_timer2 to work with LFRC in the ble_app_blinky_c example.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/c309597_5F00_app_5F00_timer_5F00_230615_5F00_01.zip"&gt;devzone.nordicsemi.com/.../c309597_5F00_app_5F00_timer_5F00_230615_5F00_01.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can we enable app_timer2 with sdk 17.1.0?</title><link>https://devzone.nordicsemi.com/thread/431129?ContentTypeID=1</link><pubDate>Thu, 15 Jun 2023 00:48:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ec2b96a-8c04-4c5b-b15a-f300011e713f</guid><dc:creator>Inchul Lee</dc:creator><description>&lt;p&gt;Hi Hieu,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you for your reply. As your suggestion, we tried NRFX_CLOCK_CONFIG_LF_SRC configuration in sdk_config.h to 0(RC). But app_timer is still not woking. So we tried other parameter reconfiguration.&lt;/p&gt;
&lt;p&gt;For your information, this schematic was workiong in SDK 15.2. Now we are using source &amp;quot;nRF5_SDK_17.1.0_ddde560\examples\ble_peripheral\ble_app_blinky_c&amp;quot; to test app_timer.&lt;/p&gt;
&lt;p&gt;We attached sdk_config.h which is testing app_timer_v2. Please check. If possible, would you give ours the sample example source code which is using internal RC?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Inchul Lee&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/0042.sdk_5F00_config.h"&gt;devzone.nordicsemi.com/.../0042.sdk_5F00_config.h&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can we enable app_timer2 with sdk 17.1.0?</title><link>https://devzone.nordicsemi.com/thread/431044?ContentTypeID=1</link><pubDate>Wed, 14 Jun 2023 13:52:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a1f5aef2-f73f-4f6e-b009-6098b01d32bc</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi Inchul,&lt;/p&gt;
&lt;p&gt;In the absence of more details, I assume that your app_timer is not working due to the lack of external crystal for LFCLK source, and also a missing reconfiguration of LFCLK source to internal RC oscillator.&lt;/p&gt;
&lt;p&gt;If that assumption is true, please&amp;nbsp;try reconfiguring the&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/group__nrfx__clock__config.html#ga74072e13e7918ad40d5c9568192b9699"&gt;NRFX_CLOCK_CONFIG_LF_SRC&lt;/a&gt;&amp;nbsp;configuration in sdk_config.h to 0 (RC).&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>