<?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>Turning on TWIM/TWIS without devicetree</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/108823/turning-on-twim-twis-without-devicetree</link><description>Hello, im trying to turn on TWIM/TWIS without setting devicetree. So ill point my problem and what have i currently done. 
 1. If i turn on my node in DT it works: 
 2. But i want to use it completely on nrf hal.That&amp;#39;s my code(its not actually a code</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 04 Mar 2024 11:01:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/108823/turning-on-twim-twis-without-devicetree" /><item><title>RE: Turning on TWIM/TWIS without devicetree</title><link>https://devzone.nordicsemi.com/thread/471984?ContentTypeID=1</link><pubDate>Mon, 04 Mar 2024 11:01:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e413b7c0-8cd4-4356-a434-016938426abb</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;You need to enable the i2c0 node in your device tree to inform the build system that the hardware is present on your device. However, you&amp;nbsp;should&amp;nbsp;change the &amp;#39;compatible&amp;#39; field to use the binding for the TWI slave:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;i2c0 {
    status = &amp;quot;okay&amp;quot;;
    compatible = &amp;quot;nordic,nrf-twis&amp;quot;;
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;After applying the DT overlay, you can enable TWIS instance 0 in your prj.conf file:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_NRFX_TWIS0=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>