<?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>Include header files in out of tree driver developement</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/110734/include-header-files-in-out-of-tree-driver-developement</link><description>Hi, 
 I tried the following ticket for out of tree developement ( ) 
 It works,but i cannot able to access the header files of my driver from application, even from driver c files if placed in app/include/drivers... directory as mentioned in that ticket</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 13 May 2024 08:29:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/110734/include-header-files-in-out-of-tree-driver-developement" /><item><title>RE: Include header files in out of tree driver developement</title><link>https://devzone.nordicsemi.com/thread/482963?ContentTypeID=1</link><pubDate>Mon, 13 May 2024 08:29:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d035c6f2-56fa-4d9e-926a-a5c783f12da8</guid><dc:creator>vicky_76</dc:creator><description>&lt;p&gt;That&amp;#39;s working, perfect&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Include header files in out of tree driver developement</title><link>https://devzone.nordicsemi.com/thread/482587?ContentTypeID=1</link><pubDate>Wed, 08 May 2024 16:51:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f3cd901-ba82-428a-8db1-645cc75e974e</guid><dc:creator>Naeem Maroof</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Please do the following changes in the project that you have sent. I am calling the main project folder as PROJECT.&lt;/p&gt;
&lt;p&gt;1) In the PROJECT/CMakeLists.txt, replace the line number 16 with:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;zephyr_include_directories(include/app/drivers)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;2) In the PROJECT/src/main.c, replace the line number 16 with:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#include &amp;lt;kscan_sx1508.h&amp;gt;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;3) Move the file &amp;quot;kscan_sc1508.h&amp;quot; from &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;PROJECT/drivers/kscan/&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; to&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;PROJECT/include/app/drivers/&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;4) Replace the line number 27 of &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;PROJECT/drivers/kscan/kscan_sc1508.c&lt;/span&gt; with:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#include &amp;lt;kscan_sx1508.h&amp;gt;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;5) Remove line number 3 and line number 5 of &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;PROJECT/drivers/kscan/CMakeLists.txt&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Showing the folder structure, file contents and compilations:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1715186955160v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Just attaching the whole project for reference.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ncs_5F00_oot_5F00_simple.rar"&gt;devzone.nordicsemi.com/.../ncs_5F00_oot_5F00_simple.rar&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Naeem&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Include header files in out of tree driver developement</title><link>https://devzone.nordicsemi.com/thread/481366?ContentTypeID=1</link><pubDate>Wed, 01 May 2024 08:35:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5db5571c-b673-4d67-aa7e-4f0ea0b91d3b</guid><dc:creator>Vignesh R</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ncs_5F00_oot_5F00_simple.zip"&gt;devzone.nordicsemi.com/.../ncs_5F00_oot_5F00_simple.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;SDK: v2.5.0&lt;/p&gt;
&lt;p&gt;Toolchain: v2.5.0&lt;/p&gt;
&lt;p&gt;Board: custom board(smart-remote-52840) available inside boards directory in .zip(board based on nrf52840)&lt;/p&gt;
&lt;p&gt;Built this project in nrf connect for vscode, u can open this project using &amp;quot;open existing project&amp;quot; option in nrf connect extension in vscode&lt;/p&gt;
&lt;p&gt;This .zip project will build without any error for the mentioned custom board, but if u move the &amp;quot;kscan_sx1508.h&amp;quot; header file into the &amp;quot;include/app/drivers/&amp;quot; folder and if i try to include the file in &amp;quot;kscan_sx1508.c&amp;quot;, im getting undefined reference error&lt;/p&gt;
&lt;p&gt;Also i want to include this header file in my application &amp;quot;main.c&amp;quot; too, what should i need to add/change in my project to access my header file like &amp;quot;#include &amp;lt;app/drivers/kscan_sx1508.h&amp;gt;&amp;quot; in my project??&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Include header files in out of tree driver developement</title><link>https://devzone.nordicsemi.com/thread/481328?ContentTypeID=1</link><pubDate>Tue, 30 Apr 2024 16:01:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af685027-2e86-4c43-9926-8cbe4486495f</guid><dc:creator>Naeem Maroof</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Please send me your minimal project and I will have a look at it.&lt;/p&gt;
&lt;p&gt;Do mention specifics (like the SDK, Board, and how you are compiling) about project.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;/BR, Naeem&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>