<?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>app_timer stops when BLE advertising times out</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/47732/app_timer-stops-when-ble-advertising-times-out</link><description>Hi, 
 I work on the nRF52840 DK with the ble_app_uart example and I want to add a timer using app_timer api, 
 in order to create RTC time/date timestamps for my sensors raw data. 
 
 As a first step, I followed the application timer tutorial and I created</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 28 May 2019 12:10:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/47732/app_timer-stops-when-ble-advertising-times-out" /><item><title>RE: app_timer stops when BLE advertising times out</title><link>https://devzone.nordicsemi.com/thread/189627?ContentTypeID=1</link><pubDate>Tue, 28 May 2019 12:10:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6df614a0-8df1-4044-a2af-754d59b88925</guid><dc:creator>masterLee</dc:creator><description>&lt;p&gt;Ok I will follow your notes.&lt;/p&gt;
&lt;p&gt;Thank you for your support!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: app_timer stops when BLE advertising times out</title><link>https://devzone.nordicsemi.com/thread/189601?ContentTypeID=1</link><pubDate>Tue, 28 May 2019 11:25:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8372c20d-d817-42d4-a133-d4462452fc06</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;The app_timer library should not be affected by disabling or enabling the softdevice, but I would recommend that you use the clock driver in the SDK (nrf_drv_clock) to request LFCLK. This driver will make sure that the LFCLK should stay enabled it the softdevice state change.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: app_timer stops when BLE advertising times out</title><link>https://devzone.nordicsemi.com/thread/189581?ContentTypeID=1</link><pubDate>Tue, 28 May 2019 10:55:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e952d448-d01a-462e-b5b2-7fe43f8e388b</guid><dc:creator>masterLee</dc:creator><description>&lt;p&gt;Ok now I get it.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Possible Scenario:&amp;nbsp; Assume that I have the softdevice disabled&amp;nbsp; and I create an app timer instance in my code and enable it (with clock driver for example), the RTC will start counting.&lt;/p&gt;
&lt;p&gt;What would happen if at some point I decide to enable the softdevice (i.e with button press) while the app timer instance is running? What will happen to the app_timer instance? Will it reset its counting, stop, or something else?&lt;/p&gt;
&lt;p&gt;Will the softdevice start normally or not?&lt;/p&gt;
&lt;p&gt;Is there something else that I have to be aware of?&lt;/p&gt;
&lt;p&gt;Thank you for your help&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: app_timer stops when BLE advertising times out</title><link>https://devzone.nordicsemi.com/thread/189380?ContentTypeID=1</link><pubDate>Mon, 27 May 2019 14:37:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f7da1ab8-b8b2-43da-9b44-bfdb208a5202</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;No, it is not possible to run the softdevice off another clock source, there is only one LFCLK in the chip. Just avoid entering system OFF mode, and make sure that you have a app_timer running to not stop the RTC. LFCLK is always running when softdevice is enabled, but if you disable it in your application at anytime, will have to request the LFCLK from &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/hardware_driver_clock.html?cp=5_1_2_0_0"&gt;clock driver&lt;/a&gt; or directly in the &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/clock.html?cp=3_1_0_18#frontpage_clock"&gt;CLOCK peripheral&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: app_timer stops when BLE advertising times out</title><link>https://devzone.nordicsemi.com/thread/189369?ContentTypeID=1</link><pubDate>Mon, 27 May 2019 14:14:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7c0768b8-b245-4c81-80e3-7c86260881b3</guid><dc:creator>masterLee</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Is it possible to isolate the app_timer functionality from the advertising process?&lt;/p&gt;
&lt;p&gt;I want the app_timer to be independent of the softdevice . Is it possible to run the softdevice on another clock source and leave the LFCLK for the RTC only?&lt;/p&gt;
&lt;p&gt;I want to use the app_timer as real time counter that never stops in order to create timestamps for my sensor samples.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: app_timer stops when BLE advertising times out</title><link>https://devzone.nordicsemi.com/thread/189278?ContentTypeID=1</link><pubDate>Mon, 27 May 2019 11:09:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:788efa1f-20b5-4200-85a4-785ce4b98efc</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The default behavior in many of the SDK examples is to go to System OFF sleep mode when advertising enters idle state. See function sleep_mode_enter() and&amp;nbsp;BLE_ADV_EVT_IDLE in&amp;nbsp;on_adv_evt().&lt;/p&gt;
&lt;p&gt;In System OFF mode, all clock sources will be stopped and the chip can only wake up by &lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/power.html?cp=3_0_0_4_2_2#unique_1227688711"&gt;these sources&lt;/a&gt;. Wake up from System OFF mode will trigger a chip reset.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>