<?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>Radio notification init problem</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/15737/radio-notification-init-problem</link><description>I am trying the tutorial Radio Notification and was following the patch from Ble_radio_notification wont compile . The radio notification init comes right after the ble enabling: 
 // Initialize the SoftDevice handler module.
SOFTDEVICE_HANDLER_INIT</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 17 Aug 2016 21:43:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/15737/radio-notification-init-problem" /><item><title>RE: Radio notification init problem</title><link>https://devzone.nordicsemi.com/thread/60082?ContentTypeID=1</link><pubDate>Wed, 17 Aug 2016 21:43:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa05b8b8-710f-4651-a358-68c80a1c6945</guid><dc:creator>codezork</dc:creator><description>&lt;p&gt;Thank you for clarifying this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Radio notification init problem</title><link>https://devzone.nordicsemi.com/thread/60081?ContentTypeID=1</link><pubDate>Wed, 17 Aug 2016 06:57:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e70ed2d-3a34-4c17-bae5-81259a228a27</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;There was a bug in the older versions of CMSIS core_cm0.h which was fixed (i dont know which version it was fixed, download the latest)&lt;/p&gt;
&lt;p&gt;The new implemenation shows that masking is done correctly with 0XFF (not 0XF which you opted in your code)
below is the code from newer core_cm0.h file&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;__STATIC_INLINE uint32_t NVIC_GetPriority(IRQn_Type IRQn)
{

  if ((int32_t)(IRQn) &amp;lt; 0)
  {
    return((uint32_t)(((SCB-&amp;gt;SHP[_SHP_IDX(IRQn)] &amp;gt;&amp;gt; _BIT_SHIFT(IRQn) ) &amp;amp; (uint32_t)0xFFUL) &amp;gt;&amp;gt; (8U - __NVIC_PRIO_BITS)));
  }
  else
  {
    return((uint32_t)(((NVIC-&amp;gt;IP[ _IP_IDX(IRQn)] &amp;gt;&amp;gt; _BIT_SHIFT(IRQn) ) &amp;amp; (uint32_t)0xFFUL) &amp;gt;&amp;gt; (8U - __NVIC_PRIO_BITS)));
  }
}
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Radio notification init problem</title><link>https://devzone.nordicsemi.com/thread/60080?ContentTypeID=1</link><pubDate>Mon, 15 Aug 2016 18:56:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:53616260-3676-4695-b04f-eedba21370e5</guid><dc:creator>codezork</dc:creator><description>&lt;p&gt;IMHO you must change nrf_nvic.h for SDK11 to:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;static inline uint32_t sd_nvic_EnableIRQ(IRQn_Type IRQn)
{
  if (!__sd_nvic_app_accessible_irq(IRQn))
  {
    return NRF_ERROR_SOC_NVIC_INTERRUPT_NOT_AVAILABLE;
  }
  if (!__sd_nvic_is_app_accessible_priority(NVIC_GetPriority(IRQn)&amp;amp;0xF))
  {
    return NRF_ERROR_SOC_NVIC_INTERRUPT_PRIORITY_NOT_ALLOWED;
  }

  if (nrf_nvic_state.__cr_flag)
  {
    nrf_nvic_state.__irq_masks[(uint32_t)((int32_t)IRQn) &amp;gt;&amp;gt; 5] |= (uint32_t)(1 &amp;lt;&amp;lt; ((uint32_t)((int32_t)IRQn) &amp;amp; (uint32_t)0x1F));
  }
  else
  {
    NVIC_EnableIRQ(IRQn);
  }
  return NRF_SUCCESS;
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;After this change ble_radio_notification.c works properly on a nrf51.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Radio notification init problem</title><link>https://devzone.nordicsemi.com/thread/60079?ContentTypeID=1</link><pubDate>Mon, 15 Aug 2016 17:46:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c7e999e4-3e2b-4f6a-9513-6f9477ac9efc</guid><dc:creator>codezork</dc:creator><description>&lt;p&gt;Thank you for your quick answer. I forgot to say that I am working on a nrf51422 which is Cortex-M0 based. And my core_cm0.h file looks like this:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;__STATIC_INLINE uint32_t NVIC_GetPriority(IRQn_Type IRQn)
{

  if(IRQn &amp;lt; 0) {
    return((uint32_t)((SCB-&amp;gt;SHP[_SHP_IDX(IRQn)] &amp;gt;&amp;gt; _BIT_SHIFT(IRQn) ) &amp;gt;&amp;gt; (8 - __NVIC_PRIO_BITS)));  } /* get priority for Cortex-M0 system interrupts */
  else {
    return((uint32_t)((NVIC-&amp;gt;IP[ _IP_IDX(IRQn)] &amp;gt;&amp;gt; _BIT_SHIFT(IRQn) ) &amp;gt;&amp;gt; (8 - __NVIC_PRIO_BITS)));  } /* get priority for device specific interrupts  */
}
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Radio notification init problem</title><link>https://devzone.nordicsemi.com/thread/60078?ContentTypeID=1</link><pubDate>Mon, 15 Aug 2016 10:48:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:932394c8-5473-42b4-a5a9-22a4ebe0cf7c</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;for me in core_cm4.h file it shows like below
&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/4643.Capture.JPG" alt="image description" /&gt;&lt;/p&gt;
&lt;p&gt;There is no _BIT_SHIFT here. Are you having correct CMSIS files&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>