<?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 Example Issue</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/27156/timer-example-issue</link><description>I&amp;#39;m building a new application based on the no softdevice template example. I pulled in the code from the UART BLE example to redirect printf to the serial interface and that works. Next I wanted to add a timer so I copied the timer example but the timing</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 28 Nov 2017 13:55:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/27156/timer-example-issue" /><item><title>RE: Timer Example Issue</title><link>https://devzone.nordicsemi.com/thread/106948?ContentTypeID=1</link><pubDate>Tue, 28 Nov 2017 13:55:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1bb67bac-fcec-4219-8ad8-7bd858776924</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;Yes, that would make sense. Good to hear that you figured it out!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timer Example Issue</title><link>https://devzone.nordicsemi.com/thread/106949?ContentTypeID=1</link><pubDate>Tue, 28 Nov 2017 13:53:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:199ddb2a-7baf-45cf-bc87-881e58560de3</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;Hi Rishi, good for you for figuring out the peripheral example problem. It should be possible to use either Timer 1 or Timer 2 when using the softdevice, as &lt;a href="https://devzone.nordicsemi.com/question/568/timer-configuration-with-softdevice/"&gt;this case answer explains&lt;/a&gt;. Have you taken a look at the &lt;a href="https://devzone.nordicsemi.com/tutorials/19/"&gt;application timer tutorial&lt;/a&gt;? This might be helpful. Let me take a closer look and get back to you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timer Example Issue</title><link>https://devzone.nordicsemi.com/thread/106953?ContentTypeID=1</link><pubDate>Mon, 27 Nov 2017 11:47:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1587f206-57b3-4658-901f-0ba87da970dc</guid><dc:creator>Rishi</dc:creator><description>&lt;p&gt;Hey Bjorn,
I figured out using timers with softdevice as well. Apparently, the issue was due to the unavailability of LFCLK on my custom board. I created a custom board file and set the clock source to be synthesised from HFCLK. Works well.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timer Example Issue</title><link>https://devzone.nordicsemi.com/thread/106952?ContentTypeID=1</link><pubDate>Fri, 24 Nov 2017 06:32:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30bed76b-c1ee-493d-b332-83b3cd2734d4</guid><dc:creator>Rishi</dc:creator><description>&lt;p&gt;I figured out the peripheral example issue from the discussion &lt;a href="https://devzone.nordicsemi.com/question/39692/unable-to-run-timer1-with-s110/"&gt;here&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The problem persistes in example containing softdevice&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timer Example Issue</title><link>https://devzone.nordicsemi.com/thread/106951?ContentTypeID=1</link><pubDate>Fri, 24 Nov 2017 05:39:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9e3b37c4-185e-47ea-a4b7-708e07a10523</guid><dc:creator>Rishi</dc:creator><description>&lt;p&gt;I am facing a similar issue but with SDK-12.2.0. Considering only timer example in peripheral directory, the example runs perfectly fine if run with timer 0. However, if I configure the example to use timer 1 or timer 2, it does not work as observed with timer 0. This is just an observation.&lt;/p&gt;
&lt;p&gt;The main problem is in BLE_Peripheral examples. I am able to initialize timer 2 and run the code. But if I initialize timer 1, with similar configuration, I get an NRF_ERROR_INVALID_STATE on calling nrf_drv_timer_init();&lt;/p&gt;
&lt;p&gt;Any insights?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timer Example Issue</title><link>https://devzone.nordicsemi.com/thread/106946?ContentTypeID=1</link><pubDate>Mon, 09 Oct 2017 09:15:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fae5234d-ac33-434c-aa29-84b13a937513</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;Hi Spizzak. I tried what you said. It seems that the template_project example essentially turns on everything (e.g. all of the timers). The timer example only has one timer turned on. Could you send me your code so I can take a closer look? You can send it as a private message in devzone by sharing it via google drive or dropbox for example.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timer Example Issue</title><link>https://devzone.nordicsemi.com/thread/106944?ContentTypeID=1</link><pubDate>Wed, 04 Oct 2017 13:48:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:718a742f-06d1-48e4-aec0-88d6ab67dd4d</guid><dc:creator>phipi</dc:creator><description>&lt;p&gt;Thanks for the response. Yes that is the template I&amp;#39;m referring to. The way I had to disable the timer was by opening sdk_config.h and entering the Configuration Wizard view. Then under nRF Drivers &amp;gt; TIMER_ENABLED we see TIMER0_ENABLED, TIMER1_ENABLED and TIMER2_ENABLED are all selected. I had to unselect timer 1 and 2 in order for my application to start working&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timer Example Issue</title><link>https://devzone.nordicsemi.com/thread/106947?ContentTypeID=1</link><pubDate>Wed, 04 Oct 2017 09:28:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:52bd418e-f4dc-431c-adcc-74b01229b7b2</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;I&amp;#39;m looking at the template example right now (i.e. the one mentioned in my previous comment), but it seems like only Timer 0 is initialized there in the main.c file.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;const nrf_drv_timer_t MYTIMER = NRF_DRV_TIMER_INSTANCE(0);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;It seems like we are looking at different examples. Could you specify where you found the template example you are referring to? Cheers, Bjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timer Example Issue</title><link>https://devzone.nordicsemi.com/thread/106950?ContentTypeID=1</link><pubDate>Wed, 04 Oct 2017 08:57:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e4d4a7da-92c0-4f92-91a7-3226bffb9674</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;Very sorry for the late response. I&amp;#39;ve taken a look at this case over the last few days, but have not found a definite solution yet. Just to get things clear, are you using the no softdevice template example located under examples/peripheral/template_project folder in SDK 12.3? For the UART BLE example, you&amp;#39;re referring to the example under /ble_peripheral/ble_app_uart/ folder, right? And lastly, the timer example is located under examples/peripheral/timer, right? Sorry for this stupid question, it&amp;#39;s just I don&amp;#39;t want to spend a lot of time looking at code and then realizing after a while that I am looking at different examples compared to you. I will get to the bottom of this soon.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timer Example Issue</title><link>https://devzone.nordicsemi.com/thread/106945?ContentTypeID=1</link><pubDate>Thu, 28 Sep 2017 16:02:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:21003afd-9365-413a-910d-006da8e0505e</guid><dc:creator>phipi</dc:creator><description>&lt;p&gt;I&amp;#39;m using SDK12.3 on the nrf51822 with no softdevice&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timer Example Issue</title><link>https://devzone.nordicsemi.com/thread/106943?ContentTypeID=1</link><pubDate>Thu, 28 Sep 2017 10:53:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b42f11bf-6184-4a11-b62a-b3ed578b581c</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;Are you using SDK 14? I will take a closer look at this case tomorrow.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>