<?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>Cannot compile softdevice files</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/25269/cannot-compile-softdevice-files</link><description>I am trying to set up a project for the nRF51 by hand and by looking at the example code provided by Nordic. 
 I am using Softdevice 130 on a nRF51422 and the 12.0.1 SDK. 
 Right now i am writing the Makefile.
But when trying to compile i get this</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 19 Sep 2017 12:06:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/25269/cannot-compile-softdevice-files" /><item><title>RE: Cannot compile softdevice files</title><link>https://devzone.nordicsemi.com/thread/99579?ContentTypeID=1</link><pubDate>Tue, 19 Sep 2017 12:06:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:47deb59c-dc61-4322-9db6-03e8f3443834</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Great! Thanks for sharing.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot compile softdevice files</title><link>https://devzone.nordicsemi.com/thread/99574?ContentTypeID=1</link><pubDate>Tue, 19 Sep 2017 11:40:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:53d0c00e-81d8-4dec-8ece-2a9ee7a356be</guid><dc:creator>S&amp;#248;renHN</dc:creator><description>&lt;p&gt;I fixed the problem by my self, but thank you for taking your time to try to help me.
I am not sure the way the flags are added should have any impact.
The SDK includes source files and folders with the same syntax.
But these kinds of problems sometimes feel like magic, so you never know ;^)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot compile softdevice files</title><link>https://devzone.nordicsemi.com/thread/99578?ContentTypeID=1</link><pubDate>Tue, 19 Sep 2017 11:36:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab278191-f777-4fd7-8533-4147a366e88b</guid><dc:creator>S&amp;#248;renHN</dc:creator><description>&lt;p&gt;I figured it out buy myself.&lt;/p&gt;
&lt;p&gt;Both &lt;code&gt;$(SDK_ROOT)/components/drivers_nrf/nrf_soc_nosd/&lt;/code&gt; and &lt;code&gt;$(SDK_ROOT)/components/softdevice/s130/headers/&lt;/code&gt; contains a file called &lt;code&gt;nrf_soc.h&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;When &lt;code&gt;nrf_soc.c&lt;/code&gt; was including &lt;code&gt;nrf_soc.h&lt;/code&gt; the wrong file was included.&lt;/p&gt;
&lt;p&gt;I fixed the problem by removing line 80 in the makefile.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;	-$(SDK_ROOT)/components/drivers_nrf/nrf_soc_nosd \
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot compile softdevice files</title><link>https://devzone.nordicsemi.com/thread/99575?ContentTypeID=1</link><pubDate>Tue, 19 Sep 2017 10:15:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9108edc8-728d-4d00-8f8c-6762739b2b82</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Never mind. I made a stupid mistake and did a CTRL-F for &amp;quot;nrf_soc.h&amp;quot; in your makefile.&lt;/p&gt;
&lt;p&gt;I played around with the makefile in the HRS example though, and noticed that you have a slightly different way of adding C flags (SDK Makefile to the right):&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/works.PNG" alt="image description" /&gt;&lt;/p&gt;
&lt;p&gt;When I tried to add the flags your way it didn&amp;#39;t work. Maybe you can try to add the flags the way it is done in the SDK. The sd_clock_ functions won&amp;#39;t compile unless SOFTDEVICE_PRESENT is properly defined for example. I don&amp;#39;t know much about this topic so I don&amp;#39;t know why it matters, but it is worth a shot.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot compile softdevice files</title><link>https://devzone.nordicsemi.com/thread/99573?ContentTypeID=1</link><pubDate>Tue, 19 Sep 2017 08:54:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:76c2f677-153e-4aae-9192-acce95895663</guid><dc:creator>S&amp;#248;renHN</dc:creator><description>&lt;p&gt;What about line 121 and 122 in the uploaded makefile?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot compile softdevice files</title><link>https://devzone.nordicsemi.com/thread/99576?ContentTypeID=1</link><pubDate>Tue, 19 Sep 2017 06:47:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7077d527-1b54-477a-99e8-666a2cb345a2</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;The functions you mention are declared in nrf_soc.h which is located in &amp;quot;your_SDK_12.1.0_folder\components\softdevice\s130\headers&amp;quot;. I cannot see that you have included this path in your makefile.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot compile softdevice files</title><link>https://devzone.nordicsemi.com/thread/99577?ContentTypeID=1</link><pubDate>Mon, 18 Sep 2017 12:37:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0fe81505-6c46-4af4-ab59-915b3d5ada58</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;If the path would be in your makefile includes then you hardly get such error... Could you share your makefile maybe?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>