<?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>[bugreport] app_timer_stop() resets RTC1 counter when APP_TIMER_KEEPS_RTC_ACTIVE is set</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/29144/bugreport-app_timer_stop-resets-rtc1-counter-when-app_timer_keeps_rtc_active-is-set</link><description>My setup is as follows:
nRF5 SDK 13.1 with s132 5.1.0
nRF52832_AA
Keil 5.25pre 
 I use RTC1 counter for timestamping along with app_timer timers. My get_timestamp() function retrieves it&amp;#39;s time value by calling app_timer_cnt_get() and then uses app_timer_cnt_diff_compute</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 28 Aug 2019 13:18:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/29144/bugreport-app_timer_stop-resets-rtc1-counter-when-app_timer_keeps_rtc_active-is-set" /><item><title>RE: [bugreport] app_timer_stop() resets RTC1 counter when APP_TIMER_KEEPS_RTC_ACTIVE is set</title><link>https://devzone.nordicsemi.com/thread/206640?ContentTypeID=1</link><pubDate>Wed, 28 Aug 2019 13:18:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:75391533-3e72-4ec9-8817-68c41811e0b4</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Nick,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This doesn&amp;#39;t seem normal.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you use a logic analyzer/Oscilloscope to check the pattern of the CPU active time ? You can toggle and LED&amp;nbsp;near the sleep command to know when it&amp;#39;s up.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you check other example which use the app timer, for example ble_app_hrs, do you see the same problem ?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [bugreport] app_timer_stop() resets RTC1 counter when APP_TIMER_KEEPS_RTC_ACTIVE is set</title><link>https://devzone.nordicsemi.com/thread/205543?ContentTypeID=1</link><pubDate>Thu, 22 Aug 2019 11:02:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:49a58a31-98bf-4e7a-a7ee-af5ec96ee410</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Nick,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m really sorry for the inconvenience.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You may hit the same issue as &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/35538/timer-v2-in-bootloader-sdk15"&gt;this one.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;It&amp;#39;s a limitation of app_timer, is it possible to enable the app timer after the softdevice, or stop the timer (to avoid any interrupt) when you enable the softdevice ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Since app_timer2 is not intensively tested I would suggest you follow Markku suggestion to keep a dummy app_timer running all the time.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [bugreport] app_timer_stop() resets RTC1 counter when APP_TIMER_KEEPS_RTC_ACTIVE is set</title><link>https://devzone.nordicsemi.com/thread/205437?ContentTypeID=1</link><pubDate>Thu, 22 Aug 2019 06:39:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:06287df7-cbf9-4b16-bdc5-c8a71c837b42</guid><dc:creator>mrono</dc:creator><description>[quote userid="78841" url="~/f/nordic-q-a/29144/bugreport-app_timer_stop-resets-rtc1-counter-when-app_timer_keeps_rtc_active-is-set/205264"]The actual requirement is to get a reliable timestamp with BLE stack running, an event scheduler and sleep/wake power-modes invoked.&amp;nbsp; Fundamental requirement really,[/quote]
