<?xml-stylesheet type="text/xsl" href="https://test-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/"><channel><title>nRF5 SDK Application Timer Tutorial</title><link>/guides/short-range-guides/b/software-development-kit/posts/application-timer-tutorial</link><description>2018-11-23: Updated tutorial to cover SDK version 15.2.
2019-02-08: Improved example project (SDK 15.2) and updated instructions accordingly.
Introduction
Scope
The following topics will be included in this tutorial:

Configuration of the application</description><dc:language>en-US</dc:language><generator>Telligent Community 13 Non-Production</generator><item><title>RE: nRF5 SDK Application Timer Tutorial</title><link>https://test-devzone.nordicsemi.com/guides/short-range-guides/b/software-development-kit/posts/application-timer-tutorial</link><pubDate>Wed, 15 Jun 2022 10:17:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:920a70ac-5426-4213-8817-35025fee5ded</guid><dc:creator>user113599</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Looking to implement &amp;quot;one shot timer&amp;quot; , however, not sure does it work on the SDK 17.1.0 , because it explicitly points to the 15.2 ?&amp;nbsp;&lt;/p&gt;&lt;img src="https://test-devzone.nordicsemi.com/aggbug?PostID=1176&amp;AppID=14&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: nRF5 SDK Application Timer Tutorial</title><link>https://test-devzone.nordicsemi.com/guides/short-range-guides/b/software-development-kit/posts/application-timer-tutorial</link><pubDate>Wed, 18 May 2022 08:56:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:920a70ac-5426-4213-8817-35025fee5ded</guid><dc:creator>user101087</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Nice Tutorial !&lt;/p&gt;&lt;img src="https://test-devzone.nordicsemi.com/aggbug?PostID=1176&amp;AppID=14&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: nRF5 SDK Application Timer Tutorial</title><link>https://test-devzone.nordicsemi.com/guides/short-range-guides/b/software-development-kit/posts/application-timer-tutorial</link><pubDate>Fri, 04 Feb 2022 09:18:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:920a70ac-5426-4213-8817-35025fee5ded</guid><dc:creator>user91908</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Do you have state machine example with this timer ? thanks&lt;/p&gt;&lt;img src="https://test-devzone.nordicsemi.com/aggbug?PostID=1176&amp;AppID=14&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: nRF5 SDK Application Timer Tutorial</title><link>https://test-devzone.nordicsemi.com/guides/short-range-guides/b/software-development-kit/posts/application-timer-tutorial</link><pubDate>Thu, 13 May 2021 10:26:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:920a70ac-5426-4213-8817-35025fee5ded</guid><dc:creator>user104333</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Hi, I&amp;#39;m trying to run the code on Debug mode insted of Release mode but i get an assert on line 378 on main code. all code and library are original and i&amp;#39;m using sdk15.2.0 with nRF52832 dk. Am i doing something wrong?&amp;nbsp;&lt;/p&gt;&lt;img src="https://test-devzone.nordicsemi.com/aggbug?PostID=1176&amp;AppID=14&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: nRF5 SDK Application Timer Tutorial</title><link>https://test-devzone.nordicsemi.com/guides/short-range-guides/b/software-development-kit/posts/application-timer-tutorial</link><pubDate>Tue, 19 May 2020 12:44:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:920a70ac-5426-4213-8817-35025fee5ded</guid><dc:creator>user90084</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;very helpfull :)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/p&gt;
&lt;p&gt;few questions:&lt;/p&gt;
&lt;p&gt;1. when working with single shot do we need to stop time ? or is there a way to un instence the timer if it is used only once in the program&lt;/p&gt;
&lt;p&gt;2. what will happen if a timer is started again by interrupt for example when it is not yet finished its first count .. will the timer handler be called 2 times or only once ?.&lt;/p&gt;&lt;img src="https://test-devzone.nordicsemi.com/aggbug?PostID=1176&amp;AppID=14&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: nRF5 SDK Application Timer Tutorial</title><link>https://test-devzone.nordicsemi.com/guides/short-range-guides/b/software-development-kit/posts/application-timer-tutorial</link><pubDate>Tue, 19 May 2020 12:40:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:920a70ac-5426-4213-8817-35025fee5ded</guid><dc:creator>user90084</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;very helpful .. thanks&amp;nbsp;&lt;/p&gt;&lt;img src="https://test-devzone.nordicsemi.com/aggbug?PostID=1176&amp;AppID=14&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: nRF5 SDK Application Timer Tutorial</title><link>https://test-devzone.nordicsemi.com/guides/short-range-guides/b/software-development-kit/posts/application-timer-tutorial</link><pubDate>Sun, 16 Jun 2019 04:23:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:920a70ac-5426-4213-8817-35025fee5ded</guid><dc:creator>user79289</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Hi,&lt;br /&gt;Is there a version of this page that works with SDK 15.3.0? I am getting errors with the new SDK on the nRF52DK (pca10040), both using the Segger embedded studio and the armgcc makefile.&lt;br /&gt;To be as clean as possible, I also switched to your github project &lt;a rel="nofollow" target="_blank" href="https://github.com/NordicPlayground/nrf5-application-timer-tutorial"&gt;github.com/.../nrf5-application-timer-tutorial&lt;/a&gt; and switched to the completed branch.&lt;br /&gt;Both from the IDE and command line, I get:&lt;br /&gt;arm-none-eabi-gcc: error: /opt/nRF5_SDK_15.3.0/modules/nrfx/drivers/src/nrfx_power_clock.c: No such file or directory&lt;br /&gt;Indeed, SDK 15.3.0 does not appear to include this file.&lt;/p&gt;
&lt;p&gt;Removing the corresponding line from the Makefile makes the code run through and I am even seeminly able to flash the device, but for some reason the devkit still runs the previous code. The IDE, in contrast, complains that some softdevice is missing.&lt;/p&gt;
&lt;p&gt;Would it be possible to update this page and the github timer tutorial project to work with the current SDK 15.3.0?&lt;br /&gt;Thanks a lot&lt;/p&gt;&lt;img src="https://test-devzone.nordicsemi.com/aggbug?PostID=1176&amp;AppID=14&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: nRF5 SDK Application Timer Tutorial</title><link>https://test-devzone.nordicsemi.com/guides/short-range-guides/b/software-development-kit/posts/application-timer-tutorial</link><pubDate>Mon, 27 May 2019 09:30:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:920a70ac-5426-4213-8817-35025fee5ded</guid><dc:creator>user26803</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;All links in this tutorial point to DocLib which does not exist anymore. Could this be fixed please?&lt;/p&gt;&lt;img src="https://test-devzone.nordicsemi.com/aggbug?PostID=1176&amp;AppID=14&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: nRF5 SDK Application Timer Tutorial</title><link>https://test-devzone.nordicsemi.com/guides/short-range-guides/b/software-development-kit/posts/application-timer-tutorial</link><pubDate>Wed, 08 May 2019 12:29:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:920a70ac-5426-4213-8817-35025fee5ded</guid><dc:creator>user79531</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have followed the tutorial in order to create a repetitive timer, but my code crashes at function &amp;quot;nrf_drv_clock_lfclk_request&amp;quot; when the macro &amp;quot;CRITICAL_REGION_EXIT();&amp;quot; is executed. Specifically when &amp;quot;app_util_enable_irq();&amp;quot; function is executed.&lt;/p&gt;
&lt;p&gt;Any idea about what can be the issue plese?&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;img src="https://test-devzone.nordicsemi.com/aggbug?PostID=1176&amp;AppID=14&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: nRF5 SDK Application Timer Tutorial</title><link>https://test-devzone.nordicsemi.com/guides/short-range-guides/b/software-development-kit/posts/application-timer-tutorial</link><pubDate>Wed, 08 May 2019 12:25:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:920a70ac-5426-4213-8817-35025fee5ded</guid><dc:creator>user79531</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;img src="https://test-devzone.nordicsemi.com/aggbug?PostID=1176&amp;AppID=14&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: nRF5 SDK Application Timer Tutorial</title><link>https://test-devzone.nordicsemi.com/guides/short-range-guides/b/software-development-kit/posts/application-timer-tutorial</link><pubDate>Fri, 01 Feb 2019 21:04:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:920a70ac-5426-4213-8817-35025fee5ded</guid><dc:creator>user76349</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;i dont know if anyone is even reading what we write here but here is what i found out about my problem...&lt;/p&gt;
&lt;p&gt;the functions that are throwing undefined error:&lt;br /&gt;undefined reference to `nrf_drv_clock_init&amp;#39;&lt;br /&gt;undefined reference to `nrf_drv_clock_lfclk_request&amp;#39;&lt;br /&gt;are both defined inside the nrf_drv_clock.c file... when you open that file on line 44 it says:&lt;br /&gt;&amp;quot;#if NRF_MODULE_ENABLED(NRF_CLOCK)&amp;quot; and everything after that line is grayed out and disabled... this means that NRF_CLOCK module is not enabled... downloaded the example provided here &amp;quot;Example project&amp;nbsp;&lt;a href="https://github.com/andreas-kf/application_timer_tutorial"&gt;application_timer_tutorial&lt;/a&gt; (SDK 15.2)&amp;quot; and its working, i copied the whole content of the sdk_config.h of the example into my sdk_config.h file in my project, but then i got other errors... &lt;br /&gt;can you please provide us with complete instructions or explanation how and which configurations do we need to include in our sdk_config.h file to be able to run the Application Timer successfully?&lt;/p&gt;&lt;img src="https://test-devzone.nordicsemi.com/aggbug?PostID=1176&amp;AppID=14&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: nRF5 SDK Application Timer Tutorial</title><link>https://test-devzone.nordicsemi.com/guides/short-range-guides/b/software-development-kit/posts/application-timer-tutorial</link><pubDate>Thu, 31 Jan 2019 08:10:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:920a70ac-5426-4213-8817-35025fee5ded</guid><dc:creator>user76349</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;i am using SDK15.2, followed all the steps explained in &amp;quot;&lt;span&gt;&lt;strong&gt;SDK 15.2 version: The Application Timer&lt;/strong&gt;&lt;/span&gt;&amp;quot; part of this tutorial and when i try to compile i get this errors:&lt;br /&gt;Output/twi_scanner_pca10040 Debug/Obj/main.o: In function `lfclk_request&amp;#39;:&lt;br /&gt;undefined reference to `nrf_drv_clock_init&amp;#39;&lt;br /&gt;undefined reference to `nrf_drv_clock_lfclk_request&amp;#39;&lt;br /&gt;&lt;br /&gt;I am using modified &amp;quot;twi_scanner_pca10040&amp;quot; example from the SDK...&lt;/p&gt;&lt;img src="https://test-devzone.nordicsemi.com/aggbug?PostID=1176&amp;AppID=14&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: nRF5 SDK Application Timer Tutorial</title><link>https://test-devzone.nordicsemi.com/guides/short-range-guides/b/software-development-kit/posts/application-timer-tutorial</link><pubDate>Thu, 24 Jan 2019 19:07:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:920a70ac-5426-4213-8817-35025fee5ded</guid><dc:creator>user67761</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;hey! I&amp;#39;m trying to start my app with a simple timer and blink, without SoftDevice, sdk11.&amp;nbsp;&lt;/p&gt;&lt;img src="https://test-devzone.nordicsemi.com/aggbug?PostID=1176&amp;AppID=14&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: nRF5 SDK Application Timer Tutorial</title><link>https://test-devzone.nordicsemi.com/guides/short-range-guides/b/software-development-kit/posts/application-timer-tutorial</link><pubDate>Mon, 19 Nov 2018 16:19:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:920a70ac-5426-4213-8817-35025fee5ded</guid><dc:creator>user69537</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Hi, I tried with FreeRTOS + softblink example. Don&amp;#39;t seem to work.&lt;/p&gt;&lt;img src="https://test-devzone.nordicsemi.com/aggbug?PostID=1176&amp;AppID=14&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: nRF5 SDK Application Timer Tutorial</title><link>https://test-devzone.nordicsemi.com/guides/short-range-guides/b/software-development-kit/posts/application-timer-tutorial</link><pubDate>Wed, 18 Jul 2018 07:59:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:920a70ac-5426-4213-8817-35025fee5ded</guid><dc:creator>user70972</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m new to this and I want to know how to run this tutorial in Segger embedded studio?&lt;/p&gt;&lt;img src="https://test-devzone.nordicsemi.com/aggbug?PostID=1176&amp;AppID=14&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item></channel></rss>