<?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>Building an application with out-of-tree driver module</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/110069/building-an-application-with-out-of-tree-driver-module</link><description>Hi 
 Im trying to build an application which has an out of tree driver for an i2c based sensor 
 i tried these steps, but it resulted in the following error 
 
 what am i doing wrong here?? 
 Kindly guide me through the oot driver developement</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 30 Apr 2024 12:40:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/110069/building-an-application-with-out-of-tree-driver-module" /><item><title>RE: Building an application with out-of-tree driver module</title><link>https://devzone.nordicsemi.com/thread/481284?ContentTypeID=1</link><pubDate>Tue, 30 Apr 2024 12:40:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7d3f1b1c-4ebc-4e64-a86e-05e70cd903e8</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Vignesh&lt;/p&gt;
&lt;p&gt;Have you added the correct relative path to where these configs are set? Please see the documentation for setting up specific workspaces:&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/create_application.html#workspace-application"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/create_application.html#workspace-application&lt;/a&gt;&amp;nbsp;&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: Building an application with out-of-tree driver module</title><link>https://devzone.nordicsemi.com/thread/481230?ContentTypeID=1</link><pubDate>Tue, 30 Apr 2024 08:42:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c45ee09c-9387-4e8e-a53e-89cb7678cd1e</guid><dc:creator>Vignesh R</dc:creator><description>&lt;p&gt;I have created the custom board using the ncs vscode &amp;quot;create a new board&amp;quot; option, and i have used this custom board as target to build in nrfconnect vscode and had no issues there.&lt;/p&gt;
&lt;p&gt;I dont get these errors when i build as an nrf connect sdk freestanding application, but occurs only when built in this workspace.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Building an application with out-of-tree driver module</title><link>https://devzone.nordicsemi.com/thread/481223?ContentTypeID=1</link><pubDate>Tue, 30 Apr 2024 08:12:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c2f1aefe-18eb-4c40-9e05-319899054a48</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Please check out the defining custom board guidelines here to see how you set up a custom board and device tree for your own board:&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/config_and_build/board_support/defining_custom_board.html#defining-custom-board"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/config_and_build/board_support/defining_custom_board.html#defining-custom-board&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It seems you&amp;#39;re trying to add some symbols that are not defined in your project, so are the nRF boards added to your Kconfig?&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: Building an application with out-of-tree driver module</title><link>https://devzone.nordicsemi.com/thread/480948?ContentTypeID=1</link><pubDate>Sat, 27 Apr 2024 10:25:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b5d3238f-33d0-4c51-a3ab-eeb2d16b5281</guid><dc:creator>Vignesh R</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote userid="75734" url="~/f/nordic-q-a/110069/building-an-application-with-out-of-tree-driver-module/478033"]Have you checked out the &amp;quot;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/dev_model_and_contributions/adding_code.html"&gt;Adding your own code&amp;quot; page&lt;/a&gt; in the nRF Connect SDK documentation? It describes some user workflows on how to do out of tree development.[/quote]
&lt;p&gt;Tried following these steps, and it works now&lt;/p&gt;
&lt;p&gt;im able to build the&amp;nbsp;&lt;a href="https://github.com/teslabs/zds-2022-drivers-app"&gt;GitHub - teslabs/zds-2022-drivers-app: Mastering Zephyr Driver Development (Sample Application)&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;with his custom driver files for nrf52840dk/nrf52840 as board&lt;/p&gt;
&lt;p&gt;Now, i try to build it for my custom board by adding the board/arm/(my_custom_board_folder)&lt;br /&gt;into the app folder (zds-2022-drivers-app/app/app) which has the entry cmakelists.txt, but it doesn&amp;#39;t consider my custom board when building.&lt;/p&gt;
&lt;p&gt;after going through some tickets i added the line &amp;quot;list(APPEND BOARD_ROOT ${CMAKE_CURRENT_SOURCE_DIR})&amp;quot;&lt;br /&gt;into that cmakelists.txt before find_package line&lt;/p&gt;
&lt;p&gt;this made some progress, it considered my custom board while building , but it throws the following error&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;warning: &amp;lt;choice&amp;gt; (defined at soc\Kconfig.v1.choice:5) defined with type unknown

C:/Users/Public/vs_projects/ncs_oot_2/zds-2022-drivers-app/app/app/boards/arm/magnus_conductivity/magnus_conductivity_defconfig:4: warning: attempt to assign the value &amp;#39;y&amp;#39; to the undefined symbol SOC_SERIES_NRF52X

C:/Users/Public/vs_projects/ncs_oot_2/zds-2022-drivers-app/app/app/boards/arm/magnus_conductivity/magnus_conductivity_defconfig:5: warning: attempt to assign the value &amp;#39;y&amp;#39; to the undefined symbol SOC_NRF52840_QIAA

error: Aborting due to Kconfig warnings&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;what am i missing here??, is this the way to build for a custom board in oot driver project??&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Building an application with out-of-tree driver module</title><link>https://devzone.nordicsemi.com/thread/478033?ContentTypeID=1</link><pubDate>Wed, 10 Apr 2024 11:40:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd401fa6-05e1-4918-840d-62cbdf800119</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Have you checked out the &amp;quot;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/dev_model_and_contributions/adding_code.html"&gt;Adding your own code&amp;quot; page&lt;/a&gt; in the nRF Connect SDK documentation? It describes some user workflows on how to do out of tree development.&lt;/p&gt;
&lt;p&gt;As for the error you&amp;#39;re seeing, it means the Zephyr SDK install didn&amp;#39;t create a correct CMake package or couldn&amp;#39;t find it. Have you tried doing as the build log suggests and add the installation prefix of&amp;nbsp;&amp;quot;Zephyr-sdk&amp;quot; to CMAKE_PREFIX_PATH or set &amp;quot;Zephyr-sdk_DIR&amp;quot; to a directory containing the file? Where (what path) have you installed the nRF Connect SDK to in the first place?&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></channel></rss>