<?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 2 doesn&amp;#39;t tick in S130</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/17677/timer-2-doesn-t-tick-in-s130</link><description>I&amp;#39;m trying to use a timer with S130, but it doesn&amp;#39;t seem to tick: 
 void timer_event_handler(nrf_timer_event_t event_type, void * p_context) {
	NRF_LOG_INFO(&amp;quot;Timer 1 interrupt\r\n&amp;quot;);
}

const nrf_drv_timer_t timer2 = NRF_DRV_TIMER_INSTANCE(2);
nrf_ppi_channel_t</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 25 Apr 2019 09:51:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/17677/timer-2-doesn-t-tick-in-s130" /><item><title>RE: Timer 2 doesn't tick in S130</title><link>https://devzone.nordicsemi.com/thread/183728?ContentTypeID=1</link><pubDate>Thu, 25 Apr 2019 09:51:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8037ce6d-45de-4a42-bb6b-0e851f43fc3f</guid><dc:creator>Tim</dc:creator><description>&lt;p&gt;Where can we find the exact information per timer? The datasheets do not provide much, except for the registers and the 5 timers available in the nRF52.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timer 2 doesn't tick in S130</title><link>https://devzone.nordicsemi.com/thread/183720?ContentTypeID=1</link><pubDate>Thu, 25 Apr 2019 09:36:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c580c7b-2cd5-4d4f-957b-afb384c2402a</guid><dc:creator>Tim</dc:creator><description>&lt;p&gt;Unfortunately having the same problem over here. Timer0 and timer3 running perfectly fine, but timer2 does not want to generate an interrupt. Configuration is exactly the same, and they are not running at the same time. Changed to timer 4 for the moment.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timer 2 doesn't tick in S130</title><link>https://devzone.nordicsemi.com/thread/68010?ContentTypeID=1</link><pubDate>Mon, 14 Nov 2016 07:46:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b206ebdf-238a-4f95-a974-49751e0a79c1</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Hi, That does not make sense. sd_app_evt_wait will not mask TIMER2 interrupt in anyways. It is designed to exit wait states even if there are any pending interrupts. can you please upload your code with this problem reproducible.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timer 2 doesn't tick in S130</title><link>https://devzone.nordicsemi.com/thread/68009?ContentTypeID=1</link><pubDate>Sun, 13 Nov 2016 20:12:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:097a4ce3-7091-4aa1-b986-ce6aa43c00f5</guid><dc:creator>Leon Loeser</dc:creator><description>&lt;p&gt;I disabled a sd_app_evt_wait() call.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timer 2 doesn't tick in S130</title><link>https://devzone.nordicsemi.com/thread/68008?ContentTypeID=1</link><pubDate>Fri, 11 Nov 2016 12:07:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0040395b-6e50-4566-8167-69953550245d</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;what did you disable? are you going to system off without a wakeup source?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timer 2 doesn't tick in S130</title><link>https://devzone.nordicsemi.com/thread/68007?ContentTypeID=1</link><pubDate>Fri, 11 Nov 2016 12:03:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c89925a-6d4a-441a-86ee-d37a8a9c8201</guid><dc:creator>Leon Loeser</dc:creator><description>&lt;p&gt;Ok, I disabled power management now (sleep mode i think) and the interrupt works now.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timer 2 doesn't tick in S130</title><link>https://devzone.nordicsemi.com/thread/68006?ContentTypeID=1</link><pubDate>Fri, 11 Nov 2016 11:52:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cfba7952-2545-4004-8b4e-2f07cb097e79</guid><dc:creator>Leon Loeser</dc:creator><description>&lt;p&gt;changed it to 16 bit now, but it still isn&amp;#39;t interupting&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timer 2 doesn't tick in S130</title><link>https://devzone.nordicsemi.com/thread/68004?ContentTypeID=1</link><pubDate>Fri, 11 Nov 2016 11:50:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:59202dac-ea04-488d-9c2a-db989bfb2b9e</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;is this nRF51? for it TImer1 and timer2 only supports 16bit mode. So BIT_WIDTH should be 0&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timer 2 doesn't tick in S130</title><link>https://devzone.nordicsemi.com/thread/68005?ContentTypeID=1</link><pubDate>Fri, 11 Nov 2016 11:46:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:40fe3380-11f3-406a-96e7-02bf53df7017</guid><dc:creator>Leon Loeser</dc:creator><description>&lt;p&gt;according to the sdk_config.h bit_width can be 0-3:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;// &amp;lt;o&amp;gt; TIMER_DEFAULT_CONFIG_BIT_WIDTH  - Timer counter bit width
 
// &amp;lt;0=&amp;gt; 16 bit 
// &amp;lt;1=&amp;gt; 8 bit 
// &amp;lt;2=&amp;gt; 24 bit 
// &amp;lt;3=&amp;gt; 32 bit
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timer 2 doesn't tick in S130</title><link>https://devzone.nordicsemi.com/thread/68003?ContentTypeID=1</link><pubDate>Fri, 11 Nov 2016 11:21:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:593136b0-57f6-4bed-92ce-21fc0c977488</guid><dc:creator>Leon Loeser</dc:creator><description>&lt;p&gt;#ifndef TIMER_ENABLED
#define TIMER_ENABLED 1
#endif
#if  TIMER_ENABLED&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#ifndef TIMER_DEFAULT_CONFIG_FREQUENCY
#define TIMER_DEFAULT_CONFIG_FREQUENCY 0
#endif

#ifndef TIMER_DEFAULT_CONFIG_MODE
#define TIMER_DEFAULT_CONFIG_MODE 0
#endif

#ifndef TIMER_DEFAULT_CONFIG_BIT_WIDTH
#define TIMER_DEFAULT_CONFIG_BIT_WIDTH 2
#endif

#ifndef TIMER_DEFAULT_CONFIG_IRQ_PRIORITY
#define TIMER_DEFAULT_CONFIG_IRQ_PRIORITY 3
#endif

#ifndef TIMER2_ENABLED
#define TIMER2_ENABLED 1
#endif
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timer 2 doesn't tick in S130</title><link>https://devzone.nordicsemi.com/thread/68002?ContentTypeID=1</link><pubDate>Fri, 11 Nov 2016 11:19:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:662ecff4-6df5-41da-88c9-0261cbdeb4a4</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;seems all good .. can you check all the values of NRF_DRV_TIMER_DEFAULT_CONFIG in your config file?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>