<?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>Connection loss immediately if timer 2 capture value is changed</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/7538/connection-loss-immediately-if-timer-2-capture-value-is-changed</link><description>Hello All , 
 I am working on nrf51822 with sdk 7.1.0 and softdevice 7.1.0 .Earlier my ble connection was working very good with no disconnection anytime unless i disconnect it.but now connection is getting lost after 2 to 3 minutes since i have changed</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 23 Jun 2015 11:24:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/7538/connection-loss-immediately-if-timer-2-capture-value-is-changed" /><item><title>RE: Connection loss immediately if timer 2 capture value is changed</title><link>https://devzone.nordicsemi.com/thread/26855?ContentTypeID=1</link><pubDate>Tue, 23 Jun 2015 11:24:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:345f1ffb-1b7c-4103-bcde-041b96f2f047</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;You can create a case in the MyPage support portal, top right corner of our &lt;a href="https://www.nordicsemi.com/eng"&gt;website&lt;/a&gt;, and share the project there. This will be private and secure. Or you can edit your question to include some more code. I&amp;#39;m interested in when you are calling this timer init function.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection loss immediately if timer 2 capture value is changed</title><link>https://devzone.nordicsemi.com/thread/26854?ContentTypeID=1</link><pubDate>Tue, 23 Jun 2015 04:57:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bea1353a-30b1-4057-92b1-ee8295af21e5</guid><dc:creator>asma</dc:creator><description>&lt;p&gt;No its confidential.but i can add some files if you want from which u can try to understand the code.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection loss immediately if timer 2 capture value is changed</title><link>https://devzone.nordicsemi.com/thread/26853?ContentTypeID=1</link><pubDate>Mon, 22 Jun 2015 15:09:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de8a288f-27d0-4839-8261-239bcc2ddbf5</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Sounds strange. Do you think you can upload your complete project so we can try to reproduce it here?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection loss immediately if timer 2 capture value is changed</title><link>https://devzone.nordicsemi.com/thread/26852?ContentTypeID=1</link><pubDate>Thu, 18 Jun 2015 04:30:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:876773da-a6f2-478c-b794-0003d1ee1fd8</guid><dc:creator>asma</dc:creator><description>&lt;p&gt;but when i try with sd_nvic_* functions it is not working properly . it is getting disconnected 5 to 7 minutes every time . with normal function it is working properly .&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection loss immediately if timer 2 capture value is changed</title><link>https://devzone.nordicsemi.com/thread/26851?ContentTypeID=1</link><pubDate>Mon, 15 Jun 2015 12:26:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c038ebb5-c4f6-49cc-986f-65a8b9ad5d7a</guid><dc:creator>Ulrich Myhre</dc:creator><description>&lt;p&gt;Please use the sd_nvic_* functions. They validate the inputs you give, disallowing reserved interrupt priorities that could lead to problems like you had :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection loss immediately if timer 2 capture value is changed</title><link>https://devzone.nordicsemi.com/thread/26850?ContentTypeID=1</link><pubDate>Mon, 15 Jun 2015 12:24:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d6fd774-71a5-452d-b53f-1c05e2c562a5</guid><dc:creator>asma</dc:creator><description>&lt;p&gt;thanks petter and Ulrich for your reply... it was not working with the above solution.. now i just add  NVIC_SetPriority(TIMER2_IRQn,NRF_APP_PRIORITY_LOW) after timer interrupt enable  and its working.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection loss immediately if timer 2 capture value is changed</title><link>https://devzone.nordicsemi.com/thread/26849?ContentTypeID=1</link><pubDate>Thu, 11 Jun 2015 12:40:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a654d0d1-eed8-4e9d-ae91-54c45b05ec10</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;It could have something to do with the interrupt priorities, please see &lt;a href="https://devzone.nordicsemi.com/question/23542/nrf51822s-original-interrupt-priority/"&gt;this&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The default interrupt priority is 0, but when the SoftDevice is enabled the application should use Application High(1) or Application Low(3). Please see Appendix A SoftDevice architecture, Section &amp;quot;Exception (interrupt) management with a SoftDevice&amp;quot; in the S110 SoftDevice specification v2.0.&lt;/p&gt;
&lt;p&gt;Try doing a sd_nvic_SetPriority(TIMER2_IRQn, NRF_APP_PRIORITY_LOW); after sd_nvic_EnableIRQ(TIMER2_IRQn);&lt;/p&gt;
&lt;p&gt;If it doesn&amp;#39;t help please edit your question to include the code where you start the timer, the interrupt request handler.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>