<?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>Mesh compilation error</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/47937/mesh-compilation-error</link><description>Based on mesh sdk 3.1, open NRF_LOG_ENABLED in the light_switch_server example, ie NRF_LOG_ENABLED 1, the following error occurred during compilation: Linking light_switch_server_nrf52840_xxAA_s140_6.1.0.elf build/light_switch_server_nrf52840_xxAA_s140_6</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 31 May 2019 11:54:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/47937/mesh-compilation-error" /><item><title>RE: Mesh compilation error</title><link>https://devzone.nordicsemi.com/thread/190277?ContentTypeID=1</link><pubDate>Fri, 31 May 2019 11:54:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:712bbd7c-f759-407d-b41a-d7540104c9c8</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Now please verify the answer:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/0763._5F00_Verify_2D00_answer_2D00_nordic.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh compilation error</title><link>https://devzone.nordicsemi.com/thread/190264?ContentTypeID=1</link><pubDate>Fri, 31 May 2019 11:24:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:74268b7f-40ab-4931-b83a-c7a494169502</guid><dc:creator>zero</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;AndreasF&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Thank you for your help, compiled with your method has passed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh compilation error</title><link>https://devzone.nordicsemi.com/thread/190262?ContentTypeID=1</link><pubDate>Fri, 31 May 2019 11:16:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4c05c5e3-8c7b-451d-90c6-c21230536537</guid><dc:creator>zero</dc:creator><description>&lt;p&gt;Thank you for your help, compiled with your method has passed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh compilation error</title><link>https://devzone.nordicsemi.com/thread/190261?ContentTypeID=1</link><pubDate>Fri, 31 May 2019 11:15:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c5c9ec01-f68b-458d-b1fa-88fb3f191aed</guid><dc:creator>zero</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;AndreasF&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Thank you for your help, compiled with your method has passed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh compilation error</title><link>https://devzone.nordicsemi.com/thread/190245?ContentTypeID=1</link><pubDate>Fri, 31 May 2019 10:34:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:daf34dfb-e26e-44af-974e-0c879a38cb01</guid><dc:creator>awneil</dc:creator><description>[quote userid="73423" url="~/f/nordic-q-a/47937/mesh-compilation-error/190236"]Look &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fug_gsg_ses%2FUG%2Fgsg%2Fadd_content_ses.html&amp;amp;cp=1_1_0_7_5"&gt;here &lt;/a&gt;in infocenter, just click on including header files[/quote]
&lt;p&gt;The corresponding section seems to be missing for doing this in Keil ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh compilation error</title><link>https://devzone.nordicsemi.com/thread/190236?ContentTypeID=1</link><pubDate>Fri, 31 May 2019 10:14:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d7919e65-86cf-4b6f-8e03-bd9fef982373</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;Look &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fug_gsg_ses%2FUG%2Fgsg%2Fadd_content_ses.html&amp;amp;cp=1_1_0_7_5"&gt;here &lt;/a&gt;in infocenter, just click on including header files.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh compilation error</title><link>https://devzone.nordicsemi.com/thread/190224?ContentTypeID=1</link><pubDate>Fri, 31 May 2019 09:45:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d85fe04c-d672-455e-9b5c-0738f70426cc</guid><dc:creator>awneil</dc:creator><description>[quote userid="79765" url="~/f/nordic-q-a/47937/mesh-compilation-error/190220"]How does SEGGER Embedded Studio add a header file path[/quote]
&lt;p&gt;Very much the same as any other IDE:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/46716/simple-adc-code/184681#184681"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/46716/simple-adc-code/184681#184681&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.segger.com/downloads/embedded-studio/EmbeddedStudio_Manual"&gt;https://www.segger.com/downloads/embedded-studio/EmbeddedStudio_Manual&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh compilation error</title><link>https://devzone.nordicsemi.com/thread/190220?ContentTypeID=1</link><pubDate>Fri, 31 May 2019 09:29:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c70c7295-baba-482b-b486-b980790df3c6</guid><dc:creator>zero</dc:creator><description>&lt;p&gt;Hi AndreasF&lt;/p&gt;
&lt;p&gt;&amp;nbsp; How does SEGGER Embedded Studio add a header file path?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh compilation error</title><link>https://devzone.nordicsemi.com/thread/190206?ContentTypeID=1</link><pubDate>Fri, 31 May 2019 08:48:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bbd63cc3-047c-442d-b8d1-5abd0759abc3</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;Try adding these includes:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;nRF5_SDK_15.2.0_9412b96/components/libraries/memobj
nRF5_SDK_15.2.0_9412b96/components/libraries/balloc
nRF5_SDK_15.2.0_9412b96/components/libraries/ringbuf
nRF5_SDK_15.2.0_9412b96/external/fprintf&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;And the source files:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;nrf_strerror.c&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;nrf_balloc.c&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;nrf_memobj.c&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;nrf_log_frontend.c&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh compilation error</title><link>https://devzone.nordicsemi.com/thread/190188?ContentTypeID=1</link><pubDate>Fri, 31 May 2019 08:19:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e1039aad-f278-4c30-8f6a-970cca8d0c1a</guid><dc:creator>awneil</dc:creator><description>[quote userid="73423" url="~/f/nordic-q-a/47937/mesh-compilation-error/190172"]Have you set up the &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.meshsdk.v3.1.0%2Fmd_doc_getting_started_how_to_build.html&amp;amp;cp=5_2_1_2"&gt;SDK ROOT macro&lt;/a&gt;[/quote]
&lt;p&gt;I think &lt;a href="https://devzone.nordicsemi.com/members/zero"&gt;zero&lt;/a&gt; would have other problems if that were the issue?&lt;/p&gt;
&lt;p&gt;eg,&lt;/p&gt;
[quote userid="79765" url="~/f/nordic-q-a/47937/mesh-compilation-error/190179"]A NRF_LOG_ENABLED of 0 can be compiled successfully[/quote]
&lt;p&gt;I don&amp;#39;t think that would happen with a missing or incorrect SDK_ROOT ?&lt;/p&gt;
&lt;p&gt;Clearly, if&amp;nbsp;&lt;span&gt;NRF_LOG is enabled, then all its required configurations also need to be present &amp;amp; correct.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh compilation error</title><link>https://devzone.nordicsemi.com/thread/190186?ContentTypeID=1</link><pubDate>Fri, 31 May 2019 08:15:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d8ab8dbf-3274-4442-a757-e4f9295fa5e7</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;You can use the free Keil download to view the &lt;strong&gt;sdk_config.h&lt;/strong&gt; structure:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1559290339936v2.png" /&gt;&lt;/p&gt;
&lt;p&gt;There is also the 3rd-party Java utility, &amp;quot;&lt;em&gt;CMSIS Configuration Wizard&lt;/em&gt;&amp;quot;, but I find Keil far superior:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/45362/cmsis-configuration-wizard---option-highlighting/178343#178343"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/45362/cmsis-configuration-wizard---option-highlighting/178343#178343&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Keil can also show you the plain text - where you can read the comments describing each option:&lt;/p&gt;
&lt;p&gt;:&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1559290424093v3.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Again, look at the settings in a project where the NRF_LOG is enabled &amp;amp; working - and use that to make appropriate settings.&lt;/p&gt;
&lt;p&gt;EDIT&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You can run 2 (or more) instances of uVision to view 2&amp;nbsp;(or more) sdk_config.h files side-by-side.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The attached ZIP file contains a uVision Project for viewing &amp;amp; editing the sdk_config.h file&amp;nbsp;&lt;em&gt;and nothing else&lt;/em&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Simply extract the&amp;nbsp;sdk_config.uvoptx and&amp;nbsp;sdk_config.uvprojx files into the same folder as the&amp;nbsp;sdk_config.h file.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/2262.uvision_5F00_sdk_5F00_config.zip"&gt;devzone.nordicsemi.com/.../2262.uvision_5F00_sdk_5F00_config.zip&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh compilation error</title><link>https://devzone.nordicsemi.com/thread/190179?ContentTypeID=1</link><pubDate>Fri, 31 May 2019 07:34:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7ab087ff-2e6a-4bdc-8c8e-92596d26f490</guid><dc:creator>zero</dc:creator><description>&lt;p&gt;&lt;span&gt;open NRF_LOG_ENABLED in the light_switch_server example, ie NRF_LOG_ENABLED 1&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;A NRF_LOG_ENABLED of 0 can be compiled successfully. Which macros do you need to define when NRF_LOG_ENABLED is set to 1?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh compilation error</title><link>https://devzone.nordicsemi.com/thread/190172?ContentTypeID=1</link><pubDate>Fri, 31 May 2019 07:16:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:690948e0-9f5d-4bc5-9ea2-6f2bc810c0d9</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;The error code says that there is undefined references. Have you set up the &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.meshsdk.v3.1.0%2Fmd_doc_getting_started_how_to_build.html&amp;amp;cp=5_2_1_2"&gt;SDK ROOT macro&lt;/a&gt;?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh compilation error</title><link>https://devzone.nordicsemi.com/thread/190143?ContentTypeID=1</link><pubDate>Fri, 31 May 2019 01:52:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:403f0e32-afea-4e32-a4ae-e014dd4206d1</guid><dc:creator>zero</dc:creator><description>&lt;p&gt;What definitions do I need to add? I really can&amp;#39;t find it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh compilation error</title><link>https://devzone.nordicsemi.com/thread/190091?ContentTypeID=1</link><pubDate>Thu, 30 May 2019 15:46:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ffa6adf-9a04-4754-b6f8-7a65cd899743</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Looks like there are other defines that you also need to add or adjust ...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>