<?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>Problem of Including custom driver folder in to a project.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/74609/problem-of-including-custom-driver-folder-in-to-a-project</link><description>I am using a nRF52840 dongle with nRFconnect v1.5.1 in SES. I have followed This link to do it. But got stuck at &amp;quot;Editing CMake List.txt&amp;quot; step. 
 
 
 Please tell if there is something wrong in doing that as shown in screenshot. Sorry for the bad hand</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 04 May 2021 12:39:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/74609/problem-of-including-custom-driver-folder-in-to-a-project" /><item><title>RE: Problem of Including custom driver folder in to a project.</title><link>https://devzone.nordicsemi.com/thread/308178?ContentTypeID=1</link><pubDate>Tue, 04 May 2021 12:39:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5278dcf9-6b3b-45cd-8e7e-e8a87db158cd</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;The issue you&amp;#39;re seeing may be due to a long file path (open SEGGER and check the error log at the bottom to confirm this)&amp;nbsp;&lt;span style="font-family:inherit;"&gt;as mentioned under &lt;/span&gt;&lt;a style="font-family:inherit;" href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/known_issues.html#build-system"&gt;Known issues--&amp;gt;Build system&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x80/__key/communityserver-discussions-components-files/4/1385.pastedimage1620131764194v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;Try to apply the described workarounds and see if the problem goes away. Either by placing the project in &amp;quot;&lt;span&gt;C:\My_Project\&lt;/span&gt;&amp;quot;, by placing &amp;quot;&lt;em&gt;ncs_1.5.1&amp;quot;&amp;nbsp;&lt;/em&gt;close to &lt;em&gt;C:\,&lt;/em&gt;&amp;nbsp;by naming the build folder &amp;quot;build&amp;quot; instead of build_nrf52840dongle_nrf52840, or by shortening the name &amp;quot;&lt;em&gt;peripheral_lbsCopy&amp;quot;&lt;/em&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem of Including custom driver folder in to a project.</title><link>https://devzone.nordicsemi.com/thread/308160?ContentTypeID=1</link><pubDate>Tue, 04 May 2021 12:05:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b3e51a1c-4606-4b92-a487-740c73128919</guid><dc:creator>Gops</dc:creator><description>&lt;p&gt;Hi Simon.&lt;/p&gt;
