<?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>How to include Zephyr out of tree driver in modified nRF sample app?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/79999/how-to-include-zephyr-out-of-tree-driver-in-modified-nrf-sample-app</link><description>Hello Devzone Community, 
 I am trying to develop an nRF9160 firmware, based on Nordic&amp;#39;s sdk-nrf v1.6.1 code base. This work is a Zephyr RTOS based application. In early research steps a few weeks ago I learned that sensors and peripherals which do not</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 28 Sep 2021 06:50:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/79999/how-to-include-zephyr-out-of-tree-driver-in-modified-nrf-sample-app" /><item><title>RE: How to include Zephyr out of tree driver in modified nRF sample app?</title><link>https://devzone.nordicsemi.com/thread/331417?ContentTypeID=1</link><pubDate>Tue, 28 Sep 2021 06:50:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f977625-9797-4566-93c7-0f355032b51c</guid><dc:creator>&amp;#216;ivind</dc:creator><description>&lt;p&gt;Correct me if I am mistaken, but Simon is handling that issue in the&amp;nbsp;case&amp;nbsp;you linked, so&amp;nbsp;I will leave that to him.&lt;/p&gt;
&lt;p&gt;My understanding is that this&amp;nbsp;case is about the out-of-tree driver,&amp;nbsp;so let&amp;#39;s focus on that.&amp;nbsp;Since you are having issues with SES, but not with building on the command line, are you able to build your application which implements the out-of-tree driver when using &amp;#39;west&amp;#39; on the command line?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to include Zephyr out of tree driver in modified nRF sample app?</title><link>https://devzone.nordicsemi.com/thread/331385?ContentTypeID=1</link><pubDate>Mon, 27 Sep 2021 18:27:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0a84c5e5-cb85-4aab-8f4f-98ec3c7e098d</guid><dc:creator>tedhavelka</dc:creator><description>&lt;p&gt;Hello Oivind,&lt;/p&gt;
&lt;p&gt;The error which I am seeing I have detailed in a separate post here:&amp;nbsp; &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/80001/resolving-nrf9160-zephyr-app-build-error-offsets-c-obj-not-found"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/80001/resolving-nrf9160-zephyr-app-build-error-offsets-c-obj-not-found&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;A concerning matter I have found is that I am actually not, within Segger IDE able to compile nRF samples such as aws_iot or other samples.&amp;nbsp; All samples fail with the same error:&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:courier new, courier;"&gt;Building &amp;#39;zephyr/CMakeFiles/offsets.dir/arch/arm/core/offsets/offsets.c.obj&amp;#39; from solution &amp;#39;build&amp;#39; in configuration &amp;#39;Common&amp;#39;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new, courier;"&gt;2&amp;gt; Checking &amp;#39;offsets.c&amp;#39;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new, courier;"&gt;2&amp;gt; zephyr/CMakeFiles/offsets.dir/arch/arm/core/offsets/offsets.c.obj does not exist.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new, courier;"&gt;2&amp;gt; Compiling &amp;#39;offsets.c&amp;#39;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:courier new, courier;"&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;Because the error is the same across multiple samples and a personal project based on the same sdk-nrf v1.6.1 it seems to me this is an error in how Segger&amp;#39;s &amp;quot;Open nRF Connect SDK Project...&amp;quot; menu option is working.&amp;nbsp; The python script&amp;nbsp;create_nordic_project.py is responsible for reading the contents of a sample application like `aws_iot`, and from those files building a couple of .emProject files for Segger, along with a new CMakeLists.txt file and some other build-supporting files in the given sample&amp;#39;s build directory.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:courier new, courier;"&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;Something in this generated recipe, some include path or other configuration detail which `cmake` relies on to successfully build Zephyr is missing or different from the structure that&amp;#39;s in place that `west` and a command line build process follow.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:courier new, courier;"&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;I can build all sample apps with `west` at the command line.&amp;nbsp; But I can build no samples or other nRF + Zephyr apps when using Segger and its option &amp;quot;File &amp;gt; Open nRF Connect SDK Project...&amp;quot;.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:courier new, courier;"&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;- Ted&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to include Zephyr out of tree driver in modified nRF sample app?</title><link>https://devzone.nordicsemi.com/thread/331325?ContentTypeID=1</link><pubDate>Mon, 27 Sep 2021 13:12:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d55e060a-8362-4ee2-aaeb-0b42874618e8</guid><dc:creator>&amp;#216;ivind</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I see that you had a case where you got help from Sigurd. I will read through that to try to better understand what you are trying to achieve.&lt;/p&gt;
&lt;p&gt;What is the error that you are seeing when you try to compile your application?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>