<?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>Create LIB</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/86303/create-lib</link><description>Hi, 
 
 I would like to take some files and use them as a lib in my project. 
 Is it possible? Can I create a library and include it to my project? 
 
 Thanks!</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 29 Mar 2022 08:39:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/86303/create-lib" /><item><title>RE: Create LIB</title><link>https://devzone.nordicsemi.com/thread/360470?ContentTypeID=1</link><pubDate>Tue, 29 Mar 2022 08:39:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:086a8c97-9a06-416b-8e24-7950e1580580</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I do not think I understand what you want yet.&lt;br /&gt;Could you give an example of such a Nordic Library?&lt;/p&gt;
[quote user="Roei"]just like Nordic&amp;#39;s libraries,[/quote]
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Create LIB</title><link>https://devzone.nordicsemi.com/thread/360432?ContentTypeID=1</link><pubDate>Tue, 29 Mar 2022 06:54:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca4849f6-9ac3-42c6-bc2c-6465d9e91d71</guid><dc:creator>Roei</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Actually - I&amp;#39;ve meant to use those files as a shared library, just like Nordic&amp;#39;s libraries, so I will not have an access to them.&lt;/p&gt;
&lt;p&gt;Is that possible?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Create LIB</title><link>https://devzone.nordicsemi.com/thread/360280?ContentTypeID=1</link><pubDate>Mon, 28 Mar 2022 12:00:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:990f883d-f799-4e27-9d22-3d7163307396</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
[quote user="Roei"]Is this different then adding regular files to the project?[/quote]
&lt;p&gt;I explained how to add files to the project, since you asked how to add files and use them as a library:&lt;/p&gt;
[quote user=""]I would like to take some files and use them as a lib in my project.[/quote]
&lt;p&gt;Are you thinking of adding libraries on another format than .c/.h files?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Create LIB</title><link>https://devzone.nordicsemi.com/thread/360278?ContentTypeID=1</link><pubDate>Mon, 28 Mar 2022 11:56:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6b3ebc88-166a-4208-93d5-c6f267bbcc17</guid><dc:creator>Roei</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;p&gt;Is this different then adding regular files to the project?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Create LIB</title><link>https://devzone.nordicsemi.com/thread/360274?ContentTypeID=1</link><pubDate>Mon, 28 Mar 2022 11:50:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f63c5b8-4f43-4305-896d-b5668518c18c</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;In that case, there are four steps you could follow for adding your own .h and .c files:&lt;/p&gt;
&lt;p&gt;1. Create a folder in the nRF5 SDK with your custom files:&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1648467960633v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;2. In the file menu in the left of Segger Embedded Studio, you see already uploaded files. &lt;br /&gt;Right click the project, and add a folder for your library, and add your .h and .c files by using the &amp;quot;add existing files&amp;quot; option on the folder.&lt;br /&gt;Should look like this:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1648468058828v5.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;3. Right click your project and select &amp;quot;Options. Select &amp;quot;Preprocessor&amp;quot;. Then likely you want to select the &amp;quot;Common&amp;quot; Configuration from the dropdown in the top left.&lt;br /&gt;Should look like this:&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1648468078188v6.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Double click &amp;quot;User Include Directories&amp;quot;, and set the path to the folder where your .h file can be found. The path is starting in your project directory. Click OK.&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1648468139841v8.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;4. Add needed configurations for your files to sdk_config.h manually:&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1648468221733v9.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Is this explanation what you were looking for?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Create LIB</title><link>https://devzone.nordicsemi.com/thread/360264?ContentTypeID=1</link><pubDate>Mon, 28 Mar 2022 11:27:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0cdfe26b-4255-43c9-a36b-7b4c4ec18821</guid><dc:creator>Roei</dc:creator><description>&lt;p&gt;I&amp;#39;m using Segger Embedded Studio&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Create LIB</title><link>https://devzone.nordicsemi.com/thread/360258?ContentTypeID=1</link><pubDate>Mon, 28 Mar 2022 11:16:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b4ee3a13-89b4-403f-8e85-07428b1d99d3</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Yep, that would be the nRF5 SDK. In that case:&lt;/p&gt;
&lt;p&gt;Which IDE are you using for development? Segger Embedded Studio, Keil uVision or something else?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Create LIB</title><link>https://devzone.nordicsemi.com/thread/360250?ContentTypeID=1</link><pubDate>Mon, 28 Mar 2022 11:07:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:41aa631c-d38c-4f0f-b8d2-70b1b5848da8</guid><dc:creator>Roei</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m using SDK17.2, I think it&amp;#39;s nRF5 SDK.&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Create LIB</title><link>https://devzone.nordicsemi.com/thread/360246?ContentTypeID=1</link><pubDate>Mon, 28 Mar 2022 11:02:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fbf5f931-9787-4ab4-a4e6-0f9a52a19a02</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Are you using the &lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/nrf-connect-sdk-and-nrf5-sdk-statement"&gt;nRF Connect SDK or the nRF5 SDK&lt;/a&gt;?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>