<?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>Callback function attached to timer not running</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/75132/callback-function-attached-to-timer-not-running</link><description>Hi, 
 I am developing based on the mesh dimming example. 
 I want to use a timer for some status LEDs and some other things. I am trying to do it using timer 0, but the callback isn&amp;#39;t ever called. 
 I ran the timer example, and it worked fine, but I cannot</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 18 May 2021 14:09:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/75132/callback-function-attached-to-timer-not-running" /><item><title>RE: Callback function attached to timer not running</title><link>https://devzone.nordicsemi.com/thread/310203?ContentTypeID=1</link><pubDate>Tue, 18 May 2021 14:09:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8ddee537-7701-4979-919a-056be53f9575</guid><dc:creator>Eric Busch</dc:creator><description>&lt;p&gt;Thank you for your help, I resolved this. After switching to the other timers and a different channel, I realized the clear mask was for a different compare channel.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Callback function attached to timer not running</title><link>https://devzone.nordicsemi.com/thread/310101?ContentTypeID=1</link><pubDate>Tue, 18 May 2021 10:31:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff1015b5-ac40-4c18-8173-77c00f07a27d</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Looking at your code snippet again I see I overlooked that you are not calling&amp;nbsp;nrfx_timer_compare_int_enable(). Without it, you will not get interrupts (only events that can be used with PPI).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Callback function attached to timer not running</title><link>https://devzone.nordicsemi.com/thread/309838?ContentTypeID=1</link><pubDate>Fri, 14 May 2021 14:37:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:013fd15a-abb5-4e32-9a68-7e2c70913a71</guid><dc:creator>Eric Busch</dc:creator><description>&lt;p&gt;I updated the code and the sdk_config&amp;nbsp;to use timer 3 and 4, but neither of them changed anything, the problem persists. I have gotten no warnings regarding the usage of timers.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Callback function attached to timer not running</title><link>https://devzone.nordicsemi.com/thread/309706?ContentTypeID=1</link><pubDate>Fri, 14 May 2021 07:27:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8390983b-3947-4447-90db-20f6e22b258f</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;This will not work in this case as TIMER0 is reserved by the SoftDevice. You should get an assert if using it while the SoftDevice is active, and if you use it in the timeslots when the BLE mesh is active you will also experience problems. As this is also used by the mesh stack I would expect warnings during build time as well? In any case, you need to&amp;nbsp;pick an available timer, so something other than TIMER0.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>