<?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 with openthread/instance.h</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/97226/problem-with-openthread-instance-h</link><description>Hi, i was working with this project where i&amp;#39;m trying to make the thingy53 a thread node. 
 when i build i find this error and i don&amp;#39;t know why: 
 
 Building thingy_coap_server west build --build-dir c:\progetti\nexter\VS\esempi\thingy_coap_server\build</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 02 Mar 2023 15:44:06 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/97226/problem-with-openthread-instance-h" /><item><title>RE: Problem with openthread/instance.h</title><link>https://devzone.nordicsemi.com/thread/413086?ContentTypeID=1</link><pubDate>Thu, 02 Mar 2023 15:44:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fbc44b2b-b739-4a57-b2a2-951b710264a5</guid><dc:creator>Naeem Maroof</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;But if that is the problem then how can we build &amp;quot;coap_server&amp;quot; for thingy53?&lt;/p&gt;
&lt;p&gt;I tried with your sample as well. Somehow this error disappears, and then new different errors occur.&lt;/p&gt;
&lt;p&gt;Can you start integrating your changes into the working sample (coap_server) and then see what changes makes or break the compilation.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with openthread/instance.h</title><link>https://devzone.nordicsemi.com/thread/412984?ContentTypeID=1</link><pubDate>Thu, 02 Mar 2023 11:33:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe7a83eb-8fa5-422a-a5a4-0f79d64bfb10</guid><dc:creator>simon8</dc:creator><description>&lt;p&gt;i think the problem it&amp;#39;s something related to this path&amp;nbsp;&lt;span&gt;#include&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;lt;&lt;/span&gt;&lt;span&gt;zephyr/net/openthread.h&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;bacause when i build this porject without that line ends up well. when i write that line on the code, returns the same error on&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;#include &amp;lt;openthread/instance.h&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/peripheral_5F00_uart_5F00_t53.zip"&gt;devzone.nordicsemi.com/.../peripheral_5F00_uart_5F00_t53.zip&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with openthread/instance.h</title><link>https://devzone.nordicsemi.com/thread/412961?ContentTypeID=1</link><pubDate>Thu, 02 Mar 2023 10:41:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f479919f-5dd0-499d-9af6-05d2325d3a59</guid><dc:creator>simon8</dc:creator><description>&lt;p&gt;i modified the #include path as you said to me but the same error persists.&lt;/p&gt;
&lt;p&gt;as well i can build a project like server_coap for thingy53 and it works fine.&lt;/p&gt;
&lt;p&gt;i don&amp;#39;t know how to solve this&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with openthread/instance.h</title><link>https://devzone.nordicsemi.com/thread/412957?ContentTypeID=1</link><pubDate>Thu, 02 Mar 2023 10:31:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7145d112-848f-4b3a-b57d-68e5feaeafc8</guid><dc:creator>Naeem Maroof</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you for contacting DevZone at NordicSemi.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;As per the information you have provided, I started with:&lt;/p&gt;
&lt;p&gt;1) VS Code and selected &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;nCS v2.1.1&lt;/span&gt; as the SDK version and &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;2.1.1&lt;/span&gt; as the toolchain version&lt;/p&gt;
&lt;p&gt;2) Then I created the new project and selected &amp;quot;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/openthread/coap_server/README.html#thread-coap-server"&gt;coap_server&lt;/a&gt;&amp;quot; sample&lt;/p&gt;
&lt;p&gt;3) I built if for thingy53. Build was successful without any issue/problem.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;What I see is that your project is not very similar to&amp;nbsp;this sample. For example, the sample has &amp;quot;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;coap_server.c&lt;/span&gt;&amp;quot; in the &amp;quot;&lt;strong&gt;src&lt;/strong&gt;&amp;quot; folder while your project has &amp;quot;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;main.c&lt;/span&gt;&amp;quot;, and their contents are also not similar.&lt;/p&gt;
&lt;p&gt;Moreover, another thing, which could be causing error in your case, is that the &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;#include&lt;/span&gt; are different in your project.&lt;/p&gt;
&lt;p&gt;For example, the sample has:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;#include &amp;lt;zephyr/net/openthread.h&amp;gt;&lt;/pre&gt;&lt;br /&gt;while your project has:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;#include &amp;lt;net/openthread.h&amp;gt;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;And, it is very this header file that contains the inclusion of&amp;nbsp;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;instance.h&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;So I suggest you to look into the code and structure of the sample project and then after successful compilation integrate your changes to the sample code.&lt;/p&gt;
&lt;p&gt;Let me know if this helps or there is something I am missing.&lt;/p&gt;
&lt;p&gt;&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>