<?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>tx_rx_non_blocking sample fails to build</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/116286/tx_rx_non_blocking-sample-fails-to-build</link><description>Hi, 
 
 I&amp;#39;m trying to build the &amp;quot; tx_rx_non_blocking &amp;quot; sample (ncs2.70, nRF52840dk) but get the following error message - 
 
 C:/devtools/nordic/ncs/v2.7.0/modules/hal/nordic/nrfx/drivers/include/nrfx_twis.h:71:33: error: &amp;#39;NRFX_TWIS1_INST_IDX&amp;#39; undeclared</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 12 Nov 2024 11:10:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/116286/tx_rx_non_blocking-sample-fails-to-build" /><item><title>RE: tx_rx_non_blocking sample fails to build</title><link>https://devzone.nordicsemi.com/thread/510075?ContentTypeID=1</link><pubDate>Tue, 12 Nov 2024 11:10:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:df53fe19-dbd3-4d56-9282-22a125de9a20</guid><dc:creator>eyalasko</dc:creator><description>&lt;p&gt;Problem solved.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Apparently, the problem is in the file &lt;strong&gt;\boards\nrf52840dk_nrf52840.dtsi&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;It has a wrong inclusion path hence when initially creating a build configuration something gets broken and creates the problem above.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The way to fix:&lt;/p&gt;
&lt;p&gt;1. Copy the sample&lt;/p&gt;
&lt;p&gt;2. Add a build configuration (in my case it was nrf52840dk, -Og (debug optimization)). Click &amp;#39;Build Configuration&amp;#39;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Note that the initial build fails&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;3. modify line #1 of \boards\nrf52840dk_nrf52840.dtsi&amp;nbsp; to :&lt;/p&gt;
&lt;blockquote&gt;
&lt;div style="background-color:#282a36;color:#f8f8f2;font-family:Consolas, &amp;#39;Courier New&amp;#39;, monospace;font-size:14px;font-weight:normal;line-height:19px;white-space:pre;"&gt;
&lt;div&gt;&lt;span style="color:#c0ffc0;"&gt;// #include &amp;quot;../../../common/common-pinctrl.dtsi&amp;quot; // BAD&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#ff79c6;"&gt;#include&lt;/span&gt;&lt;span style="color:#f8f8f2;"&gt; &amp;quot;../common/common-pinctrl.dtsi&amp;quot; // GOOD&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/blockquote&gt;
&lt;p&gt;&lt;br /&gt;4. Run pristine build. Voila, it works&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: tx_rx_non_blocking sample fails to build</title><link>https://devzone.nordicsemi.com/thread/510035?ContentTypeID=1</link><pubDate>Tue, 12 Nov 2024 08:19:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab87385c-b0b8-4b01-b9bf-2543b9f63912</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Try adding the below to your prj.conf&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;# Enable the I2C peripheral driver
CONFIG_I2C=y
CONFIG_I2C_NRFX=y


CONFIG_NRFX_TWIS=y
CONFIG_NRFX_TWIS1=y


CONFIG_I2C_NRFX_TWIS=y
CONFIG_I2C_SLAVE=y&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>