<?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>How to copy the light_switch demos external to SDK?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/65773/how-to-copy-the-light_switch-demos-external-to-sdk</link><description>I am having difficulty copying the light_switch client and server demos outside of the SDK, what is the general procedure? I have manually deleted and re-inserted the files and cleaned up some of the project definition paths but this is not working, I</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 09 Oct 2020 13:26:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/65773/how-to-copy-the-light_switch-demos-external-to-sdk" /><item><title>RE: How to copy the light_switch demos external to SDK?</title><link>https://devzone.nordicsemi.com/thread/274052?ContentTypeID=1</link><pubDate>Fri, 09 Oct 2020 13:26:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:edb0d520-944a-4bca-bc0c-d95553583059</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Sorry for the late reply.&lt;/p&gt;
[quote user="justinmreina"]Manually copy all source files listed into project[/quote]
&lt;p&gt;To make this quicker, you can open your project file(.emProject file) in a text editor. Then use &amp;quot;find and replace&amp;quot;(ctrl + h) to replace the same text strings to the correct pathing.&lt;/p&gt;
[quote user="justinmreina"]Update include directories&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Code-&amp;gt;Preproc-&amp;gt;User Include Dirs manual listing (cut and paste a WHOLE bunch!)[/quote]
&lt;p&gt;What do you mean by &amp;quot;cut and paste a whole bunch&amp;quot;? You only need to change the includes for the Mesh SDK. The pathing to your normal SDK should been fixed by the SDK_ROOT macro.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to copy the light_switch demos external to SDK?</title><link>https://devzone.nordicsemi.com/thread/272153?ContentTypeID=1</link><pubDate>Tue, 29 Sep 2020 23:23:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b0d04d1f-aa1b-4cc2-be45-47605b2602c4</guid><dc:creator>Justin Reina</dc:creator><description>&lt;p&gt;Yes, I had tried manually updating the preprocessor includes as you reference, this didn&amp;#39;t work&lt;/p&gt;
&lt;p&gt;... I got it! I followed the following procedure -&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;1. Copy my &amp;quot;/nRF5_SDK_16.0.0&amp;quot; to &amp;quot;/nRF5_SDK_16.0.0_98a08e2&amp;quot;&lt;br /&gt;&lt;br /&gt;2. Make SDK_ROOT navigate there now&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;SDK_LOC:&amp;nbsp;&amp;nbsp;&amp;nbsp; C:\Sw\Nordic\SDK\nRF5_SDK_16.0.0&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;SDK_ROOT:&amp;nbsp; C:\Sw\Nordic\SDK\A\B\C\D&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;br /&gt;3. Manually copy all source files listed into project&lt;br /&gt;&lt;br /&gt;4. Update include directories&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Code-&amp;gt;Preproc-&amp;gt;User Include Dirs manual listing (cut and paste a WHOLE bunch!)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;What... on review this comes from not porting &lt;em&gt;CMakeLists.txt&lt;/em&gt;, is this correct? What is the general procedure then to reproduce this copy-paste &amp;amp; use for your demo applications? This was surprising, I did not expect this to take so long!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Let me know when available, looking forward to closing this one for use later&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to copy the light_switch demos external to SDK?</title><link>https://devzone.nordicsemi.com/thread/271313?ContentTypeID=1</link><pubDate>Thu, 24 Sep 2020 11:42:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:158f5705-1b81-44be-b05e-db6331d754c8</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;How did you change the pathing? I assume you are using Segger Embedded Studio?&lt;/p&gt;
&lt;p&gt;After opening your project in SES, go to the left panel -&amp;gt; Right-Click on your project and click &amp;quot;Options...&amp;quot; -&amp;gt; In the upper-left dropdown, choose &amp;quot;Common&amp;quot; -&amp;gt; Under &amp;quot;Code&amp;quot;, click &amp;quot;Preprocessor&amp;quot; -&amp;gt; User Include Directories. Here you need to change everything so the pathing is pointing to your SDKs.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to copy the light_switch demos external to SDK?</title><link>https://devzone.nordicsemi.com/thread/270706?ContentTypeID=1</link><pubDate>Tue, 22 Sep 2020 01:19:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f8adecfd-7034-4d78-84e1-226c6d7598a0</guid><dc:creator>Justin Reina</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I was never able to get this to work, I have put a lot of effort into this without success exercising and exploring all of the referenced suggestions.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I think this comes to porting the CMakeLists.txt; how do you port a project externally from the SDK? I am available for whatever questions or help may be needed, let us know when you can! :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to copy the light_switch demos external to SDK?</title><link>https://devzone.nordicsemi.com/thread/269399?ContentTypeID=1</link><pubDate>Mon, 14 Sep 2020 13:36:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9bb2f317-61a5-4ec2-ac76-9807791d72c7</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m a little bit confused by your two latest replies. Were you able to solve the issue? Or are you still having problems?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to copy the light_switch demos external to SDK?</title><link>https://devzone.nordicsemi.com/thread/269249?ContentTypeID=1</link><pubDate>Sat, 12 Sep 2020 15:58:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e2014a7b-58ca-4f8b-81a9-c46b357caf2e</guid><dc:creator>Justin Reina</dc:creator><description>&lt;p&gt;I was referring to all source files found outside to the project (e.g. &amp;quot;radio_config.c&amp;quot;). I checked your reference, I think that&amp;#39;s it! thank you for sharing :)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I tried Jonas solution, it did not work for me&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to copy the light_switch demos external to SDK?</title><link>https://devzone.nordicsemi.com/thread/269248?ContentTypeID=1</link><pubDate>Sat, 12 Sep 2020 15:55:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a27c3968-ca11-49c7-8c82-f03644b72fc6</guid><dc:creator>Justin Reina</dc:creator><description>&lt;p&gt;Hi Mttrinh,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thank you for the reference, this pointed it out! CMakeLists.txt uses defines for its links and I think those were made relative, where are those defined? Let me know, I will give this a try with absolute path replacement, should work just fine!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to copy the light_switch demos external to SDK?</title><link>https://devzone.nordicsemi.com/thread/269021?ContentTypeID=1</link><pubDate>Thu, 10 Sep 2020 14:04:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e5b93a8-e3eb-4d43-ba94-bcee2e3b49f8</guid><dc:creator>Justin Reina</dc:creator><description>&lt;p&gt;this was the direction and form I was hoping, I will try this and let you know&lt;/p&gt;
&lt;p&gt;thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to copy the light_switch demos external to SDK?</title><link>https://devzone.nordicsemi.com/thread/268956?ContentTypeID=1</link><pubDate>Thu, 10 Sep 2020 11:56:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ccf693d8-58fd-41f0-b59f-92e5f2f53be6</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Yes, it is possible to duplicate outside of the SDK. If you want to copy a project outside of the SDK, you need to make sure that the pathing are correct. The folder structure and pathing in the SDK makes it is easy to get things mixed up and it end up not working when you move the example outside the SDK.&amp;nbsp;&lt;/p&gt;
[quote user=""] I have manually deleted and re-inserted the files and cleaned up some of the project definition paths but this is not working[/quote]
&lt;p&gt;Which files are you referring to here?&lt;/p&gt;
&lt;p&gt;Also, have a look at &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/38298/developing-an-application-with-the-mesh-sdk/147796#147796" rel="noopener noreferrer" target="_blank"&gt;this&lt;/a&gt;&amp;nbsp;for things to look out for.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to copy the light_switch demos external to SDK?</title><link>https://devzone.nordicsemi.com/thread/268834?ContentTypeID=1</link><pubDate>Thu, 10 Sep 2020 05:03:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ad3d8681-71a7-4934-ad41-63a7ef4b4284</guid><dc:creator>Justin Reina</dc:creator><description>&lt;p&gt;I have seen this but can&amp;#39;t get it to work - &lt;br /&gt;&amp;nbsp; &amp;bull; devzone.nordicsemi.com/f/nordic-q-a/58043/how-do-i-duplicate-a-segger-embedded-studio-project&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>