<?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>BLE Peirpheral UART with Timer Problem</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/34422/ble-peirpheral-uart-with-timer-problem</link><description>Hello, 
 I&amp;#39;m using the &amp;quot;ble_app_uart&amp;quot; example without a problem. I need to add a timer to this example. For this purpose, I copied the content of the &amp;quot; peripheral_timer&amp;quot; example into &amp;quot;ble_app_uart&amp;quot; example. I configure the &amp;quot;sdk_config.h&amp;quot; content accordingly</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 16 May 2018 13:03:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/34422/ble-peirpheral-uart-with-timer-problem" /><item><title>RE: BLE Peirpheral UART with Timer Problem</title><link>https://devzone.nordicsemi.com/thread/132291?ContentTypeID=1</link><pubDate>Wed, 16 May 2018 13:03:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f7f86247-fed4-4d54-b150-cc68fa8754d7</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;By the way. The way that NRF_DRV_TIMER_INSTANCE() is implemented depends on what SDK you use, but it should be readable. You only need to change this to use TIMER1, and enable TIMER1 in sdk_config.h as I described in the previous post.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Peirpheral UART with Timer Problem</title><link>https://devzone.nordicsemi.com/thread/132280?ContentTypeID=1</link><pubDate>Wed, 16 May 2018 12:44:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:529551ea-ab27-4a5f-b792-d2058e3bb4b2</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;The reason for this is probably because you try to use TIMER0 for your TIMER_LED timer. The problem is that TIMER0 is also used by the SoftDevice, so you will get an assert, because the NRF_TIMER0 is already in use.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In the top of the part from your peripheral_timer example, change:&lt;/p&gt;
&lt;p&gt;const nrf_drv_timer_t TIMER_LED = NRF_DRV_TIMER_INSTANCE(0);&lt;/p&gt;
&lt;p&gt;to&lt;/p&gt;
&lt;p&gt;const nrf_drv_timer_t TIMER_LED = NRF_DRV_TIMER_INSTANCE(1);&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;And also, you need to enable TIMER1 in your sdk_config.h file.&lt;/p&gt;
&lt;p&gt;If you open the sdk_config.h file, you will probably find that TIMER0_ENABLED is defined to 1. Try to also change&lt;/p&gt;
&lt;p&gt;#define TIMER1_ENABLED 0&lt;/p&gt;
&lt;p&gt;to&lt;/p&gt;
&lt;p&gt;#define TIMER1_ENABLED 1&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Then your project should run with the softdevice using TIMER0, and the&amp;nbsp;application timer using TIMER1.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>