<?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>Starting a new project from scratch</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/39240/starting-a-new-project-from-scratch</link><description>I have been playing around with example projects in SES (I&amp;#39;m using SDK 15.2.0, SES version 3.52a). 
 Now wish to start a project from scratch, and import libraries from the SDK. I&amp;#39;d like to do this because I prefer to import the files/libraries I need</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 09 Oct 2018 19:00:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/39240/starting-a-new-project-from-scratch" /><item><title>RE: Starting a new project from scratch</title><link>https://devzone.nordicsemi.com/thread/152263?ContentTypeID=1</link><pubDate>Tue, 09 Oct 2018 19:00:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1511d85f-b1a9-4c59-9eb5-871cbdfc7d7b</guid><dc:creator>timadu7</dc:creator><description>&lt;p&gt;Thanks a lot for the detailed answers, Simon. Really appreciated!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Starting a new project from scratch</title><link>https://devzone.nordicsemi.com/thread/152242?ContentTypeID=1</link><pubDate>Tue, 09 Oct 2018 14:27:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:85fc80e7-6695-44fb-a79e-55658ec1688e</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;1. Not that I know of. But I would recommend you to start with the template project, which only has three fundamental include statements. However it has a lot of files added, .c files in the Project Explorer window and the paths to header files in &lt;em&gt;Project &amp;#39;template_pca10040&amp;#39;-&amp;gt;Edit Options-&amp;gt;Common-&amp;gt;Preprocessor-&amp;gt;User Include Directories&lt;/em&gt;. I wouldn&amp;#39;t worry too much about all these files, since the compiler only adds the included files to the final executable.&lt;/p&gt;
&lt;p&gt;2. The way I would approach this is to focus on the code itself, and based on that, add the drivers and libraries needed. The way to do this is to add the .c files in the Project Explorer window and the path to the header files as explained above, and eventually add include the header files into the main file. However, in the template project this is already done for a lot of drivers and libraries (without being included into main). Remember to enable the appropriate settings and peripherals in the sdk_config.h file when adding functionality to your code.&lt;/p&gt;
&lt;p&gt;3. The common way is to initialize the repository in the folder of the project, for example if using the template project, initialize it in&amp;nbsp;&lt;em&gt;examples/peripheral/template_project. T&lt;/em&gt;hat is where the changes are made. Then&amp;nbsp;you can share your project, and others can download the appropriate SDK and put the project into it.&lt;/p&gt;
&lt;p&gt;Best regards, Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Starting a new project from scratch</title><link>https://devzone.nordicsemi.com/thread/152124?ContentTypeID=1</link><pubDate>Mon, 08 Oct 2018 20:35:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a3081d5b-df17-41b0-acb5-c0f60f5603f7</guid><dc:creator>timadu7</dc:creator><description>&lt;p&gt;Thank you &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Starting a new project from scratch</title><link>https://devzone.nordicsemi.com/thread/152123?ContentTypeID=1</link><pubDate>Mon, 08 Oct 2018 20:34:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1a628383-902a-40b4-b1e8-a9bdff53e9d0</guid><dc:creator>timadu7</dc:creator><description>&lt;p&gt;Perhaps I wasn&amp;#39;t clear . I meant how do I import specific liibraries, when I&amp;#39;m starting a project from scratch?&lt;/p&gt;
&lt;p&gt;If i had a new project I had just created, how do I import nRF_BLE. for example?&lt;/p&gt;
&lt;p&gt;I suppose one could just take a copy of the examples and reuse them, but then, those examples import several libraries - some of which I may not necessarily need. This is why I&amp;#39;d rather start a project from scratch and import only the libraries I need.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Starting a new project from scratch</title><link>https://devzone.nordicsemi.com/thread/152096?ContentTypeID=1</link><pubDate>Mon, 08 Oct 2018 15:26:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9f2fa02d-3019-4523-b2f9-7f0b5c632563</guid><dc:creator>awneil</dc:creator><description>[quote userid="74408" url="~/f/nordic-q-a/39240/starting-a-new-project-from-scratch"] I prefer to import the files/libraries I need instead of copying example projects - then I&amp;#39;d end up with a ton of libraries/files that I don&amp;#39;t need.[/quote]
&lt;p&gt;But each example only include those libraries that it actually requires.&lt;/p&gt;
[quote userid="74408" url="~/f/nordic-q-a/39240/starting-a-new-project-from-scratch"]Say I wanted to import nRF_BLE or nRF_Libraries[/quote]
&lt;p&gt;but&amp;nbsp;&amp;quot;nRF_Libraries&amp;quot; &lt;em&gt;&lt;strong&gt;is&lt;/strong&gt;&lt;/em&gt; the &amp;quot;&lt;span&gt;&lt;em&gt;ton of libraries/files&lt;/em&gt;&amp;quot; that you said you wanted to avoid!&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Starting a new project from scratch</title><link>https://devzone.nordicsemi.com/thread/152091?ContentTypeID=1</link><pubDate>Mon, 08 Oct 2018 14:52:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:814731d9-2919-4c06-a307-7ef7b8e6083b</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I will provide you with an answer tomorrow (10/09/2018)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>