<?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>NRF52832 BLE scanning event not triggered after some time(randomly like 1hour, 3 hour)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/50017/nrf52832-ble-scanning-event-not-triggered-after-some-time-randomly-like-1hour-3-hour</link><description>Thanks in advance. 
 Hi guys am working with nrf5282 (softdevice s132 V1.6.0 and SDK version 15.2.0), also enabled freertos, and also make softdevice changes rleated freertos, 
 My functioanlity is nrf52832 put as a BLE central mode need to scan the nearest</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 13 Dec 2019 07:37:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/50017/nrf52832-ble-scanning-event-not-triggered-after-some-time-randomly-like-1hour-3-hour" /><item><title>RE: NRF52832 BLE scanning event not triggered after some time(randomly like 1hour, 3 hour)</title><link>https://devzone.nordicsemi.com/thread/225293?ContentTypeID=1</link><pubDate>Fri, 13 Dec 2019 07:37:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f41b9af-1185-4648-9745-48cb33ae124b</guid><dc:creator>AKanade</dc:creator><description>&lt;p&gt;hi &lt;a href="https://devzone.nordicsemi.com/members/balajiks"&gt;balajiks&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;nRF52832 is new for me and i want to start working on this board&lt;/p&gt;
&lt;p&gt;So, can you please guide me, form where i can start writing code for scanning program using FreeRtos.&lt;/p&gt;
&lt;p&gt;Or please share your scanning project code with me, so it will be very helpful for me&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832 BLE scanning event not triggered after some time(randomly like 1hour, 3 hour)</title><link>https://devzone.nordicsemi.com/thread/199945?ContentTypeID=1</link><pubDate>Tue, 23 Jul 2019 08:19:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d2a8bc6a-07e5-495e-ba05-2514fe2d6904</guid><dc:creator>balajiks</dc:creator><description>&lt;p&gt;Thanks susheel.&lt;/p&gt;
&lt;p&gt;i will make changes in my code base and update you later&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832 BLE scanning event not triggered after some time(randomly like 1hour, 3 hour)</title><link>https://devzone.nordicsemi.com/thread/199942?ContentTypeID=1</link><pubDate>Tue, 23 Jul 2019 08:13:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5080f734-3f2c-4c4b-bb33-aba011bf13a2</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;This was fixed in SDK15.3, there was a corner case in the below file&lt;/p&gt;
&lt;p&gt;nRF5_SDK_15.2.0_9412b96\components\softdevice\common\nrf_sdh_freertos.c&lt;/p&gt;
&lt;p&gt;Please&amp;nbsp;replace contents of SD_EVT_IRQHandler() and&amp;nbsp;softdevice_task() functions to below&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;void SD_EVT_IRQHandler(void)
{
    BaseType_t yield_req = pdFALSE;

    vTaskNotifyGiveFromISR(m_softdevice_task, &amp;amp;yield_req);

    /* Switch the task if required. */
    portYIELD_FROM_ISR(yield_req);
}


/* This function gets events from the SoftDevice and processes them. */
static void softdevice_task(void * pvParameter)
{
    NRF_LOG_DEBUG(&amp;quot;Enter softdevice_task.&amp;quot;);

    if (m_task_hook != NULL)
    {
        m_task_hook(pvParameter);
    }

    while (true)
    {
        nrf_sdh_evts_poll();                    /* let the handlers run first, incase the EVENT occured before creating this task */

        (void) ulTaskNotifyTake(pdTRUE,         /* Clear the notification value before exiting (equivalent to the binary semaphore). */
                                portMAX_DELAY); /* Block indefinitely (INCLUDE_vTaskSuspend has to be enabled).*/
    }
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;In SDK15.2, softdevice_task was calling&amp;nbsp;vTaskSuspend unconditionally. which could cause deadlocks. This is fixed in SDK15.3&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-b41e10dd86a341ca845a3340cc931797/pastedimage1563869614624v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Left in the picture above is from SDK15.3 and right is SDK15.2&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>