<?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>Compilation issues with armgcc when adding radio notifications</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/35195/compilation-issues-with-armgcc-when-adding-radio-notifications</link><description>I&amp;#39;m using arm-none-eabi-gcc 7.2.1 with nRF5_SDK_15.0.0_a53641a with soft device s140_nrf52_6.0.0_softdevice.hex I&amp;#39;m trying to modify one of the bluetooth examples to add a call to `ble_radio_notification_init` 
 I&amp;#39;ve been adding the c files to `SRC_FILES</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 13 Jun 2018 07:15:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/35195/compilation-issues-with-armgcc-when-adding-radio-notifications" /><item><title>RE: Compilation issues with armgcc when adding radio notifications</title><link>https://devzone.nordicsemi.com/thread/135839?ContentTypeID=1</link><pubDate>Wed, 13 Jun 2018 07:15:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b80b5bef-686a-4552-948f-af48a1358797</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Unfortunately, there&amp;#39;s no option to subscribe or monitor the progress of the bug from the outside. It shall be listed in the release notes once fixed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Compilation issues with armgcc when adding radio notifications</title><link>https://devzone.nordicsemi.com/thread/135803?ContentTypeID=1</link><pubDate>Tue, 12 Jun 2018 18:11:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d676a21-28b9-4d4c-905d-296990b731bb</guid><dc:creator>mtfurlan_t</dc:creator><description>&lt;p&gt;Could I get subscribed to the bug you reported internally?&lt;/p&gt;
&lt;p&gt;Or do I need to wait for the next release? Is there an RSS feed for that, or even just an email list?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Compilation issues with armgcc when adding radio notifications</title><link>https://devzone.nordicsemi.com/thread/135376?ContentTypeID=1</link><pubDate>Fri, 08 Jun 2018 13:41:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:90060bce-7f31-481d-8864-402d0bfc8aae</guid><dc:creator>mtfurlan_t</dc:creator><description>&lt;p&gt;Not sure what prompted me to decided that the nrf_soc_nosd needed to be included, but removing it worked.&lt;/p&gt;
&lt;p&gt;I guess the &amp;quot;nosd&amp;quot; should have maybe tipped me off as to not using it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Compilation issues with armgcc when adding radio notifications</title><link>https://devzone.nordicsemi.com/thread/135310?ContentTypeID=1</link><pubDate>Fri, 08 Jun 2018 08:52:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:98b499b7-d912-4573-b2f9-76a25486212c</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;[quote user=""][/quote]&lt;/p&gt;
&lt;p&gt;NRF_SUCCESS is defined in `nrf_error.h` files&lt;br /&gt;`nrf_nvic.c` includes `nrf_error.h`. There are two copies of `nrf_error.h` that might be included,&lt;/p&gt;
&lt;div style="overflow:auto;"&gt;
&lt;pre&gt;./components/drivers_nrf/nrf_soc_nosd/nrf_error.h&lt;br /&gt;./components/softdevice/s140/headers/nrf_error.h&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;I&amp;#39;m not sure which one is getting included, but they both define `NRF_SUCCESS` so it shouldn&amp;#39;t matter.&lt;br /&gt;How should I be trying to fix this?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you use the Softdevice, then you should not include the ../nrf_soc_nosd/* files into your project. This also applies for src files in this path.&lt;/p&gt;
&lt;p&gt;Could you try removing any reference to &amp;quot;nrf_soc_nosd&amp;quot; in your makefile and see if the warnings disappear?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]If I add `#include &amp;quot;nrf_nvic.h&amp;quot;` to `ble_radio_nofification.h` that (and a few similar) error goes away.&lt;br /&gt;&lt;br /&gt;Is this a bug I should be reporting or am I just doing something wrong?[/quote]
&lt;p&gt;This is a bug from our side. This will be reported internally.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]I&amp;#39;m using arm-none-eabi-gcc 7.2.1 [/quote]
&lt;p&gt;Note that you should not use LTO (-flto) with this version of arm-none-eabi. References:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/29532/custom-gatt---central-hangs-when-connecting-nrf52810-s112-armgcc-sdk14-2"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/29532/custom-gatt---central-hangs-when-connecting-nrf52810-s112-armgcc-sdk14-2&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Issue on launchpad:&amp;nbsp;&lt;a href="https://bugs.launchpad.net/gcc-arm-embedded/+bug/1747966"&gt;https://bugs.launchpad.net/gcc-arm-embedded/+bug/1747966&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>