<?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>Detect if code has been interrupted by Softdevice</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/4750/detect-if-code-has-been-interrupted-by-softdevice</link><description>Hi, 
 I there a way that I can detect if a sections of my code has been interrupted by the Softdevice? I have some time critical code (bit banging a communication protocol), and it&amp;#39;s important for the timing, that it&amp;#39;s not interrupted at certain points</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 12 Aug 2016 14:29:21 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/4750/detect-if-code-has-been-interrupted-by-softdevice" /><item><title>RE: Detect if code has been interrupted by Softdevice</title><link>https://devzone.nordicsemi.com/thread/16825?ContentTypeID=1</link><pubDate>Fri, 12 Aug 2016 14:29:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3c936f7b-4c05-4630-a989-9f7eba9ffba7</guid><dc:creator>Stefan Birnir Sverrisson</dc:creator><description>&lt;p&gt;@Hawk&lt;/p&gt;
&lt;p&gt;No, timeslot API is not supported for SDK 5.2.0, as SDK 5.2.0 is compatible with S110 6.x.x softdevice. Timeslot API was first introduced in S110 7.x.x, see the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf51/dita/nrf51/compatibility_matrix/nRF51422_nRF51822_ic_rev_sdk_sd_comp_matrix.html?cp=3_0_3"&gt;nRF51 compatibility matrix&lt;/a&gt;. First SDK to support S110 7.x.x is SDK 6.x.0&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Detect if code has been interrupted by Softdevice</title><link>https://devzone.nordicsemi.com/thread/16824?ContentTypeID=1</link><pubDate>Thu, 21 Jul 2016 08:05:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8d5c1afc-df49-4f96-816b-2c67fdfb0665</guid><dc:creator>hawk</dc:creator><description>&lt;p&gt;hi,I  also found that the ble advertising interrupt my Timer1 handler... sdk 5.2.0 can support timesSlot API.??&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Detect if code has been interrupted by Softdevice</title><link>https://devzone.nordicsemi.com/thread/16823?ContentTypeID=1</link><pubDate>Tue, 09 Dec 2014 14:35:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0a3a5734-2fcd-4b84-a570-96018d1651a1</guid><dc:creator>Stefan Birnir Sverrisson</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I think there are two ways of having your operation not interrupted by the softdevice.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Use the radio notifications, which will give the application an event some predefined time before a BLE connection event/advertising event.&lt;/li&gt;
&lt;li&gt;Use Timeslot API where you can execute code with highest priority in timeslots between BLE connection events/advertising events. The Timeslot API is described in the &lt;a href="https://www.nordicsemi.com/eng/nordic/Products/nRF51822/S110-SDS/20338"&gt;S110 SDS&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I include two examples, one for radio notifications, example is developed for nRF51 SDK 6.1.0, the other one for Timeslot API, example is developed for nRF51 SDK 6.0.0&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ble_5F00_app_5F00_template_5F00_with_5F00_radio_5F00_notification.zip"&gt;ble_app_template_with_radio_notification.zip&lt;/a&gt;&lt;br /&gt;
&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/7433.ble_5F00_app_5F00_hrs_5F00_with_5F00_timeslot.zip"&gt;ble_app_hrs_with_timeslot.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>