<?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>Developing an application with the mesh SDK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/38298/developing-an-application-with-the-mesh-sdk</link><description>It is very easy to build the example applications in the nRF mesh SDK (v2.2.0), but what is the official way to structure the build system when developing an application with the SDK? 
 The quick and dirty way would be to add a new directory for the application</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 10 Sep 2018 08:30:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/38298/developing-an-application-with-the-mesh-sdk" /><item><title>RE: Developing an application with the mesh SDK</title><link>https://devzone.nordicsemi.com/thread/147949?ContentTypeID=1</link><pubDate>Mon, 10 Sep 2018 08:30:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:549e8393-3123-49b9-b044-98fb595aa88b</guid><dc:creator>jonas</dc:creator><description>&lt;p&gt;Thank you,&lt;/p&gt;
&lt;p&gt;What I ended up doing was to put my code outside the Mesh SDK and adding an add_subdirectory() line to the Mesh SDK&amp;#39;s top level CMakeLists.txt to point to my code. It looks lite that works well enough.&lt;/p&gt;
&lt;p&gt;&amp;mdash;Jonas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Developing an application with the mesh SDK</title><link>https://devzone.nordicsemi.com/thread/147796?ContentTypeID=1</link><pubDate>Fri, 07 Sep 2018 12:00:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:82fb6d06-29b9-4bf7-869e-47822ff76055</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello Jonas,&lt;/p&gt;
&lt;p&gt;I guess the &amp;quot;correct&amp;quot; way to develop a project in the Mesh SDK is to leave the &amp;quot;normal&amp;quot; SDK (SDK15, which is in the same root folder as your mesh SDK) )unchanged. If you want your project to be easily upgraded when new Mesh SDKs are released, you wouldn&amp;#39;t want to change any of the files outside your project folder.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So if you want to get a running start, copy one of the example folders that look most like what you want to do, e.g. the MeshSDK\examples\light_switch, and name it for your project. Don&amp;#39;t change any files outside this project. If you want to add new, or modify files from the SDK, create a copy of it, and place it within this folder. If you want to, you can place the project folder that you are working on outside the SDK, but you would have to modify all the paths for your project to match your Mesh_SDK root folder.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If you place your project outside the SDK, you can enable write protection to the SDK, so that you are sure you are not changing any of the SDK files.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I usually (when I want to modify a project) place a copy of the project folder inside a folder in the mesh SDK that I created:&lt;/p&gt;
&lt;p&gt;nrf5_SDK_for_Mesh_v2.1.1_src\test_projects\&lt;/p&gt;
&lt;p&gt;So that I e.g. get the path:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;nrf5_SDK_for_Mesh_v2.1.1_src\test_projects\light_switch_test&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Keeping the same number of steps up to the SDK root means I can compile without changing the paths for the project.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>