<?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>ble radio notification issue on NRF52840</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/35397/ble-radio-notification-issue-on-nrf52840</link><description>I&amp;#39;m using a NRF52840 with S140 softdevice. I advertise some data and I want to be notified when advertising start. I followed this thread and I use the customs ble_radio_notification c and h files given by Ole Bauck. When I&amp;#39;m running the code the initialisation</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 14 Jun 2018 08:33:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/35397/ble-radio-notification-issue-on-nrf52840" /><item><title>RE: ble radio notification issue on NRF52840</title><link>https://devzone.nordicsemi.com/thread/136090?ContentTypeID=1</link><pubDate>Thu, 14 Jun 2018 08:33:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a1bd2089-b4ce-4153-8cef-1b3c35b28bf8</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I think the SD assert is caused by the high interrupt priority, suggest to use the default interrupt priority (7) which is set by the softdevice:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;void RADIO_NOTIFICATION_IRQHandler()
{    
    NRF_LOG_INFO(&amp;quot;on send&amp;quot;);
}

/* Must be called after ble_stack_init() and before adv. start*/
static void radio_notification_init()
{
    uint32_t  err_code;

    err_code = sd_nvic_ClearPendingIRQ(RADIO_NOTIFICATION_IRQn);
    APP_ERROR_CHECK(err_code);

    err_code = sd_nvic_EnableIRQ(RADIO_NOTIFICATION_IRQn);
    APP_ERROR_CHECK(err_code);

    err_code = sd_radio_notification_cfg_set(NRF_RADIO_NOTIFICATION_TYPE_INT_ON_ACTIVE, 
                                             NRF_RADIO_NOTIFICATION_DISTANCE_800US);
    APP_ERROR_CHECK(err_code);
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>