<?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>Undefined reference error - using zephyr and matter</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/98766/undefined-reference-error---using-zephyr-and-matter</link><description>Hello, 
 I&amp;#39;m trying to extend the matter light_switch example of matter to be able to use OpenThreads jam detection feature. For this I extended the existing prj.conf with CONFIG_OPENTHREAD_JAM_DETECTION=y 
 When I try to call I get an undefined reference</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 18 Apr 2023 15:54:21 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/98766/undefined-reference-error---using-zephyr-and-matter" /><item><title>RE: Undefined reference error - using zephyr and matter</title><link>https://devzone.nordicsemi.com/thread/421098?ContentTypeID=1</link><pubDate>Tue, 18 Apr 2023 15:54:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:960051eb-ffe9-4a5a-bee8-5bdaacb2237d</guid><dc:creator>Emily</dc:creator><description>&lt;p&gt;Nice. Thank you!&lt;/p&gt;
&lt;p&gt;Did not know about that page :D&lt;/p&gt;
&lt;p&gt;Emily&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Undefined reference error - using zephyr and matter</title><link>https://devzone.nordicsemi.com/thread/421067?ContentTypeID=1</link><pubDate>Tue, 18 Apr 2023 13:49:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:59d920c1-4678-4da3-a3da-f1459f40a1f5</guid><dc:creator>Naeem Maroof</dc:creator><description>&lt;p&gt;Hi Emily,&lt;/p&gt;
&lt;p&gt;Well, I guess the best way is to follow the configurations from the samples in the nCS &amp;amp; Zephyr, and other examples from the DevZone.&lt;/p&gt;
&lt;p&gt;Also, it is always good to go and look at &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/index.html"&gt;Kconfig-Reference&lt;/a&gt;. Here is example search as per your requirement:&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/pastedimage1681825673291v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Best 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: Undefined reference error - using zephyr and matter</title><link>https://devzone.nordicsemi.com/thread/420931?ContentTypeID=1</link><pubDate>Tue, 18 Apr 2023 08:21:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9e350681-6a0f-4d31-b7c2-b767a4407edc</guid><dc:creator>Emily</dc:creator><description>&lt;p&gt;After adding CONFIG_OPENTHREAD and&amp;nbsp;CONFIG_OPENTHREAD_NORDIC_LIBRARY_MASTER to the proj.conf file it now works.&lt;/p&gt;
&lt;p&gt;Just so that I understand it better. Are these two always required to be set if I want to work with OpenThread? (Or at least some form of&amp;nbsp;&lt;span&gt;CONFIG_OPENTHREAD_NORDIC_LIBRARY because there seem to be a few different ones&lt;/span&gt;)&lt;/p&gt;
&lt;p&gt;Thanks a lot for your help!&lt;/p&gt;
&lt;p&gt;Emily&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Undefined reference error - using zephyr and matter</title><link>https://devzone.nordicsemi.com/thread/420736?ContentTypeID=1</link><pubDate>Mon, 17 Apr 2023 11:12:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a1f51154-916e-4703-9562-69ebaef286dd</guid><dc:creator>Naeem Maroof</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Thank you for contacting DevZone at NordicSemi.&lt;/p&gt;
&lt;p&gt;I would like to ask:&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;Which nCS version you are using?&lt;br /&gt;How is your callback?&lt;/p&gt;
&lt;p&gt;I think all you need is:&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;function call with callback parameter&lt;br /&gt;definition of callback&lt;br /&gt;header file(s) inclusion&lt;br /&gt;setting project configurations&lt;/p&gt;
&lt;p&gt;I was able to compile the sample (&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;light_switch&lt;/span&gt;) with the modification as per your query in the ncs v2.2.0.&lt;/p&gt;
&lt;p&gt;These are configurations that I have used in the proj.conf:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_OPENTHREAD=y
CONFIG_OPENTHREAD_JAM_DETECTION=y
CONFIG_OPENTHREAD_NORDIC_LIBRARY_MASTER=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;And the header files:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;#include &amp;lt;openthread/jam_detection.h&amp;gt;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Hope it helps.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Naeem&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>