<?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 bugs?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/20135/app-timer-bugs</link><description>Hi all, 
 i developer a code that : 
 
 press button short switch on one led 
 Press button long switch on two led. 
 
 but sometimes if i press the button a two led switch on, the device made this for few minutes and after reset the device. 
</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 10 May 2017 12:42:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/20135/app-timer-bugs" /><item><title>RE: APP timer bugs?</title><link>https://devzone.nordicsemi.com/thread/78404?ContentTypeID=1</link><pubDate>Wed, 10 May 2017 12:42:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b443f7af-17e8-43c4-a0f7-7e12e3a0ceb9</guid><dc:creator>Tarun</dc:creator><description>&lt;p&gt;I got response from Nordic&amp;#39;s supporter in my personal page.&lt;/p&gt;
&lt;p&gt;As per response, current app_timer library do not work well if any timer timeout is greater than (RTC max overflow/2 = 256 second if prescaler is 0). But it is not documented and also not validated in code.&lt;/p&gt;
&lt;p&gt;I have made my timer timeout to match above statement and now it is working fine.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: APP timer bugs?</title><link>https://devzone.nordicsemi.com/thread/78403?ContentTypeID=1</link><pubDate>Wed, 03 May 2017 04:27:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:53a72333-4caf-4d9b-8247-de9025888d34</guid><dc:creator>Tarun</dc:creator><description>&lt;p&gt;Thanks sir for response.&lt;/p&gt;
&lt;p&gt;So you do not found proper solution for this issue. Anyway, I will try by myself and post here if I found something substantial.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: APP timer bugs?</title><link>https://devzone.nordicsemi.com/thread/78402?ContentTypeID=1</link><pubDate>Tue, 02 May 2017 13:05:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:26feeeb4-475d-4774-b37d-2d0a4efc0c1b</guid><dc:creator>annapalu</dc:creator><description>&lt;p&gt;Hi Tarun,
i have solved my problem removing the timer with a delay of 512 ms, seems that it was the problem.
For the RTC, i read the overflow register and the count register.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: APP timer bugs?</title><link>https://devzone.nordicsemi.com/thread/78401?ContentTypeID=1</link><pubDate>Mon, 01 May 2017 07:32:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:34aae8b5-2d8f-43b5-86e9-b552500e5364</guid><dc:creator>Tarun</dc:creator><description>&lt;p&gt;Hi,
I am facing same issue. Do you able to resolve it??
Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: APP timer bugs?</title><link>https://devzone.nordicsemi.com/thread/78400?ContentTypeID=1</link><pubDate>Thu, 09 Mar 2017 08:59:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6fac73c-2140-418b-bd36-07a56e7d11d7</guid><dc:creator>annapalu</dc:creator><description>&lt;p&gt;Hi jorgen,&lt;/p&gt;
&lt;p&gt;I seen on callback &amp;quot;timeout_handler_exec&amp;quot; of app timer  the timer that will be execute is &amp;quot;Long Press&amp;quot;. seems that this timer expires early. This happens only sometimes. After few minutest the micro go on normally-&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: APP timer bugs?</title><link>https://devzone.nordicsemi.com/thread/78398?ContentTypeID=1</link><pubDate>Wed, 08 Mar 2017 10:25:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e1f5b3f6-959b-427a-9b6b-39d9c4b700c1</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;What is in your callback? Where have you placed the delay? It would be much easier to help you if you could upload your code. If you do not want to post it in public, you can send me a message or &lt;a href="https://www.nordicsemi.com/eng/nordic/mypage"&gt;create a MyPage case&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: APP timer bugs?</title><link>https://devzone.nordicsemi.com/thread/78395?ContentTypeID=1</link><pubDate>Mon, 06 Mar 2017 14:37:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8147fb83-c45a-4bec-be08-810097167d8a</guid><dc:creator>annapalu</dc:creator><description>&lt;p&gt;Unfortunately 582 hours is not sufficient for my application.
I don&amp;#39;t know id without app timer it works, but i change two think:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;add a callback to menage the rtc timer&lt;/li&gt;
&lt;li&gt;add a a nrf_delay_ms (200)  to see the indication of my log on nordic app(nrf_Connect).&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Can be, one of this two think a problem?&lt;/p&gt;
&lt;p&gt;regards,
Anna&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: APP timer bugs?</title><link>https://devzone.nordicsemi.com/thread/78397?ContentTypeID=1</link><pubDate>Mon, 06 Mar 2017 14:26:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:25de1c1b-8069-47f8-ab85-c02b942da95f</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;I don&amp;#39;t see any reason why that code should cause any problems for app_timer. It is only incrementing a variable counting overflows right before the counter would overflow and restarts the counter. However, if you do not need the full resolution of the RTC (~20µs), you can use the PRESCALER to allow it to run for up to 582.542 hours without overflowing (giving you a resolution of 125ms). Is the button presses working as expected if you no not start the app timer?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: APP timer bugs?</title><link>https://devzone.nordicsemi.com/thread/78394?ContentTypeID=1</link><pubDate>Mon, 06 Mar 2017 14:01:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:86bb94f2-8b1a-44cd-b8e1-765d44894576</guid><dc:creator>annapalu</dc:creator><description>&lt;p&gt;I mean that to menage the rtc that is not a Real time counter but it&amp;#39;s a normal timer with 24 bit and after 512 seconds restarts to 0. In my application i need to something that trace the time for log event with ble. I use the advise of this post( &lt;a href="https://devzone.nordicsemi.com/question/115216/rtc1-counter-return-to-0/)"&gt;devzone.nordicsemi.com/.../)&lt;/a&gt; but seems that this create a problem on my application.
I can&amp;#39;t post my code, but it is the same of bsp.c that it&amp;#39;s possible to see in gls example.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: APP timer bugs?</title><link>https://devzone.nordicsemi.com/thread/78393?ContentTypeID=1</link><pubDate>Mon, 06 Mar 2017 13:50:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3001b952-4966-4c73-b7fa-56e3f4dfa4c1</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;What do you mean by &amp;quot;menage of rollup&amp;quot;? Which of the codes in your link did you include in your application?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: APP timer bugs?</title><link>https://devzone.nordicsemi.com/thread/78399?ContentTypeID=1</link><pubDate>Mon, 06 Mar 2017 10:09:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:24c50847-e26d-4110-8d5f-314a387b29c5</guid><dc:creator>annapalu</dc:creator><description>&lt;p&gt;Hi jorgen,
yes i do.&lt;/p&gt;
&lt;p&gt;i use a bsp.c to create a event on press button.
I have noticed this strange behavior when i add this code to know the rtc value of device (&lt;a href="https://devzone.nordicsemi.com/question/115216/rtc1-counter-return-to-0/)"&gt;devzone.nordicsemi.com/.../)&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;maybe the menage of rollup can be a problem for the app_timer?&lt;/p&gt;
&lt;p&gt;thanks,
Anna&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: APP timer bugs?</title><link>https://devzone.nordicsemi.com/thread/78396?ContentTypeID=1</link><pubDate>Fri, 03 Mar 2017 09:57:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c154ae8-2dcf-4d75-b6a7-c305b3dd7b32</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Do you mean that you get a long press event when you short press the button? Could you post your code handling this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>