<?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>scan stop problem</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/8364/scan-stop-problem</link><description>HI, 
 I have some problems with the function sd_ble_gap_scan_stop(). I want to stop scanning into the RTC1 event handler but when I use this function (sd_ble_gap_scan_stop()) there is an hard fault...why this happens ??? 
 thanks.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 27 Jul 2015 11:40:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/8364/scan-stop-problem" /><item><title>RE: scan stop problem</title><link>https://devzone.nordicsemi.com/thread/30344?ContentTypeID=1</link><pubDate>Mon, 27 Jul 2015 11:40:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb5ee77c-4791-423f-b062-8bf1a94a95db</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;SoftDevice API (sd_*) functions can only be called from lower interrupt priority when compared to the SVC priority. The SVC priority is 2, so you can&amp;#39;t use 1(Application High - App(H)), you need to use 3(Application Low - App(L)).&lt;/p&gt;
&lt;p&gt;Or you can set a flag in the interrupt handler and check this flag in the main loop and then stop scanning.&lt;/p&gt;
&lt;p&gt;For more information about this see &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.130.sds.v1.0.0/sd_arch/sd_arch.html?cp=2_7_2_0_16"&gt;this&lt;/a&gt;, Section Application Program Interface (API) and Exception (interrupt) management with a SoftDevice.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: scan stop problem</title><link>https://devzone.nordicsemi.com/thread/30343?ContentTypeID=1</link><pubDate>Mon, 27 Jul 2015 07:05:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e7d9c392-290d-4ba4-a720-ae3a4b24bdc4</guid><dc:creator>Fabri_Cortone_87</dc:creator><description>&lt;p&gt;Now I have set the RTC1 priority interrupt to 1 but the problem persists...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: scan stop problem</title><link>https://devzone.nordicsemi.com/thread/30342?ContentTypeID=1</link><pubDate>Fri, 24 Jul 2015 16:03:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:152fc701-17f4-4d7b-acb3-c07766933755</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;What is the priority of the RTC1 interrupt? Have you set it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>