<?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>timer</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/33744/timer</link><description>Hi. 
 Im trying to implement the timer example from the sdk15 in my own project but i get a error i dont understand. 
 &amp;#39;NRFX_TIMER0_INST_IDX&amp;#39; undeclared here (not in a function) in nrfx_timer.h 
 
 Is there any better way to implement a timer? I want</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 25 Apr 2018 07:57:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/33744/timer" /><item><title>RE: timer</title><link>https://devzone.nordicsemi.com/thread/129683?ContentTypeID=1</link><pubDate>Wed, 25 Apr 2018 07:57:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc775d84-53e8-4ed4-9fe1-d2f3d63456d7</guid><dc:creator>WilliamJangren</dc:creator><description>&lt;p&gt;I used the example in&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/30465/nrf52832-timer-interrupt-not-working"&gt;THIS&lt;/a&gt; post insted and it works well.&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: timer</title><link>https://devzone.nordicsemi.com/thread/129577?ContentTypeID=1</link><pubDate>Tue, 24 Apr 2018 12:57:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d5082158-82f1-4932-8cd3-fa16255c5e05</guid><dc:creator>WilliamJangren</dc:creator><description>&lt;p&gt;Thanks for answering!&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;I still get the same error even though i tried to enable both TIMER0 and TIMER1. But if you think the tutorial is a beter way mabay i should go with that. The thing is that i have already tried to implement the tutorial to my example and i get an error that says that APP_TIMER_INIT() is missing.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/7674.Capture2.PNG" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: timer</title><link>https://devzone.nordicsemi.com/thread/129557?ContentTypeID=1</link><pubDate>Tue, 24 Apr 2018 12:11:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6722fe87-10fc-45de-bff1-13b88ce7737a</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you can, I&amp;#39;d recommend that you use the app_timer instead:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/tutorials/b/software-development-kit/posts/application-timer-tutorial"&gt;https://devzone.nordicsemi.com/tutorials/b/software-development-kit/posts/application-timer-tutorial&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Over to your problem. I suspect that your timer instance is not enabled in your sdk_config.h:&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;#define NRFX_TIMER0_ENABLED 1&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;If you are using the Softdevice, it uses TIMER0, so you&amp;#39;ll need to use another available timer instance.&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;Best regards,&lt;/div&gt;
&lt;div&gt;Håkon&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>