<?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>SOFTDEVICE_PRESENT defined in Makefile and Project?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/16911/softdevice_present-defined-in-makefile-and-project</link><description>In Nordic&amp;#39;s example GCC projects, the Makefile of the SD examples have -DSOFTDEVICE_PRESENT defined. However I noted that even though it is defined here, in nrf_drv_common.h it does not unlock the section dependent on this DEFINE. It seems I need to ALSO</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 13 Oct 2016 01:52:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/16911/softdevice_present-defined-in-makefile-and-project" /><item><title>RE: SOFTDEVICE_PRESENT defined in Makefile and Project?</title><link>https://devzone.nordicsemi.com/thread/64813?ContentTypeID=1</link><pubDate>Thu, 13 Oct 2016 01:52:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a16f5247-1870-4599-87ff-5d3dccbea080</guid><dc:creator>Dave_couling</dc:creator><description>&lt;p&gt;You were correct, however I&amp;#39;m still not sure why this was different then how I set up my SDK10 projects.  I literally imported all the same settings and reset the paths.  Anyways its fixes now but also adding everything to the include paths in the project.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SOFTDEVICE_PRESENT defined in Makefile and Project?</title><link>https://devzone.nordicsemi.com/thread/64812?ContentTypeID=1</link><pubDate>Fri, 07 Oct 2016 01:07:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:538a0126-c38d-4b2a-97c8-b7392d794950</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;Well either the define is on the build line (for every file being built in the entire project) without you having to add it to project settings or it&amp;#39;s not. If it is, you&amp;#39;ve misidentified the problem, if it&amp;#39;s not, it&amp;#39;s not using the makefile and you have to add it to the Eclipse settings. There are no other possibilities.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SOFTDEVICE_PRESENT defined in Makefile and Project?</title><link>https://devzone.nordicsemi.com/thread/64811?ContentTypeID=1</link><pubDate>Fri, 07 Oct 2016 00:51:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee2392db-8eaf-457b-994e-a8388a4eff0f</guid><dc:creator>Dave_couling</dc:creator><description>&lt;p&gt;I can&amp;#39;t migrate at this time as I have a mature product and firmware project that I&amp;#39;ve been developing without issue on SDK6.1 and SDK10.  Just trying to migrate over to SDK12.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m 100% certain its using the Makefile settings.  If I change the compile flags (-O0  vs -O2) there are different images sizes and so forth.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SOFTDEVICE_PRESENT defined in Makefile and Project?</title><link>https://devzone.nordicsemi.com/thread/64810?ContentTypeID=1</link><pubDate>Fri, 07 Oct 2016 00:48:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:853949bd-2da0-48b3-abda-d28a84ef9903</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;Little do I know about Eclipse, however it has two build modes does it not, one where it just runs the Makefile and one where it uses the project settings to generate the build line and entirely ignores the Makefile. I did not believe there is a mode in which it parses the Makefile and then adds in more stuff from the project settings. So if you&amp;#39;re using the latter, as it sounds like you are, then you do have to add the setting to the project settings because .. it&amp;#39;s not using the Makefile.&lt;/p&gt;
&lt;p&gt;If you remove it from the project settings and it&amp;#39;s still on the build line, then it&amp;#39;s defined and your problem is something different.&lt;/p&gt;
&lt;p&gt;Perhaps it&amp;#39;s time to find a better tool than Eclipse, it seems to cause you more trouble than its worth.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SOFTDEVICE_PRESENT defined in Makefile and Project?</title><link>https://devzone.nordicsemi.com/thread/64809?ContentTypeID=1</link><pubDate>Fri, 07 Oct 2016 00:41:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ef3c9a4-b3ec-4369-bbc8-46bb64bb6dba</guid><dc:creator>Dave_couling</dc:creator><description>&lt;p&gt;I&amp;#39;m using Eclipse.   In the makefile examples, Nordic has defined the following:
CFLAGS += -DSOFTDEVICE_PRESENT
ASMFLAGS += -DSOFTDEVICE_PRESENT&lt;/p&gt;
&lt;p&gt;But it does not unlock the SOFTDEVICE_PRESENT sections in nrf_drv_common.h.  I have add SOFTDEVICE_PRESENT as a Project Symbol include in order to unlock these sections, which seems incorrect and redundant.&lt;/p&gt;
&lt;p&gt;In the build console I do see -DSOFTDEVICE_PRESENT.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SOFTDEVICE_PRESENT defined in Makefile and Project?</title><link>https://devzone.nordicsemi.com/thread/64808?ContentTypeID=1</link><pubDate>Fri, 07 Oct 2016 00:36:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3d12e93a-d414-4e8f-a921-7f4402a49a3e</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;What do you mean &amp;#39;add it to the Project Symbols&amp;#39; section? What development environment are you using? Is it even using the Makefile? If it&amp;#39;s defined, it&amp;#39;s defined and will be used by the preprocessor, so if it&amp;#39;s not &amp;#39;unlocking&amp;#39; the section in nrf_drv_common.h then it&amp;#39;s because it&amp;#39;s not defined, or has been undefined.&lt;/p&gt;
&lt;p&gt;Go check the actual build lines which are being emitted by whatever you&amp;#39;re using to build it, if the symbol isn&amp;#39;t on the build line, it&amp;#39;s not defined.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>