<?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>Softdevice consumes too much time</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/25669/softdevice-consumes-too-much-time</link><description>Hello, 
 I am using nrf52832 with SDK12 with gcc compiler. I have extended the ble_app_template example with 2 services. 
 I have 1 timer interrupt using RTC(100 ms) and 1 timer interrupt using HF timer(20 micro secs). I am toggling a pin in HF timer</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 04 Oct 2017 22:19:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/25669/softdevice-consumes-too-much-time" /><item><title>RE: Softdevice consumes too much time</title><link>https://devzone.nordicsemi.com/thread/101124?ContentTypeID=1</link><pubDate>Wed, 04 Oct 2017 22:19:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d94c77e-f083-4139-9393-27df6870793a</guid><dc:creator>himanshu pande</dc:creator><description>&lt;p&gt;This was incredibly helpful. Thanks Martin. Upvoted and added as answer.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Softdevice consumes too much time</title><link>https://devzone.nordicsemi.com/thread/101123?ContentTypeID=1</link><pubDate>Wed, 04 Oct 2017 14:17:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c0ab09f-17ea-4b46-b19a-12268b06524b</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;If I understand you correctly I think you might be interested in &lt;a href="https://devzone.nordicsemi.com/tutorials/14/"&gt;Radio Notifications&lt;/a&gt;. More documentation &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.sds/dita/softdevices/s130/radio_notif/radio_notification.html?resultof=%22%72%61%64%69%6f%22%20%22%6e%6f%74%69%66%69%63%61%74%69%6f%6e%22%20%22%6e%6f%74%69%66%22%20"&gt;here&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Softdevice consumes too much time</title><link>https://devzone.nordicsemi.com/thread/101122?ContentTypeID=1</link><pubDate>Wed, 04 Oct 2017 13:48:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ce7226e-730d-46cd-b0c1-fe006152faf7</guid><dc:creator>himanshu pande</dc:creator><description>&lt;p&gt;I think I understand the problem now. I am reloading the NRF_TIMER2-&amp;gt;CC[0] register every time in the interrupt handler. Basically, when there is a softdevice interruption(which is surely more than 20 micro secs), the current timer count has passed the loaded value in the compare register and hence it waits for an entire cycle(16 MHz i.e. nearly 4 ms) to interrupt again.&lt;/p&gt;
&lt;p&gt;Is there a way to have pre-interrupt and post-interrupt hooks for when softdevice takes control? I would like to adjust the timer count in those routines.&lt;/p&gt;
&lt;p&gt;I hope the explanation is clear.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Softdevice consumes too much time</title><link>https://devzone.nordicsemi.com/thread/101121?ContentTypeID=1</link><pubDate>Wed, 04 Oct 2017 12:54:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e0e1d93-787a-4425-bbab-b9f4fedc78e1</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;I&amp;#39;m not sure I understand. Can you post a screenshot of what you see on the CRO?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>