<?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>understanding app_timer functionality</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/16717/understanding-app_timer-functionality</link><description>I am using app_timer to measure the time taken to execute a function. I am using ble_app_template code. As mentioned in the documentation, app_timer needs to initialize the LFCLK. It doesn&amp;#39;t need to initialize a LFCLK if softdevice is used. But in the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 03 Oct 2016 09:37:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/16717/understanding-app_timer-functionality" /><item><title>RE: understanding app_timer functionality</title><link>https://devzone.nordicsemi.com/thread/63937?ContentTypeID=1</link><pubDate>Mon, 03 Oct 2016 09:37:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3adeff43-4757-43db-8aca-0aef477666d2</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;Error code 0x3202 is &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s130.api.v2.0.1/group___b_l_e___e_r_r_o_r_s___g_a_p.html#ga3eda228736d6c1dcbcf9aba2bd059068"&gt;BLE_ERROR_GAP_INVALID_BLE_ADDR&lt;/a&gt; (NRF_GAP_ERR_BASE + 0x0002 = NRF_ERROR_STK_BASE_NUM + 0x0200 + 0x002 = 0x3000 + 0x0200 + 0x0002). And as the description says: &amp;quot;The upper two bits of the address do not correspond to the specified address type.&amp;quot;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: understanding app_timer functionality</title><link>https://devzone.nordicsemi.com/thread/63938?ContentTypeID=1</link><pubDate>Sat, 01 Oct 2016 13:16:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1498839a-b54b-4e93-9006-524aef167736</guid><dc:creator>Amit Chahar</dc:creator><description>&lt;p&gt;Regarding 4th point, I tried to debug and I am getting error code : 0x00003202
I get this error while setting the RPA : sd_ble_gap_address_set()
I mentioned in this post, how I am setting the RPA : &lt;a href="https://devzone.nordicsemi.com/question/96756/setting-resolvable-private-address/"&gt;setting RPA&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: understanding app_timer functionality</title><link>https://devzone.nordicsemi.com/thread/63936?ContentTypeID=1</link><pubDate>Wed, 28 Sep 2016 14:33:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cdf2798e-ebf2-4c75-a4bd-2dd1401a79d9</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;The app_timer library will not check if the LFCLK is running. You will be able to initialize and create a timer without having started the LFCLK. You are also able to call the start and stop functions also, but the RTC will not start counting as it has no clock source running.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;If you call timers_init() after &lt;code&gt;buttons_leds_init(..)&lt;/code&gt;, then &lt;code&gt;bsp_init(..)&lt;/code&gt; inside &lt;code&gt;buttons_leds_init(..)&lt;/code&gt; will return &lt;code&gt;NRF_ERROR_INVALID_STATE&lt;/code&gt; as app_timer module is not initialized. Since you have not defined &lt;code&gt;DEBUG&lt;/code&gt; globally, your application will restart when calling &lt;code&gt;APP_ERROR_CHECK(err_code)&lt;/code&gt;. See &lt;a href="https://devzone.nordicsemi.com/question/60125/my-device-is-freezing-and-restarting/"&gt;here&lt;/a&gt; for more info about why your application is resetting.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The minimum advertising interval is 20ms (see &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s130.api.v2.0.1/group___b_l_e___g_a_p___a_d_v___i_n_t_e_r_v_a_l_s.html?resultof=%22%62%6c%65%5f%67%61%70%5f%61%64%76%5f%69%6e%74%65%72%76%61%6c%5f%6d%69%6e%22%20"&gt;BLE_GAP_ADV_INTERVAL_MIN&lt;/a&gt; and &lt;a href="https://devzone.nordicsemi.com/question/22064/ble-advertisment-interval-minimum-size/?answer=22146#post-id-22146"&gt;here&lt;/a&gt;), so you will get an error (and reset) if you try to set it lower than that.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;This output also indicates that you reset. Probably you get an error when you try to set the address. Define DEBUG in your preprocessor symbols, go into debug and see where the error come from and which error code it is (&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s130.api.v2.0.1/group__nrf__error.html?resultof=%22%6e%72%66%5f%65%72%72%6f%72%5f%62%75%73%79%22%20"&gt;here&lt;/a&gt; is a list of SoftDevice global error codes). You can put a breakpoint in the while loop in &lt;code&gt;app_error_save_and_stop(..)&lt;/code&gt; in &lt;code&gt;app_error.c&lt;/code&gt; to get this information (after the code hits the breakpoint).&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Ole&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>