[quote userid="72692" url="~/f/nordic-q-a/74609/problem-of-including-custom-driver-folder-in-to-a-project/308017#308017"]Open Segger Embedded Studio from the Toolchain Manager (don&amp;#39;t install it separately):
[/quote]
&lt;p&gt;Today strangely, I am not getting any error when I did Project-&amp;gt; Run CMake. And build was also successful.&lt;/p&gt;
&lt;p&gt;May be due to restart of the IDE, it works freshly. I don&amp;#39;t know.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="72692" url="~/f/nordic-q-a/74609/problem-of-including-custom-driver-folder-in-to-a-project/308017#308017"]Check if you see the file &lt;em&gt;&amp;lt;user name&amp;gt;\ncs\v1.5.0\toolchain\opt\bin\&lt;strong&gt;python.exe&lt;/strong&gt;&lt;/em&gt;
&lt;ul&gt;
&lt;li&gt;Open cmd in&amp;nbsp;&lt;em&gt;&amp;lt;user name&amp;gt;\ncs\v1.5.0\toolchain\opt\bin &lt;/em&gt;and run&amp;nbsp;&lt;/li&gt;&lt;/ul&gt;[/quote]
&lt;p&gt;I see the python.exe inside the path you have mentioned&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1620126720194v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;I get this up on running python from command prompt.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1620127325222v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="72692" url="~/f/nordic-q-a/74609/problem-of-including-custom-driver-folder-in-to-a-project/308017#308017"]Is this error consistent? If not, could you explain step-by-step how to reproduce it?[/quote]
&lt;p&gt;Earlier I had made a copy of an example at the same location(ncs_1.5.1\v1.5.1\nrf\samples\bluetooth).&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1620129016559v4.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;And when I opened that example from File-&amp;gt;open nrf SDK project, I used to get the error like&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1620129084541v5.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Today also I get the same error.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;According to the link (to include custom library files) you shared earlier, I made a simple hello world project(Not in&amp;nbsp;v1.5.1\zephyr\samples\basic ) just at&amp;nbsp; C:\My_Project\ and added a &amp;quot;.c&amp;quot; an &amp;quot;.h&amp;quot; file. And today I see no error.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;In this similar way I want to include an example from the CMSIS 5 DSP package which I have installed from Tools-&amp;gt;Package Manager. I want to do this for &amp;quot;ncs_1.5.1\v1.5.1\nrf\samples\bluetooth\peripheral_lbsCopy&amp;quot; as I have shown in the screenshot. Error coming on opening this copy of project now.&lt;/p&gt;
&lt;p&gt;Also I would like to do the same for any example project from Zephyre folder(\v1.5.1\zephyr\samples\basic).&lt;/p&gt;
&lt;p&gt;Or is there any other way to use the package?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you..&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem of Including custom driver folder in to a project.</title><link>https://devzone.nordicsemi.com/thread/308017?ContentTypeID=1</link><pubDate>Mon, 03 May 2021 20:50:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e9df30b9-b901-4b41-9d9c-481a6aa6c085</guid><dc:creator>Simon</dc:creator><description>[quote user="Gops"]The link you have shared is not working. Says &amp;quot;Access Denied&amp;quot;.[/quote]
&lt;p&gt;Sorry, I pointed you to a private ticket. But it just showed the three points I listed, not much more.&lt;/p&gt;
[quote user="Gops"]Its not resolved. I got this error on the 3rd point.[/quote]
&lt;p&gt;That is strange. If you install NCS from the Toolchain Manager, all the dependencies should get included automatically. Could you do the below:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Open Segger Embedded Studio from the Toolchain Manager (don&amp;#39;t install it separately):
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/7142.pastedimage1597835179754v6.png" alt=" " /&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&amp;nbsp;Check if you see the file &lt;em&gt;&amp;lt;user name&amp;gt;\ncs\v1.5.0\toolchain\opt\bin\&lt;strong&gt;python.exe&lt;/strong&gt;&lt;/em&gt;
&lt;ul&gt;
&lt;li&gt;Open cmd in&amp;nbsp;&lt;em&gt;&amp;lt;user name&amp;gt;\ncs\v1.5.0\toolchain\opt\bin &lt;/em&gt;and run&amp;nbsp;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;
[quote user="Gops"]How to resolve this python dependency? I have faced this issue earlier while opening copy of any example project also.&lt;br /&gt;[/quote]
&lt;p&gt;&amp;nbsp;Is this error consistent? If not, could you explain step-by-step how to reproduce it?&lt;/p&gt;
&lt;p&gt;What happened when you did the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;em&gt;&amp;quot;Open the project again with&amp;nbsp;File &amp;gt;&amp;nbsp;Open nRF Connect SDK Project&amp;quot;&lt;/em&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem of Including custom driver folder in to a project.</title><link>https://devzone.nordicsemi.com/thread/307820?ContentTypeID=1</link><pubDate>Mon, 03 May 2021 04:50:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d3ee4f2c-c625-4932-9691-7078c08020a1</guid><dc:creator>Gops</dc:creator><description>&lt;p&gt;The link you have shared is not working. Says &amp;quot;Access Denied&amp;quot;.&lt;/p&gt;
&lt;p&gt;I have tried 3 of the points you have mentioned to re run the CMake logic. Its not resolved. I got this error on the 3rd point.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1620016020490v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;How to resolve this python dependency? I have faced this issue earlier while opening copy of any example project also.&lt;br /&gt;&lt;br /&gt;I know about the getting started assistance where we need to follow the steps of installing all required dependencies before working with nRF connect SDK.&lt;/p&gt;
&lt;p&gt;I got an info from&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/gs_assistant.html"&gt;This link&lt;/a&gt; that on windows if we install the nRF connect SDK from nRF connect Tool chain manager, all the dependencies will be installed and procedure of getting started assistance can be avoided.&lt;/p&gt;
&lt;p&gt;So as my system is Windows machine, I did install it from Tool chain manager.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem of Including custom driver folder in to a project.</title><link>https://devzone.nordicsemi.com/thread/307738?ContentTypeID=1</link><pubDate>Sat, 01 May 2021 08:21:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:303bf7c8-3d2c-4aaf-adef-4e1e7d634ae4</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;If you&amp;#39;ve made changes to the CMakeLists.txt after opening the project, you need to run the CMake logic again for it to take effect, this can be done&amp;nbsp;as mentioned in &lt;a href="https://devzone.nordicsemi.com/support-private/support/265470#permalink=640240"&gt;this&amp;nbsp;answer&lt;/a&gt;&amp;nbsp;in three ways:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Open the project again with&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;em&gt;File &amp;gt;&amp;nbsp;&lt;/em&gt;&lt;em&gt;Open nRF Connect SDK Project&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;Reload the project by going to&amp;nbsp;&lt;em&gt;Project &amp;gt; Reload &amp;lt;project_name&amp;gt;&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;Re-run CMake by going to&amp;nbsp;&lt;em&gt;Project &amp;gt; Run Cmake&lt;/em&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I see that many people run into the same issue in this section, so I&amp;#39;ll add a note in the tutorial.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem of Including custom driver folder in to a project.</title><link>https://devzone.nordicsemi.com/thread/307737?ContentTypeID=1</link><pubDate>Sat, 01 May 2021 07:58:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:392d0837-a3e5-4151-880f-195b87f00d6d</guid><dc:creator>Gops</dc:creator><description>&lt;p&gt;Hi Simon.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks for the links.&lt;br /&gt;I followed the first link and did exactly the same hello world project + including the multiply function.&lt;/p&gt;
&lt;p&gt;Till making of the hello world project, there was no error.&lt;/p&gt;
&lt;p&gt;Now, after including the multiply.c and multiply.h files I have this error saying &amp;quot;No such file or directory&amp;quot; for multiply.h.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1619855430157v1.png" alt=" " /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1619855447531v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Can you please tell where am I doing mistake here?&lt;/p&gt;
&lt;p&gt;I also tried making the same procedure inside the path shown below in screenshot(For blinky example). Also did the same changes in CMakeLists.txt file as above. And found the same error.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1619855840708v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem of Including custom driver folder in to a project.</title><link>https://devzone.nordicsemi.com/thread/307664?ContentTypeID=1</link><pubDate>Fri, 30 Apr 2021 12:23:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:104973aa-03db-42e6-843a-6c965b076458</guid><dc:creator>Simon</dc:creator><description>[quote user=""]So, please guide through including a custom driver folder into any project. If any other step also there, please share.[/quote]
&lt;p&gt;The quick and easy way of&amp;nbsp;adding a custom driver to your project:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://devzone.nordicsemi.com/nordic/nrf-connect-sdk-guides/b/getting-started/posts/nrf-connect-sdk-tutorial---part-2-ncs-v1-4-0#h9skdynelh91f6vt6g1cw90uq4xtu0j"&gt;2.2.1&amp;nbsp;Include header and source files to your project&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The Zephyr way:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/66230/how-to-add-new-i2c-based-sensor-device-to-ncs-v1-3-0-zephyr-drivers-sensor/271109#271109"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/66230/how-to-add-new-i2c-based-sensor-device-to-ncs-v1-3-0-zephyr-drivers-sensor/271109#271109&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The Zephyr way - Out of tree driver:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/tree/v2.4.99-ncs1/samples/application_development/out_of_tree_driver"&gt;https://github.com/nrfconnect/sdk-zephyr/tree/v2.4.99-ncs1/samples/application_development/out_of_tree_driver&lt;/a&gt;&amp;nbsp;&lt;/li&gt;
&lt;/ul&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></channel></rss>