&lt;p&gt;I struggled with the same situation, though I&amp;#39;m using SDK 15.2. The easiest workaround is to make sure you always have at least one app_timer running. So even if you don&amp;#39;t need any app_timers, keep a dummy one running in the background.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [bugreport] app_timer_stop() resets RTC1 counter when APP_TIMER_KEEPS_RTC_ACTIVE is set</title><link>https://devzone.nordicsemi.com/thread/205264?ContentTypeID=1</link><pubDate>Wed, 21 Aug 2019 10:21:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62b924dc-7f8f-4671-a826-ebba2807793e</guid><dc:creator>NickT</dc:creator><description>&lt;p&gt;Thanks for the help so far.&lt;/p&gt;
&lt;p&gt;We have been gradually breaking our product as I fixed each of the inconsistencies between app_timer2 and app_timer.&amp;nbsp; We have a BLE stack enabled, and a scheduler.&amp;nbsp; Using app_timer2 and app_timer_rtc from your zip file earlier with a modification to avoid the use of NRFX,&amp;nbsp; we get error 4097 from nrf_sdh_enable_request if we initialize the BLE after the timers, the code locks up if we initialize the BLE before the app_timers and continually restarts if we initialise scheduler before the timers.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Obviously, since we cannot do in-circuit debugging with a BLE stack, this whole thing is working &amp;quot;blind&amp;quot;.&lt;/p&gt;
&lt;p&gt;As I have one more week in which to try to fix this, I plan to revert this branch and start over.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;&lt;/span&gt;&lt;span style="font-family:inherit;"&gt;The actual requirement is to get a reliable timestamp with BLE stack running, an event scheduler and sleep/wake power-modes invoked.&amp;nbsp; Fundamental requirement really,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Any help appreciated.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [bugreport] app_timer_stop() resets RTC1 counter when APP_TIMER_KEEPS_RTC_ACTIVE is set</title><link>https://devzone.nordicsemi.com/thread/205043?ContentTypeID=1</link><pubDate>Tue, 20 Aug 2019 12:58:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:70373498-5ca4-4455-9886-e8e6a652a3e5</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Nick,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I&amp;#39;m sorry for the confusion. It was an old case and I&amp;nbsp;wasn&amp;#39;t following it earlier.&lt;/p&gt;
&lt;p&gt;I had a look at the implementation we have now on SDK v15.3 and it turned out that we had little development on this over the last 2 years.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So the official app timer implementation we have in SDK v15.3 remains unchanged compare to what on SDK v13.x/14.x&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The new implementation, app_timer2.c, was introduced but remains in experimental. This means it can be used as an example code but it&amp;#39;s not extensively tested.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The solution for now is either:&lt;/p&gt;
&lt;p&gt;- Adding a dummy timer to keep the RTC running&lt;/p&gt;
&lt;p&gt;- Use app_timer2 which requries you to copy all the dependencies (nrfx drivers) into SDK v14.2&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I will check internally with R&amp;amp;D if we can do anything.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [bugreport] app_timer_stop() resets RTC1 counter when APP_TIMER_KEEPS_RTC_ACTIVE is set</title><link>https://devzone.nordicsemi.com/thread/204544?ContentTypeID=1</link><pubDate>Fri, 16 Aug 2019 14:23:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1aa1eac9-7d9e-4ebd-a87d-7d38d0867a5b</guid><dc:creator>NickT</dc:creator><description>&lt;p&gt;HungBui - Thanks for the rapid response.&lt;br /&gt;sorry about this, but I do not completely understand what you mean&lt;/p&gt;
&lt;p&gt;The function timer_list_remove() in&amp;nbsp;apptimer.c file in SDK15 looks identical to the one in 14.2 -&amp;nbsp; so I don&amp;#39;t know how porting SDK15 timer library helps.&lt;/p&gt;
&lt;p&gt;The apptimer2.c file in my copy of nRF5_SDK_15.3.0_59ac345 is in a subdirectory called &amp;quot;experimental.&amp;quot;&lt;/p&gt;
&lt;p&gt;Please clarify - am I supposed to replace apptimer.c in my project source list with apptimer2.c from experimental subdirectory in 15.3?&lt;/p&gt;
&lt;p&gt;Are there any other files need replacing at the same time?&lt;/p&gt;
&lt;p&gt;Are there other things required such as #define APP_TIMER_V2 and if so, where to define that?&lt;/p&gt;
&lt;p&gt;What side effects of this &amp;quot;experimental&amp;quot;&amp;nbsp; version are known since release?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Edit: addition - trying to put the experimental version from 15.3&amp;nbsp; back into my 14.2 project falls over heavily on the lack of nrfx.&amp;nbsp; Please advise before I get too deep into this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [bugreport] app_timer_stop() resets RTC1 counter when APP_TIMER_KEEPS_RTC_ACTIVE is set</title><link>https://devzone.nordicsemi.com/thread/204421?ContentTypeID=1</link><pubDate>Fri, 16 Aug 2019 08:43:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:22bdbd4e-f2a1-4668-9080-3a591cf5250b</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Nick,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can either take the official app timer in SDK v15.x and back port it to SDK v14.2 or you can use apptime2 that I provided earlier. You would need to replace the whole file, use it as a different module to the original app timer.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [bugreport] app_timer_stop() resets RTC1 counter when APP_TIMER_KEEPS_RTC_ACTIVE is set</title><link>https://devzone.nordicsemi.com/thread/204334?ContentTypeID=1</link><pubDate>Thu, 15 Aug 2019 13:52:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bbd6ffb5-ff5d-4519-a2a2-a9f9dd19f4df</guid><dc:creator>NickT</dc:creator><description>&lt;p&gt;Realise this is old hat, but was there a workaround within SDK_14.2.0_17b948a ? (we are stuck with this older version for our product)&lt;br /&gt;The supplied file app_timer2 is significantly different from app_timer..c and I am not sure from the above discussion whether to replace the whole file or just a few lines&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [bugreport] app_timer_stop() resets RTC1 counter when APP_TIMER_KEEPS_RTC_ACTIVE is set</title><link>https://devzone.nordicsemi.com/thread/115802?ContentTypeID=1</link><pubDate>Tue, 23 Jan 2018 15:22:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:afa2cac1-fc52-4d9d-99f0-997a8fd17a91</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Glad to hear it fixed the problem. Unfortunately we can&amp;#39;t talk about timeline here but it shouldn&amp;#39;t take too long to be released. I would say 1 2 months.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [bugreport] app_timer_stop() resets RTC1 counter when APP_TIMER_KEEPS_RTC_ACTIVE is set</title><link>https://devzone.nordicsemi.com/thread/115795?ContentTypeID=1</link><pubDate>Mon, 22 Jan 2018 13:48:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:479db05c-361e-4ef6-86db-9b74f7a05d8f</guid><dc:creator>Keton</dc:creator><description>&lt;p&gt;@hungbui the code you&amp;#39;ve provided solves the problem. Thanks for providing support. as for nrfx this looks very promising for integration with RTOS I&amp;#39;m doing for another project. Do you have any rough estimate when SDK15 will be out so I can try SDK libraries which are using it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [bugreport] app_timer_stop() resets RTC1 counter when APP_TIMER_KEEPS_RTC_ACTIVE is set</title><link>https://devzone.nordicsemi.com/thread/115800?ContentTypeID=1</link><pubDate>Fri, 12 Jan 2018 12:23:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d996c0ba-6209-4c57-9ab0-d1b81ccc1258</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;nrfx is something coming with SDK v15. You can have a look at the driver &lt;a href="https://github.com/NordicSemiconductor/nrfx"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The modification you added seems fine. Sortlist can be taken from SDK v14.2, it&amp;#39;s fine. Please let us know if there is any issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [bugreport] app_timer_stop() resets RTC1 counter when APP_TIMER_KEEPS_RTC_ACTIVE is set</title><link>https://devzone.nordicsemi.com/thread/115796?ContentTypeID=1</link><pubDate>Fri, 12 Jan 2018 10:24:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:89c77e8d-1a03-462b-b730-44cd2efcbaf1</guid><dc:creator>Keton</dc:creator><description>&lt;p&gt;@hungbui I see that app_timer2 requires nrf_sortlist module which is not included in SDK 13.1. Should I use SDK14.2 one or will you provide SDK15 variant?&lt;/p&gt;
&lt;p&gt;EDIT: also &lt;code&gt;nrfx.h&lt;/code&gt; file is missing both from 13.1 and 14.2
EDIT2:&lt;/p&gt;
&lt;p&gt;since &lt;code&gt;nrfx.h&lt;/code&gt; is missing I&amp;#39;ve had to patch &lt;code&gt;app_timer_rtc.c&lt;/code&gt; and enable &lt;code&gt;nrf_drv_clock&lt;/code&gt;. Now my &lt;code&gt;drv_rtc_init()&lt;/code&gt; and  &lt;code&gt;drv_rtc_uninit()&lt;/code&gt; look like this:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;ret_code_t drv_rtc_init(drv_rtc_config_t const * p_config)
{
    ret_code_t err_code = nrf_drv_clock_init();

    if (err_code != NRF_SUCCESS)
    {
        return err_code;
    }

    nrf_drv_clock_lfclk_request(NULL);
    m_irq_func = p_config-&amp;gt;irq_func;
    nrf_rtc_prescaler_set(NRF_RTC1, p_config-&amp;gt;prescaler);
    NVIC_SetPriority(RTC1_IRQn, p_config-&amp;gt;irq_priority);
    NVIC_EnableIRQ(RTC1_IRQn);
    return NRF_SUCCESS;
}

