<?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>Proper way to use long period timer</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/59127/proper-way-to-use-long-period-timer</link><description>Hi teams, 
 During development, I need quite a long period timer for hours. 
 Searching for the subject, I found application timer can only handle few minutes because of 24bit register. 
 Is there other proper way to get longer timer?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 20 Mar 2020 11:33:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/59127/proper-way-to-use-long-period-timer" /><item><title>RE: Proper way to use long period timer</title><link>https://devzone.nordicsemi.com/thread/240839?ContentTypeID=1</link><pubDate>Fri, 20 Mar 2020 11:33:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:670e6ba3-3b50-4a36-ae89-94cef9320260</guid><dc:creator>choehyunho</dc:creator><description>&lt;p&gt;I agree. Now I am reviewing app_timer.c and can find enough informations what I want to get.&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Proper way to use long period timer</title><link>https://devzone.nordicsemi.com/thread/240834?ContentTypeID=1</link><pubDate>Fri, 20 Mar 2020 11:15:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2fb29813-612f-4a78-9521-f795c14f2e9e</guid><dc:creator>Dmitry</dc:creator><description>&lt;p&gt;I think, in your case the easiest way is to split a long interval into a series of shorter ones, every time decreasing a counter that holds remaining time. A single wakeup every few minutes won&amp;#39;t affect battery life time.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Proper way to use long period timer</title><link>https://devzone.nordicsemi.com/thread/240825?ContentTypeID=1</link><pubDate>Fri, 20 Mar 2020 10:49:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:40bf05be-9cd7-447c-9fb2-d7ae282d79c2</guid><dc:creator>choehyunho</dc:creator><description>&lt;p&gt;APP_TIMER_CONFIG_RTC_FREQUENCY with non-zero is not working, as I tried.&lt;/p&gt;
&lt;p&gt;OK. I will try alternatives. Can you give me a link to the references that I can refer to?&lt;/p&gt;
&lt;p&gt;I need some clarification how to be notified when RTC overflow occurs, and etc.&lt;/p&gt;
&lt;p&gt;And, can I use secondary RTC without hardware modification?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Proper way to use long period timer</title><link>https://devzone.nordicsemi.com/thread/240792?ContentTypeID=1</link><pubDate>Fri, 20 Mar 2020 09:52:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f84d9b8c-8001-4eff-afe2-138b7e287a41</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Ok, I see that the mesh models use the app_timer library. If you get static assert, the value you configurated is most likely not compatible with the mesh SDK. Did you try increasing&amp;nbsp;&lt;span&gt;APP_TIMER_CONFIG_RTC_FREQUENCY to 1 or 3?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The other alternatives are to use a second RTC for the long-running timers and configure this with a higher prescaler value, or you can run a shorter repeating app_timer and increment a variable in the handler to keep track of how long it has been running.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Proper way to use long period timer</title><link>https://devzone.nordicsemi.com/thread/240720?ContentTypeID=1</link><pubDate>Thu, 19 Mar 2020 17:46:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:25e003d6-7410-4af4-be8c-eeaeb4001923</guid><dc:creator>choehyunho</dc:creator><description>&lt;p&gt;I couldn&amp;#39;t tested the setting.&lt;/p&gt;
&lt;p&gt;In app_config.h, it already defined as 0, and if I changed it, compiler shows the following error.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;11&amp;gt; Compiling ‘model_common.c’
11&amp;gt; In file included from ../../mesh/core/include/utils.h:46,
11&amp;gt;                  from ../../models/model_spec/common/include/model_common.h:42,
11&amp;gt;                  from C:\Users\firebird\Documents\SEGGER Embedded Studio for ARM Projects\nRF52\nRF5_SDK_for_Mesh\models\model_spec\common\src\model_common.c:38:
11&amp;gt; ../../../nRF5_SDK/components/libraries/util/app_util.h:219:41: error: static assertion failed: &amp;quot;unspecified message&amp;quot;
11&amp;gt; ../../../nRF5_SDK/components/libraries/util/app_util.h:242:62: note: in definition of macro &amp;#39;_SELECT_ASSERT_FUNC&amp;#39;
11&amp;gt; ../../../nRF5_SDK/components/libraries/util/app_util.h:259:25: note: in expansion of macro &amp;#39;STATIC_ASSERT_SIMPLE&amp;#39;
11&amp;gt; ../../mesh/core/api/nrf_mesh_assert.h:99:37: note: in expansion of macro &amp;#39;STATIC_ASSERT&amp;#39;
11&amp;gt; C:\Users\firebird\Documents\SEGGER Embedded Studio for ARM Projects\nRF52\nRF5_SDK_for_Mesh\models\model_spec\common\src\model_common.c:66:1: note: in expansion of macro &amp;#39;NRF_MESH_STATIC_ASSERT&amp;#39;
Build failed&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Proper way to use long period timer</title><link>https://devzone.nordicsemi.com/thread/240716?ContentTypeID=1</link><pubDate>Thu, 19 Mar 2020 16:55:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:96ce2bce-837c-4b5b-9e8b-ad9de8366eea</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Increasing&amp;nbsp;&lt;span&gt;APP_TIMER_CONFIG_RTC_FREQUENCY&amp;nbsp;will reduce the resolution of the timer, and thus also the accuracy. Other than that, I do not know of any other impacts of changing this config.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Proper way to use long period timer</title><link>https://devzone.nordicsemi.com/thread/240707?ContentTypeID=1</link><pubDate>Thu, 19 Mar 2020 16:12:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f8f4ad80-d431-4ed4-bb61-cbffcd158a33</guid><dc:creator>choehyunho</dc:creator><description>&lt;p&gt;OK, I will test this setting.&lt;/p&gt;
&lt;p&gt;But, is there any possibilty to impact on the other functionalities?&lt;/p&gt;
&lt;p&gt;Currently I am using Mesh SDK 4.0.0 for developing.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Proper way to use long period timer</title><link>https://devzone.nordicsemi.com/thread/239914?ContentTypeID=1</link><pubDate>Mon, 16 Mar 2020 09:11:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0de2a630-f1c9-4565-ab13-3269244333be</guid><dc:creator>Dmitry</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;you can change&amp;nbsp;APP_TIMER_CONFIG_RTC_FREQUENCY in sdk_config.h (for example, value 31 gives you 1024 ticks/sec and maximum time about 4.5 hours).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>