<?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>Compiling github projects</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/6584/compiling-github-projects</link><description>Hi, 
 After downloading any of the projects from nordic github, how does one compile the project successfully? Where should i extract the files to and what paths should i include? I have not been able to get a single project working, any help with this</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 05 Feb 2025 09:21:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/6584/compiling-github-projects" /><item><title>RE: Compiling github projects</title><link>https://devzone.nordicsemi.com/thread/521486?ContentTypeID=1</link><pubDate>Wed, 05 Feb 2025 09:21:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:933d05ef-76cf-403b-8757-7fcd75815dcf</guid><dc:creator>Tirth_S</dc:creator><description>&lt;p&gt;okay&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Compiling github projects</title><link>https://devzone.nordicsemi.com/thread/521476?ContentTypeID=1</link><pubDate>Wed, 05 Feb 2025 09:03:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b5225762-c5d9-48fc-b2b6-b24aee5c7812</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;This ticket is nearly 10 years old at this point, and&amp;nbsp;a lot of changes to compilers and SDK has been done since then.&amp;nbsp;Please create a new ticket where you explain your issue in detail, and if you think this ticket is related. Please link to it. I&amp;#39;ll be closing this one now.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Compiling github projects</title><link>https://devzone.nordicsemi.com/thread/521296?ContentTypeID=1</link><pubDate>Tue, 04 Feb 2025 12:22:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e0f3717f-8409-4847-bde9-d40862383348</guid><dc:creator>Tirth_S</dc:creator><description>&lt;p&gt;i am also facing same issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Compiling github projects</title><link>https://devzone.nordicsemi.com/thread/22993?ContentTypeID=1</link><pubDate>Tue, 21 Apr 2015 19:12:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:edb81929-5174-4376-b467-876c99c74039</guid><dc:creator>Wass0392</dc:creator><description>&lt;p&gt;ahh i see, this has resolved my issue and it has finally compiled. Thank you very much for all your help&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Compiling github projects</title><link>https://devzone.nordicsemi.com/thread/22994?ContentTypeID=1</link><pubDate>Tue, 21 Apr 2015 06:56:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f51efa53-7963-47a9-a8c7-188d7653a8bd</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Thank you for your suggestion. I have updated the readme file.
The reason why the ble_app_uart_c_S120 example doesn&amp;#39;t work is because the author of the example has zipped it &amp;quot;wrong&amp;quot; (there has always got to be an exception to the rule you know). What you need to do is to copy paste the folder called &amp;quot;ble_app_uart_c&amp;quot; inside the &amp;quot;ble_app_uart_c_S120&amp;quot; folder that you have extracted. After you have done this the file structure will look like this:
&amp;quot;[my_SDK_folder]\examples\ble_central\ble_app_uart_c\main.c&amp;quot;. Notice that main.c now resides 4 &amp;quot;folder layers&amp;quot; above your base SDK folder. This is important because main.c, and other project files in your example, are referencing files relative to your example folder.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Compiling github projects</title><link>https://devzone.nordicsemi.com/thread/22990?ContentTypeID=1</link><pubDate>Mon, 20 Apr 2015 22:46:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e987ce3-f953-47aa-b062-28b5a25400b4</guid><dc:creator>Wass0392</dc:creator><description>&lt;p&gt;Thank you for this, a big help! I would recommend mentioning this on the nordic github read me as i spent so long trying to copy files etc, was a nightmare! I managed to download and compile your advertising example &amp;quot;nrf51-ble-tutorial-advertising&amp;quot; fine. The example i am interested in however is &amp;quot;ble_app_uart_c_S120&amp;quot;. After following your methods (this time extracting to ble_central) the project will not compile again stating &amp;quot;no source&amp;quot;. Sorry to nag on this same problem but is there something futher i must do for the central example? Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Compiling github projects</title><link>https://devzone.nordicsemi.com/thread/22992?ContentTypeID=1</link><pubDate>Mon, 20 Apr 2015 10:59:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:41835583-65c0-49c3-81dc-a301770ee92e</guid><dc:creator>Wass0392</dc:creator><description>&lt;p&gt;I have extracted the files as instructed to
Local Disk (C:)\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_Examples\8.00\ble_peripheral
and it still will not compile stating &amp;quot;no source&amp;quot;/&amp;quot;no such file or directory&amp;quot;. Is this not the correct path?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Compiling github projects</title><link>https://devzone.nordicsemi.com/thread/22991?ContentTypeID=1</link><pubDate>Mon, 20 Apr 2015 07:32:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c57e33c6-d1dc-4545-a53d-434b6c7524d7</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;The github examples are meant to be used with the &amp;quot;.zip version&amp;quot; of the SDK, not the Pack version.
&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/zipVserion.png" alt="image description" /&gt;&lt;/p&gt;
&lt;p&gt;Using the Packs makes it easy to setup examples included in the Pack, but once you want to do something else it suddenly gets complicated. Therefore we generally recommend using the &amp;quot;.zip version&amp;quot;. Your example files should (in most cases) be extracted to &amp;quot;[SDK]/examples/ble_peripheral&amp;quot;. For example, if I am to try the &lt;a href="https://github.com/NordicSemiconductor/nrf51-pwm-library"&gt;PWM Library example&lt;/a&gt; I will extract it so that the main.c file ends up at&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&amp;quot;[my_SDK_folder]\examples\ble_peripheral\nrf51-pwm-library-master\main.c&amp;quot;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;In our SDK all examples demonstrating the nRF51 as a peripheral is placed in the &amp;quot;ble_peripheral&amp;quot; folder. All examples demonstrating the nRF51 as a central is placed in the &amp;quot;ble_central&amp;quot;, etc. You are not, however, required to use these folders. You can, e.g. make a folder structure like&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&amp;quot;[my_SDK_folder]\examples\your_example_folder\nrf51-pwm-library-master\main.c&amp;quot;. 
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The important thing is the number of &amp;quot;folder layers&amp;quot; down to the main SDK folder so that the compiler knows where to find other drivers and components.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>