<?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 interrupt</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/72477/timer-interrupt</link><description>hi, 
 i am working on timer example in peripheral folder. i am including this example in ble_uart example in ble_peripheral folder. i am getting error &amp;quot; &amp;#39;NRFX_TIMER0_INST_IDX&amp;#39; undeclared here (not in a function); did you mean &amp;#39;NRFX_TIMER_INSTANCE&amp;#39;? &amp;quot;</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 08 Mar 2021 12:48:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/72477/timer-interrupt" /><item><title>RE: timer interrupt</title><link>https://devzone.nordicsemi.com/thread/298368?ContentTypeID=1</link><pubDate>Mon, 08 Mar 2021 12:48:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:421f2ec4-5056-47ad-9d5b-22343c82c43e</guid><dc:creator>enukic</dc:creator><description>&lt;p&gt;Could you share the main file, so I can take a closer look into this, please?&lt;/p&gt;
&lt;p&gt;Otherwise, make sure you have done the following things:&lt;/p&gt;
&lt;p&gt;- Include paths to the nrfx_timer library in the project settings&lt;/p&gt;
&lt;p&gt;- Add nrfx_timer.c to your project files&lt;/p&gt;
&lt;p&gt;- #include nrfx_timer.h in the main file&lt;/p&gt;
&lt;p&gt;- Declare TIMER instance:&amp;nbsp;const nrf_drv_timer_t TIMER_INST_EXAMPLE = NRF_DRV_TIMER_INSTANCE(0);&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: timer interrupt</title><link>https://devzone.nordicsemi.com/thread/298348?ContentTypeID=1</link><pubDate>Mon, 08 Mar 2021 11:53:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ace7540-9ff5-4897-9533-94ed42d75d9b</guid><dc:creator>harrys</dc:creator><description>&lt;p&gt;yes i am using TIMER1 same error is there. i am including time example in ble_uart_example in ble_peripheral&amp;nbsp;folder.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: timer interrupt</title><link>https://devzone.nordicsemi.com/thread/298279?ContentTypeID=1</link><pubDate>Mon, 08 Mar 2021 09:18:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a3687efe-d39b-485c-9216-6dc119d5bd03</guid><dc:creator>enukic</dc:creator><description>&lt;p&gt;As I sad, SoftDevice is using the TIMER0, you should use another available TIMER, e.g. TIMER1.&lt;/p&gt;
&lt;p&gt;Could you try to use TIMER1 for your example, please?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: timer interrupt</title><link>https://devzone.nordicsemi.com/thread/298274?ContentTypeID=1</link><pubDate>Mon, 08 Mar 2021 08:57:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:916665ea-17f2-479c-bbda-7735478b21f6</guid><dc:creator>harrys</dc:creator><description>&lt;p&gt;hi,&lt;/p&gt;
&lt;p&gt;i already enabled&amp;nbsp;&lt;span&gt;NRFX_TIMER0_ENABLED&amp;nbsp; in sdk_config.h. i have also enabled &amp;quot;TIMER periperal driver - legacy layer&amp;quot;.now error is &amp;quot;&amp;nbsp;undefined reference to `nrfx_timer_init&amp;quot;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: timer interrupt</title><link>https://devzone.nordicsemi.com/thread/298249?ContentTypeID=1</link><pubDate>Mon, 08 Mar 2021 07:19:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:702b0617-48b9-4270-9715-b88a8d349651</guid><dc:creator>enukic</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Don&amp;#39;t forget to enable timer in sdk_config.h file:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;#define NRFX_TIMER0_ENABLED 1&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Since your app is using SoftDevice,&amp;nbsp;it uses TIMER0, so you should use another&amp;nbsp;available&amp;nbsp; TIMER instance.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Emir&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>