void drv_rtc_uninit(void)
{
    NVIC_DisableIRQ(RTC1_IRQn);
    drv_rtc_stop();
    nrf_drv_clock_lfclk_release();
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Could you please check if that&amp;#39;s correct approach or maybe I should adapt &lt;code&gt;rtc1_init() / uninit&lt;/code&gt; functions?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [bugreport] app_timer_stop() resets RTC1 counter when APP_TIMER_KEEPS_RTC_ACTIVE is set</title><link>https://devzone.nordicsemi.com/thread/115799?ContentTypeID=1</link><pubDate>Fri, 12 Jan 2018 10:04:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1036ae9f-0e00-4132-998c-979b77d614c1</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Keton,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m terribly sorry for the delay. I did send your request to our developers. But as I was afraid of we can&amp;#39;t run a thorough test on the workaround and even though it looked fine we were not completely sure if there wasn&amp;#39;t any corner case that can crash the timer. And as you reported, it crashed.&lt;/p&gt;
&lt;p&gt;Our suggestion is that you can use our new implementation. It still in experimental phase but passed all our internal tests, and will come officially in SDK v15:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/app_5F00_timer2.zip"&gt;app_timer2.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The API is the same, but you may need to add some define for the log into sdk_config.h:&lt;/p&gt;
&lt;p&gt;APP_TIMER_CONFIG_LOG_ENABLED, APP_TIMER_CONFIG_LOG_LEVEL , APP_TIMER_CONFIG_INFO_COLOR , APP_TIMER_CONFIG_DEBUG_COLOR&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [bugreport] app_timer_stop() resets RTC1 counter when APP_TIMER_KEEPS_RTC_ACTIVE is set</title><link>https://devzone.nordicsemi.com/thread/115801?ContentTypeID=1</link><pubDate>Thu, 11 Jan 2018 18:03:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:335dadce-ad70-48c8-b6fe-a3992bd2aef6</guid><dc:creator>Keton</dc:creator><description>&lt;p&gt;@hungbui any updates on this? My quick fix has negative side effects - timers stop working after application is active for a few hours (maybe rtc counter rollover breaks things). If you aren&amp;#39;t going to propose a fix just let me know so I can start implementing my own timer library.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [bugreport] app_timer_stop() resets RTC1 counter when APP_TIMER_KEEPS_RTC_ACTIVE is set</title><link>https://devzone.nordicsemi.com/thread/115798?ContentTypeID=1</link><pubDate>Fri, 22 Dec 2017 08:58:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0a636bbc-e608-4bc7-b760-10d4753a47a5</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;I understand. We will try to get back to you as soon as possible.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [bugreport] app_timer_stop() resets RTC1 counter when APP_TIMER_KEEPS_RTC_ACTIVE is set</title><link>https://devzone.nordicsemi.com/thread/115794?ContentTypeID=1</link><pubDate>Thu, 21 Dec 2017 17:57:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:96a475f5-f299-42b3-b9f6-20048ed42a97</guid><dc:creator>Keton</dc:creator><description>&lt;p&gt;As a temporary workaround it&amp;#39;s fine but for the release I&amp;#39;m afraid it won&amp;#39;t do.&lt;/p&gt;
&lt;p&gt;Per safety standards we must be compatible with such timer is considered a &amp;#39;dead code&amp;#39; and should be removed.
The software module which uses my timestamp function for debouncing and tracking time between interrupt events is used as a library outside of our development team.&lt;/p&gt;
&lt;p&gt;It&amp;#39;s very likely that upstream developers will simply omit this timer either by mistake or thinking that it shouldn&amp;#39;t be there since it does nothing. SDK patch which makes &lt;code&gt;app_timer_cnt_get()&lt;/code&gt; robust would be a much better solution.&lt;/p&gt;
&lt;p&gt;I understand that is&amp;#39;s holiday time but I&amp;#39;d really appreciate if someone could take a look at my patch when Christmas break ends.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [bugreport] app_timer_stop() resets RTC1 counter when APP_TIMER_KEEPS_RTC_ACTIVE is set</title><link>https://devzone.nordicsemi.com/thread/115797?ContentTypeID=1</link><pubDate>Thu, 21 Dec 2017 09:56:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc678299-5db3-43ed-9a01-ec54499489de</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Keton,
We are sorry that we are on reduced staff now due to Xmas vacation, we can&amp;#39;t do thorough test on your workaround. But would keeping a timer running all the time cause any draw back to you ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [bugreport] app_timer_stop() resets RTC1 counter when APP_TIMER_KEEPS_RTC_ACTIVE is set</title><link>https://devzone.nordicsemi.com/thread/115793?ContentTypeID=1</link><pubDate>Tue, 19 Dec 2017 10:53:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:53a482b9-5087-411f-83b0-f4af3bcadb2a</guid><dc:creator>Keton</dc:creator><description>&lt;p&gt;Great, but this project cannot be migrated to unreleased yet SDK15. We are near the end of our deployment window and can&amp;#39;t make any changes. Could you please verify my fix or propose a better one?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [bugreport] app_timer_stop() resets RTC1 counter when APP_TIMER_KEEPS_RTC_ACTIVE is set</title><link>https://devzone.nordicsemi.com/thread/115792?ContentTypeID=1</link><pubDate>Mon, 18 Dec 2017 10:03:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d6ada85-9885-4069-9d40-85ab27940c89</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The SDK team is aware of the vulnerability, but they haven&amp;#39;t looked thoroughly into it because they have been working on an entirely new implementation of the library. The new implementation is scheduled to be included in SDK 15.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [bugreport] app_timer_stop() resets RTC1 counter when APP_TIMER_KEEPS_RTC_ACTIVE is set</title><link>https://devzone.nordicsemi.com/thread/115791?ContentTypeID=1</link><pubDate>Fri, 15 Dec 2017 19:13:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b998e7a1-773f-4fab-8a30-a94029e83ca0</guid><dc:creator>paul</dc:creator><description>&lt;p&gt;I also encountered this issue today and found the same problematic block of code that resets the timer.  I&amp;#39;ve already modified the SDK13.1 app_timer code with &lt;a href="https://devzone.nordicsemi.com/question/159630/timestamping-wo-active-timer-app_timer_keeps_rtc_active-1/"&gt;the change mentioned in this question&lt;/a&gt;, and I&amp;#39;m hesitant to add another hack.  Thinking its safer to use an always running timer instead of APP_TIMER_KEEPS_RTC_ACTIVE=1.&lt;/p&gt;
&lt;p&gt;@Nordic, any thoughts here?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>